stellarium 0.14.3 on FreeBSD 11-CUR amd64 crashes on start

Bug #1608180 reported by Matthias Apitz on 2016-07-31
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Stellarium
High
Unassigned

Bug Description

The system is:

$ uname -a
FreeBSD c720-r292778-amd64 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r292778: Mon Dec 28 05:45:37 CET 2015 root@poudriere-amd64:/usr/local/r292778/obj/usr/local/r292778/src/sys/GENERIC amd64

and stallarium 0.14.3 crashes on start; the file ~/.stellarium/log.txt contains:

2016-07-31T09:02:54
FreeBSD 11.0-CURRENT amd64
Compiled using Clang 3.7.1
Qt runtime version: 5.5.1
Qt compilation version: 5.5.1
Addressing mode: 64-bit
CPU: Intel(R) Celeron(R) 2955U @ 1.40GHz (1396.80-MHz K8-class CPU)
real memory = 4301258752 (4102 MB)
avail memory = 1917730816 (1828 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
vtvga0: <VT VGA driver> on motherboard
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
vgapci0: <VGA-compatible display> port 0x1800-0x183f mem 0xe0000000-0xe03fffff,0xd0000000-0xdfffffff at device 2.0 on pci0
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
SMP: AP CPU #1 Launched!
stellarium
 -------------------------------------------------------
[ This is Stellarium 0.14.3 - http://www.stellarium.org ]
[ Copyright (C) 2000-2016 Fabien Chereau et al. ]
 -------------------------------------------------------
Writing log file to: "/home/guru/.stellarium/log.txt"
File search paths:
  0 . "/home/guru/.stellarium"
  1 . "/usr/local/share/stellarium"
Config file "/home/guru/.stellarium/config.ini" does not exist. Copying the default file.
Config file is: "/home/guru/.stellarium/config.ini"
Creating directory "/home/guru/Pictures/Stellarium"
Detected: OpenGL "3.0"
Driver version string: "3.0 Mesa 11.1.2"
GL vendor is "VMware, Inc."
GL renderer is "Gallium 0.4 on llvmpipe (LLVM 3.7, 128 bits)"
GL Shading Language version is "1.30"
MESA Version Number detected: 11.1
Mesa version is fine, we should not see a graphics problem.
GLSL Version Number detected: 1.3
GLSL version is fine, we should not see a graphics problem.
Cache directory is: "/home/guru/.cache/stellarium/stellarium"
Sky language is "es_ES"
Application language is "es_ES"
Loading Solar System data ...
Could not find the starsConfig.json file: will copy the default one.
Creating directory "/home/guru/.stellarium/stars/default"
Creates file "/home/guru/.stellarium/stars/default/starsConfig.json"
Loading star data ...
"Loading \"/usr/local/share/stellarium/stars/default/stars_0_0v0_5.cat\": 0_0v0_2; 4963"
"Loading \"/usr/local/share/stellarium/stars/default/stars_1_0v0_5.cat\": 1_0v0_2; 21598"
"Loading \"/usr/local/share/stellarium/stars/default/stars_2_0v0_5.cat\": 2_0v0_2; 150090"
"Loading \"/usr/local/share/stellarium/stars/default/stars_3_1v0_3.cat\": 3_1v0_3; 428466"
Finished loading star catalogue data, max_geodesic_level: 3
navigation/preset_sky_time is a double - treating as jday: "2451514.25001"
Reloading DSO data...
Loaded 10756 DSO records
Loading DSO name data ...
Loaded 221 / 297 DSO name records successfully
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Loading star names from "/usr/local/share/stellarium/skycultures/western/star_names.fab"
Loaded 339 / 339 common star names
Loading star names from "/usr/local/share/stellarium/stars/default/name.fab"
Loaded 4506 / 4506 scientific star names
Loading variable stars from "/usr/local/share/stellarium/stars/default/gcvs_hip_part.dat"
Loaded 6916 / 6916 variable stars
Loading cross-index data from "/usr/local/share/stellarium/stars/default/cross-index.dat"
Loaded 108279 / 108279 cross-index data records
Loaded 88 / 88 constellation records successfully for culture "western"
Loaded 85 / 85 constellation art records successfully for culture "western"
Loaded 88 / 88 constellation names
Loading constellation boundary data ...
Loaded 782 constellation boundary segments
Initializing basic GL shaders...
Creating GUI ...
libpng warning: iCCP: known incorrect sRGB profile
Loaded plugin "Exoplanets"
Creating directory "/home/guru/.stellarium/modules/Exoplanets"
Exoplanets: no Exoplanets section exists in main config file - creating with defaults
Exoplanets: exoplanets.json does not exist - copying default catalog to "/home/guru/.stellarium/modules/Exoplanets/exoplanets.json"
Exoplanets: default exoplanets.json to "/home/guru/.stellarium/modules/Exoplanets/exoplanets.json"
Exoplanets: loading catalog file: "/home/guru/.stellarium/modules/Exoplanets/exoplanets.json"
Loaded plugin "FOV"
FOV: no fov section exists in main config file - creating with defaults
Loaded plugin "MeteorShowers"
libpng warning: iCCP: known incorrect sRGB profile
Creating directory "/home/guru/.stellarium/modules/MeteorShowers"
MeteorShowersMgr: Loading catalog file: "/home/guru/.stellarium/modules/MeteorShowers/showers.json"
MeteorShowersMgr: Trying to restore the default catalog to "/home/guru/.stellarium/modules/MeteorShowers/showers.json"
MeteorShowersMgr: The default catalog was copied!
MeteorShowersMgr: Starting to update the catalog...
Loaded plugin "Novae"
Creating directory "/home/guru/.stellarium/modules/Novae"
Novae: no Novae section exists in main config file - creating with defaults
Novae: novae.json does not exist - copying default file to "/home/guru/.stellarium/modules/Novae/novae.json"
Novae: copied default novae.json to "/home/guru/.stellarium/modules/Novae/novae.json"
Novae: loading catalog file: "/home/guru/.stellarium/modules/Novae/novae.json"
Loaded plugin "Oculars"
Ocular plugin - press Command-O to toggle eyepiece view mode. Press ALT-o for configuration.
Creating directory "/home/guru/.stellarium/modules/Oculars"
Oculars::validateIniFile copied default_ocular.ini to "/home/guru/.stellarium/modules/Oculars/ocular.ini"
Loaded plugin "Satellites"
Creating directory "/home/guru/.stellarium/modules/Satellites"
Satellites::init satellites.json does not exist - copying default file to "/home/guru/.stellarium/modules/Satellites/satellites.json"
Satellites::init copied default satellites.json to "/home/guru/.stellarium/modules/Satellites/satellites.json"
Satellites::init copied default qs.mag to "/home/guru/.stellarium/modules/Satellites/qs.mag"
Satellites: loading catalog file: "/home/guru/.stellarium/modules/Satellites/satellites.json"
Satellite has invalid orbit: "DELTA 1 R/B" "08063"
Satellite has invalid orbit: "SL-8 R/B" "12389"
Satellite has invalid orbit: "SL-8 R/B" "14484"
Satellite has invalid orbit: "FLOCK 1B-27" "40422"
Satellite has invalid orbit: "FLOCK 1B-28" "40423"
Satellite has invalid orbit: "FLOCK 1B-21" "40427"
Satellite has invalid orbit: "FLOCK 1B-22" "40428"
Satellite has invalid orbit: "FLOCK 1B-10" "40429"
Satellite has invalid orbit: "FLOCK 1B-9" "40430"
Satellite has invalid orbit: "FLOCK 1D-1" "40451"
Satellite has invalid orbit: "FLOCK 1D-2" "40452"
Satellite has invalid orbit: "FLOCK 1B-5" "40453"
Satellite has invalid orbit: "FLOCK 1B-6" "40454"
Satellite has invalid orbit: "GEARRS-1" "40456"
Satellite has invalid orbit: "MICROMAS" "40457"
Satellite has invalid orbit: "FLOCK 1B-11" "40459"
Satellite has invalid orbit: "FLOCK 1B-12" "40460"
Loaded plugin "SolarSystemEditor"
Trying to copy ssystem.ini to "/home/guru/.stellarium/data/ssystem.ini"
Unable to find module called "TimeZoneConfiguration"
Loaded plugin "TimeZoneConfiguration"

and on the terminal it says in addition:

...
Illegal instruction ('core' generated).

Please, let me know if you need more information.

Mo Sommer (msom) on 2016-07-31
Changed in stellarium:
status: New → Confirmed
Alexander Wolf (alexwolf) wrote :

Please try run stellarium -d and attach log.txt here.

tags: added: crash freebsd
Mo Sommer (msom) wrote :

file ~/.stellarium/log.txt is attached

Alexander Wolf (alexwolf) wrote :

Thanks! Bad news - can you build stellarium from source code in debug mode and run it through gdb?

gzotti (georg-zotti) wrote :

EXT_gpu_shader4 MISSING!

This test result may indicate that the GPU driver reporting GLSL1.3 is not enough. We do not have enough samples yet, but https://en.wikipedia.org/wiki/OpenGL#OpenGL_3.0 indicates this extension is essential, therefore we test for it explicitly at least in the -d test.

Did any previous version of Stellarium (0.13 or later) run on this system? The processor graphics is reported to support Intel HD (OpenGL4?) on Windows, but I don't know capabilities of BSD Mesa GPU drivers.

Matthias Apitz (gubu) wrote :

I'm using on the identical hardware (Acer C720) and the same version of FreeBSD (r292778) the stellarium version 0.14.1 whichout any crash; a log.txt of -d is attached; please let me know if I should recompile 0.14.3 with any additional (debug) flags or with gcc option -g to gather a bt in gdb;

Alexey Dokuchaev (danfe) wrote :

Can you show us your C[XX]FLAGS? Perhaps your CPU does not support some instruction(s) that compiler is generating due to presence of -march=<wrong-cpu> or even -march=native. Version 0.14.1's code might not trigger this particular code generation logic (optimization) in the compiler.

You might also want to set -O0 to disable all optimizations, or try GCC instead of Clang (default compiler on contemporary FreeBSD versions) and see if it changes anything.

Matthias Apitz (gubu) wrote :

I'm attaching the log file of the build with clang; and the build with gcc and -O0; with the latter stellarium crashes without saying any line;

Matthias Apitz (gubu) wrote :
Changed in stellarium:
importance: Undecided → High
Matthias Apitz (gubu) wrote :

I compiled a version with clang, CFLAGS=-O0 -g and without strip the binaries to get a better gdb bt, without any luck; a bt does not show any symbol names; ideas?

Matthias Apitz (gubu) wrote :
Download full text (3.9 KiB)

I checked the build log of poudriere for the port astro/stellarium; poudriere installs into the build jail 117 existing other packages (see the list below); I will remove them all to force poudriere to rebuild them and it dependencies with -g and without strip the binaries; maybe this will get us a backtrace with better information:

Installing cmake-3.5.2...
Installing expat-2.1.0_3...
Installing cmake-modules-3.5.2...
Installing curl-7.48.0_2...
Installing ca_root_nss-3.22.2...
Installing libarchive-3.1.2_6,1...
Installing lzo2-2.09...
Installing jsoncpp-0.6.0.r2_2...
Installing gettext-tools-0.19.7...
Installing indexinfo-0.2.4...
Installing gettext-runtime-0.19.7...
Installing qt5-buildtools-5.5.1...
Installing perl5-5.20.3_12...
Installing qt5-concurrent-5.5.1...
Installing qt5-core-5.5.1...
Installing icu-55.1...
Installing pcre-8.38_1...
Installing glib-2.46.2...
Installing libiconv-1.14_9...
Installing python27-2.7.11_2...
Installing libffi-3.2.1...
Installing readline-6.3.8...
Installing qt5-gui-5.5.1...
Installing encodings-1.0.4_3,1...
Installing font-util-1.3.1...
Installing harfbuzz-1.2.3...
Installing cairo-1.14.6,2...
Installing dri2proto-2.8...
Installing fontconfig-2.11.1_1,1...
Installing freetype2-2.6.3...
Installing glproto-1.4.17...
Installing libXext-1.3.3_1,1...
Installing xproto-7.0.28...
Installing libXau-1.0.8_3...
Installing libX11-1.6.3,1...
Installing kbproto-1.0.7...
Installing libXdmcp-1.1.2...
Installing libxcb-1.11.1...
Installing libxml2-2.9.3...
Installing libpthread-stubs-0.3_6...
Installing xextproto-7.3.0...
Installing libEGL-11.1.2...
Installing libdevq-0.0.2_1...
Installing libXdamage-1.1.4_3...
Installing libXfixes-5.0.1_3...
Installing fixesproto-5.0...
Installing damageproto-1.2.1...
Installing libxshmfence-1.2...
Installing gbm-11.1.2...
Installing libglapi-11.1.2...
Installing libXvMC-1.0.9...
Installing libXv-1.0.10_3,1...
Installing videoproto-2.3.2...
Installing libdrm-2.4.66,1...
Installing libpciaccess-0.13.4...
Installing pciids-20160412...
Installing llvm37-3.7.1_2...
Installing libedit-3.1.20150325_2...
Installing png-1.6.21...
Installing libXrender-0.9.9...
Installing renderproto-0.11.1...
Installing libGL-11.1.2...
Installing libXxf86vm-1.1.4_1...
Installing xf86vidmodeproto-2.3.1...
Installing pixman-0.34.0...
Installing xcb-util-renderutil-0.3.9_1...
Installing xcb-util-0.4.0_1,1...
Installing graphite2-1.3.8...
Installing libSM-1.2.2_3,1...
Installing libICE-1.0.9_1,1...
Installing xcb-util-image-0.4.0_1...
Installing xcb-util-wm-0.4.1_3...
Installing libxkbcommon-0.5.0_1...
Installing xcb-util-keysyms-0.4.0_1...
Installing libXi-1.7.6,1...
Installing inputproto-2.3.1...
Installing qt5-dbus-5.5.1...
Installing dbus-1.8.20...
Installing gnome_subr-1.0...
Installing jpeg-turbo-1.4.2...
Installing xorg-fonts-truetype-7.7_1...
Installing font-misc-meltho-1.0.3_3...
Installing mkfontdir-1.0.7...
Installing mkfontscale-1.1.2...
Installing libfontenc-1.1.3...
Installing font-bh-ttf-1.0.3_3...
Installing font-misc-ethiopic-1.0.3_3...
Installing dejavu-2.35...
Installing xdg-utils-1.1.1...
Installing hicolor-icon-theme-0.15...
Installing xset-1.2.3_1...
Installing libXfontcache-1.0.5_3...
Ins...

Read more...

Matthias Apitz (gubu) wrote :

I'm attaching a photo taken in the moment short before the crash to show how far the GUI went; in the left upper part of the display is already a small window, knowing the position Paris; it crashes before going fullscreen.

Alexander Wolf (alexwolf) wrote :

Please try set video/fullscreen = false in ~/.stellarium/config.ini and check it again.

Matthias Apitz (gubu) wrote :

Setting fullscreen = false does not avoid the crash, only the target window for resizing the small one in the left upper part now has a frame and title bar.

I recompiled some 120 packages with debug info, forced installed them, copied the stellarium sources in place and can set a break point in main, list etc. but when I let it run the bt after the crash does not show any function names;

there was a hint in freebsd-ports@ about mixture of clang's libc++.so and gcc's libstdc++.so but only libc++ is loaded as ldd shows;

Matthias Apitz (gubu) wrote :

Re/ the backtrace: I forgot that stellarium is threaded and I have to use "thread apply all bt" to get the bt; now attached;

Alexander Wolf (alexwolf) wrote :

astro/stellarium port on FreeBSD has been updated to version 0.15.0_1 - please check it.

Matthias Apitz (gubu) wrote :

I've checked this already on the weekend, but only updated this singular port to 0.15.0_1. I was even surprised that it compiled against all other ports in that jail with a tree being from 1st of May. I started yesterday in a new jail the compilation of all ports based on SVN head of August 6. The will take a few more days and I will report back.

Matthias Apitz (gubu) wrote :

I have updated the complete system to ports from head as of August 6, which brings among others stellarium 0.15.0_1; the crash remains the same with the same symtoms: the GUI comes up as a small window in the upper right corner, than it crashes;

Matthias Apitz (gubu) wrote :

I have built a memstick with 12-CURRENT (r303343) and installed into it the packages pkg, xorg, kde and stellarium (and all its ~800 dependencies) of a ports build of July 16 (r418627), stellarium is 0.14.3 at this level; the memstick works nice on my Dell Latitude E6330 and Acer C720; on the Dell stellarium works fine, on the Acer C720 it crashes with the known simptoms: it starts and when it will bring the GUI to full screen, it crashes.

Matthias Apitz (gubu) wrote :

log file from Dell E6330 (stellarium -d), no crash

Matthias Apitz (gubu) wrote :

log file from Acer C720 (stellarium -d), crashed

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers