Stellarium / stellarium

Stellarium is a free GPL software which renders realistic skies in real time with OpenGL. It is available for Linux/Unix, Windows and macOS. With Stellarium, you really see what you can see with your eyes, binoculars or a small telescope.
https://stellarium.org
GNU General Public License v2.0
7.66k stars 819 forks source link

Stellarium crashes when zooming in/out and constellation lines on #3076

Closed akkepsamra closed 10 months ago

akkepsamra commented 1 year ago

Expected Behaviour

Zooming works normally with constellation lines on

Actual Behaviour

Crashes after zooming in with constellation lines on

Steps to reproduce

-Load Stellarium -Put constellation lines on -From default view, zoom in until visual angle is about 10 degrees. -With my relatively slow computer, I can feel Stellarium stall, and clock stops. Sometimes Stellarium recovers from this "hang" when waiting and doing nothing. -While in this "hang", try to move view with mouse or zoom in/out. -Crash

System

Logfile

2023-02-27T08:46:14
Operating System: Ubuntu 22.04.2 LTS
Compiled using GCC 9.4.0
Qt runtime version: 5.12.8
Qt compilation version: 5.12.8
Addressing mode: 64-bit
MemTotal:        3902496 kB
MemFree:          620268 kB
MemAvailable:    2329664 kB
SwapTotal:        524284 kB
model name  : Intel(R) Celeron(R) CPU  N2830  @ 2.16GHz
cpu MHz     : 1419.218
model name  : Intel(R) Celeron(R) CPU  N2830  @ 2.16GHz
cpu MHz     : 999.600
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e) (prog-if 00 [VGA controller])
Kernel driver in use: i915
Kernel modules: i915
/tmp/.mount_StellaWtoe8J/usr/bin/stellarium --startup-script=%f 
 ------------------------------------------------------------
[ This is Stellarium 1.2 (v0.22.5) - https://stellarium.org/ ]
[ Copyright (C) 2000-2022 Stellarium Developers              ]
 ------------------------------------------------------------
Writing log file to: "/home/kurki/.stellarium/log.txt"
File search paths:
  0 .  "/home/kurki/.stellarium"
  1 .  "/tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium"
Config file is:  "/home/kurki/.stellarium/config.ini"
Default surface format:  QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
OpenGL module type: 0
Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.
Default surface format:  QSurfaceFormat(version 3.3, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile)
OpenGL module type: 0
StelGLWidget constructor
StelGraphicsScene constructor
initializeGL(windowWidth = 1024, windowHeight = 767)
OpenGL supported version:  "4.2 (Core Profile) Mesa 22.2.5"
Current Format:  QSurfaceFormat(version 4.2, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile)
StelMainView::init
Luminance textures are not supported
Maximum texture anisotropy: 16
Detected: OpenGL "4.2"
Driver version string: "4.2 (Core Profile) Mesa 22.2.5"
GL vendor is "Intel"
GL renderer is "Mesa Intel(R) HD Graphics (BYT)"
GL Shading Language version is "4.20"
MESA Version Number detected:  22.2
Mesa version is fine, we should not see a graphics problem.
GLSL Version Number detected:  4.2
GLSL version is fine, we should not see a graphics problem.
stel.OpenGLArray: Vertex Array Objects are supported
Sky language is  "fi_FI"
Planetary features language is  "fi_FI"
Application language is  "fi_FI"
Scripts language is  "fi_FI"
Cache directory is:  "/home/kurki/.cache/stellarium/stellarium"
Loaded 252 countries
Loaded 193 regions
Loading Solar System data (1: planets and moons) ...
Loading from : "/tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/data/ssystem_major.ini"
SolarSystem has  83 entries.
Loaded 83 Solar System bodies
Loading Solar System data (2: minor bodies)...
Loading from : "/home/kurki/.stellarium/data/ssystem_minor.ini"
SolarSystem has  190 entries.
Loaded 107 Solar System bodies
File ssystem_minor.ini is loaded successfully...
Loading nomenclature for Solar system bodies ...
Loaded 15850 / 15852 items of planetary surface nomenclature
WARNING - These planets to assign nomenclature items were not found: "Dactyl"
Loading star data ...
"Loading /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/stars_0_0v0_8.cat: 0_0v0_8; 4979"
"Loading /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/stars_1_0v0_8.cat: 1_0v0_8; 21806"
"Loading /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/stars_2_0v0_8.cat: 2_0v0_8; 150826"
"Loading /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/stars_3_1v0_4.cat: 3_1v0_4; 425807"
Finished loading star catalogue data, max_geodesic_level:  3
Loading scientific star names from /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/name.fab
Loaded 4942 / 4942 scientific star names
Loading scientific star extra names from /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/extra_name.fab
Loaded 26200 / 26200 scientific star extra names
Loading variable stars from /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/gcvs_hip_part.dat
Loaded 6862 / 6862 variable stars
Loading double stars from /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/wds_hip_part.dat
Loaded 22992 / 22992 double stars
Loading cross-identification data from /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/cross-id.dat
Loaded 108378 / 108378 cross-identification data records for stars
Loading parallax errors data from /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/hip_plx_err.dat
Loaded 117703 / 117703 parallax error data records for stars
Loading proper motion data from /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/stars/default/hip_pm.dat
Loaded 117955 / 117955 proper motion data records for stars
navigation/preset_sky_time is a double - treating as jday: "2451514.25001"
Loading DSO data ...
[...] Stellarium DSO Catalog, version 3.18 (standard edition)
Loaded 94661 DSO records
Loading DSO outline data ...
Loaded 98 DSO outline records successfully
LandscapeMgr: initialized Cache for 100 MB.
Loading star names from /tmp/.mount_StellaWtoe8J/usr/bin/../share/stellarium/skycultures/modern/star_names.fab
Loaded 1103 / 1103 common star names
Loading DSO name data ...
Loaded 1316 / 1342 DSO name records successfully
WARNING - No position data for 26 objects: NGC 1276, NGC 4173, PGC 2798, PGC 2907, PGC 23521, PGC 28759, PGC 29167, PGC 34658, PGC 42102, PGC 44750, PGC 54559, PGC 59117, PGC 59858, PGC 59953, PGC 69018, PGC 69877, PGC 73957, PGC 95597, PGC 100170, PGC 100170, PGC 119230, PGC 1000714, PGC 1694462, PGC 2822840, PGC 2826829, PGC 3098124
Loaded 88 / 88 constellation records successfully for culture "modern"
Loaded 85 / 85 constellation art records successfully for culture "modern"
Loaded 88 / 88 constellation names
Loading constellation boundary data ... 
Loaded 782 constellation boundary segments
Error in Asterism  "TA6" : can't find star with coordinates 2.14697 / 8.55097
ERROR reading asterism lines record at line  88 for culture "modern"
Loaded 83 / 84 asterism records successfully for culture "modern"
WARNING - asterism abbreviation "TA6" not found when loading asterism names
Loaded 73 / 74 asterism names
Initializing basic GL shaders... 
Creating GUI ...
Loading Style file ":/graphicGui/normalStyle.css"
Loaded plugin "Exoplanets"
[Exoplanets] Version of the format of the catalog: 1
[Exoplanets] loading catalog file: "/home/kurki/.stellarium/modules/Exoplanets/exoplanets.json"
Loaded plugin "MeteorShowers"
[MeteorShowersMgr] Loading catalog file: "/home/kurki/.stellarium/modules/MeteorShowers/MeteorShowers.json"
[MeteorShowersMgr] Version of the format of the catalog: 2
Loaded plugin "Novae"
[Novae] version of the catalog: 1
[Novae] loading catalog file: "/home/kurki/.stellarium/modules/Novae/novae.json"
Loaded plugin "Oculars"
Oculars::validateAndLoadIniFile() ocular.ini exists at:  "/home/kurki/.stellarium/modules/Oculars/ocular.ini" . Checking version...
Oculars::validateAndLoadIniFile() found existing ini file version  3.1
Loaded plugin "Satellites"
[Satellites] loading catalogue file: "/home/kurki/.stellarium/modules/Satellites/satellites.json"
Satellite has invalid orbit: "ERBS" "15354"
Satellite has invalid orbit: "CZ-2C R/B" "40306"
Satellite has invalid orbit: "FLOCK 3P-2" "41966"
Satellite has invalid orbit: "FLOCK 3P-12" "41972"
Satellite has invalid orbit: "FLOCK 3P-11" "41975"
Satellite has invalid orbit: "FLOCK 3P-23" "42018"
Satellite has invalid orbit: "FLOCK 3P-32" "42023"
Satellite has invalid orbit: "FLOCK 3P-65" "42028"
Satellite has invalid orbit: "FLOCK 3P-50" "42029"
Satellite has invalid orbit: "FLOCK 3P-64" "42034"
Satellite has invalid orbit: "FLOCK 3P-55" "42041"
Satellite has invalid orbit: "LEMUR-2-SPIROVISION" "42755"
Satellite has invalid orbit: "LEMUR-2-ALEXANDER" "43559"
Satellite has invalid orbit: "LEMUR-2-YUASA" "43560"
Satellite has invalid orbit: "LEMUR-2-VLADIMIR" "43746"
Satellite has invalid orbit: "FLOCK 3K-5" "43899"
Satellite has invalid orbit: "FLOCK 3K-7" "43902"
Satellite has invalid orbit: "PAINANI 1" "44365"
Satellite has invalid orbit: "STARLINK-1016" "44722"
Satellite has invalid orbit: "STARLINK-1706" "46560"
Satellite has invalid orbit: "ONEWEB-0394" "50474"
Satellite has invalid orbit: "ONEWEB-0396" "50476"
Satellite has invalid orbit: "ONEWEB-0397" "50477"
Satellite has invalid orbit: "ONEWEB-0400" "50480"
Satellite has invalid orbit: "ONEWEB-0401" "50481"
Satellite has invalid orbit: "ONEWEB-0402" "50482"
Satellite has invalid orbit: "ONEWEB-0403" "50483"
Satellite has invalid orbit: "ONEWEB-0406" "50486"
Satellite has invalid orbit: "ONEWEB-0407" "50487"
Satellite has invalid orbit: "ONEWEB-0412" "50489"
Satellite has invalid orbit: "ONEWEB-0413" "50490"
Satellite has invalid orbit: "ONEWEB-0414" "50491"
Satellite has invalid orbit: "ONEWEB-0417" "50492"
Satellite has invalid orbit: "ONEWEB-0418" "50493"
Satellite has invalid orbit: "ONEWEB-0419" "50494"
Satellite has invalid orbit: "ONEWEB-0420" "50495"
Satellite has invalid orbit: "ONEWEB-0421" "50496"
Satellite has invalid orbit: "ONEWEB-0424" "50497"
Satellite has invalid orbit: "ONEWEB-0426" "50498"
Satellite has invalid orbit: "ONEWEB-0427" "50499"
Satellite has invalid orbit: "ONEWEB-0429" "50500"
Satellite has invalid orbit: "ONEWEB-0430" "50501"
Satellite has invalid orbit: "ONEWEB-0432" "50502"
Satellite has invalid orbit: "ONEWEB-0440" "50503"
Satellite has invalid orbit: "ONEWEB-0450" "50504"
Satellite has invalid orbit: "LIGHT-1" "51509"
Satellite has invalid orbit: "STARLINK-3537" "52088"
Satellite has invalid orbit: "STARLINK-3816" "52351"
Satellite has invalid orbit: "STARLINK-4276" "53179"
Satellite has invalid orbit: "STARLINK-4257" "53184"
Satellite has invalid orbit: "STARLINK-4724" "53702"
Satellite has invalid orbit: "STARLINK-4667" "53707"
Satellite has invalid orbit: "STARLINK-4694" "53708"
Satellite has invalid orbit: "STARLINK-4688" "53714"
Satellite has invalid orbit: "STARLINK-4736" "53796"
Satellite has invalid orbit: "STARLINK-4778" "53836"
Satellite has invalid orbit: "STARLINK-4797" "53852"
Satellite has invalid orbit: "STARLINK-4800" "53854"
Satellite has invalid orbit: "STARLINK-4795" "53856"
Satellite has invalid orbit: "STARLINK-4798" "53858"
Satellite has invalid orbit: "STARLINK-4790" "53859"
Satellite has invalid orbit: "STARLINK-4799" "53860"
Satellite has invalid orbit: "STARLINK-4781" "53861"
Satellite has invalid orbit: "STARLINK-4792" "53862"
Satellite has invalid orbit: "STARLINK-4788" "53863"
Satellite has invalid orbit: "STARLINK-4779" "53864"
Satellite has invalid orbit: "STARLINK-4785" "53865"
Satellite has invalid orbit: "STARLINK-5054" "53906"
Satellite has invalid orbit: "STARLINK-5059" "53912"
Satellite has invalid orbit: "STARLINK-5001" "53924"
Satellite has invalid orbit: "STARLINK-5011" "53925"
Satellite has invalid orbit: "STARLINK-5014" "53926"
Satellite has invalid orbit: "STARLINK-5008" "53927"
Satellite has invalid orbit: "STARLINK-4782" "53933"
Satellite has invalid orbit: "STARLINK-5159" "53974"
Satellite has invalid orbit: "STARLINK-5134" "53976"
Satellite has invalid orbit: "STARLINK-5149" "53981"
Satellite has invalid orbit: "STARLINK-5103" "53983"
Satellite has invalid orbit: "STARLINK-5119" "53986"
Satellite has invalid orbit: "STARLINK-5118" "53991"
Satellite has invalid orbit: "STARLINK-5130" "53997"
Satellite has invalid orbit: "STARLINK-5088" "54000"
Satellite has invalid orbit: "STARLINK-5109" "54002"
Satellite has invalid orbit: "STARLINK-5145" "54008"
Satellite has invalid orbit: "STARLINK-5127" "54010"
Satellite has invalid orbit: "STARLINK-5124" "54011"
Satellite has invalid orbit: "STARLINK-5126" "54012"
Satellite has invalid orbit: "STARLINK-5098" "54013"
Satellite has invalid orbit: "STARLINK-5116" "54014"
Satellite has invalid orbit: "STARLINK-5055" "54015"
Satellite has invalid orbit: "STARLINK-5171" "54077"
Satellite has invalid orbit: "STARLINK-5138" "54078"
Satellite has invalid orbit: "STARLINK-5175" "54079"
Satellite has invalid orbit: "STARLINK-5165" "54081"
Satellite has invalid orbit: "STARLINK-5210" "54082"
Satellite has invalid orbit: "STARLINK-5178" "54083"
Satellite has invalid orbit: "STARLINK-5183" "54084"
Satellite has invalid orbit: "STARLINK-5166" "54085"
Satellite has invalid orbit: "STARLINK-5184" "54087"
Satellite has invalid orbit: "STARLINK-5153" "54088"
Satellite has invalid orbit: "STARLINK-5143" "54089"
Satellite has invalid orbit: "STARLINK-5177" "54090"
Satellite has invalid orbit: "STARLINK-5221" "54091"
Satellite has invalid orbit: "STARLINK-5190" "54092"
Satellite has invalid orbit: "STARLINK-5213" "54093"
Satellite has invalid orbit: "STARLINK-5219" "54094"
Satellite has invalid orbit: "STARLINK-5193" "54095"
Satellite has invalid orbit: "STARLINK-5188" "54096"
Satellite has invalid orbit: "STARLINK-5217" "54098"
Satellite has invalid orbit: "STARLINK-5198" "54099"
Satellite has invalid orbit: "STARLINK-5185" "54100"
Satellite has invalid orbit: "STARLINK-5179" "54102"
Satellite has invalid orbit: "STARLINK-5161" "54163"
Satellite has invalid orbit: "STARLINK-5278" "54164"
Satellite has invalid orbit: "STARLINK-5280" "54166"
Satellite has invalid orbit: "STARLINK-5245" "54168"
Satellite has invalid orbit: "STARLINK-5282" "54169"
Satellite has invalid orbit: "STARLINK-5155" "54170"
Satellite has invalid orbit: "STARLINK-5117" "54172"
Satellite has invalid orbit: "STARLINK-5242" "54173"
Satellite has invalid orbit: "STARLINK-5256" "54175"
Satellite has invalid orbit: "STARLINK-5154" "54176"
Satellite has invalid orbit: "STARLINK-5186" "54177"
Satellite has invalid orbit: "STARLINK-5164" "54178"
Satellite has invalid orbit: "STARLINK-5122" "54179"
Satellite has invalid orbit: "STARLINK-5228" "54180"
Satellite has invalid orbit: "STARLINK-5227" "54181"
Satellite has invalid orbit: "STARLINK-5239" "54183"
Satellite has invalid orbit: "STARLINK-5162" "54184"
Satellite has invalid orbit: "STARLINK-5235" "54185"
Satellite has invalid orbit: "STARLINK-5182" "54189"
Satellite has invalid orbit: "ONEWEB-0592" "54658"
Satellite has invalid orbit: "ONEWEB-0603" "54667"
Satellite has invalid orbit: "ONEWEB-0604" "54668"
Satellite has invalid orbit: "ONEWEB-0605" "54669"
Satellite has invalid orbit: "ONEWEB-0606" "54670"
Satellite has invalid orbit: "ONEWEB-0610" "54673"
Satellite has invalid orbit: "ONEWEB-0611" "54674"
Satellite has invalid orbit: "ONEWEB-0612" "54675"
Satellite has invalid orbit: "ONEWEB-0615" "54676"
Satellite has invalid orbit: "ONEWEB-0655" "54677"
Satellite has invalid orbit: "ONEWEB-0685" "54679"
Satellite has invalid orbit: "STARLINK-5426" "75426"
Satellite has invalid orbit: "STARLINK-5437" "75437"
Satellite has invalid orbit: "STARLINK-5440" "75440"
Satellite has invalid orbit: "STARLINK-5446" "75446"
Loaded plugin "SolarSystemEditor"
Using the ssystem_minor.ini file that already exists in the user directory...
"WARNING: could not find script file %f"
Dubious result: Landscape  "Guereins"  not calibrated. Opacity test represents mathematical horizon only.
github-actions[bot] commented 1 year ago

Thanks for adding your first issue to Stellarium. If you have questions, please do not hesitate to contact us.

gzotti commented 1 year ago

When zooming in after launch, the DSO textures must load. This is experienced as a usually short break/stall. Do you really have a crash? On Raspberry Pi I experienced a similar crash which was caused by too little memory (and probably the driver not handling this well). We found a solution by reducing DSO texture sizes. For a test, can you disable DSO textures (there is an optional button, or hotkey [I]) and zoom again? Right after crash, dmesg may also tell you the cause.

akkepsamra commented 1 year ago

When zooming in after launch, the DSO textures must load. This is experienced as a usually short break/stall. Do you really have a crash? On Raspberry Pi I experienced a similar crash which was caused by too little memory (and probably the driver not handling this well). We found a solution by reducing DSO texture sizes. For a test, can you disable DSO textures (there is an optional button, or hotkey [I]) and zoom again? Right after crash, dmesg may also tell you the cause.

Yes it is a crash, app closes unexpectedly. If I don't have constellation lines on, then everything works flawlessly. And I Have Deep Space Objects off too, and still a crash, but only when constellation lines are on.

gzotti commented 1 year ago

And is it only constellation lines, or other lines as well? E.g., what about grids?

akkepsamra commented 1 year ago

And is it only constellation lines, or other lines as well? E.g., what about grids?

Just tested! When I turn grid lines on when in default view, Stellarium also crashes. No zooming required with grid lines.

10110111 commented 1 year ago

Does it also crash if you set LIBGL_ALWAYS_SOFTWARE=1 environment variable before starting Stellarium?

gzotti commented 1 year ago

@10110111 Can this be related to the line drawing updates? Maybe also a driver issue? (But I use it also on another GPU, no problem there.)

10110111 commented 1 year ago

That's why my question.

akkepsamra commented 1 year ago

Does it also crash if you set LIBGL_ALWAYS_SOFTWARE=1 environment variable before starting Stellarium?

Sorry, how to set this exactly? Edit a text file or something?

10110111 commented 1 year ago

From the terminal:

LIBGL_ALWAYS_SOFTWARE=1 stellarium

This should launch Stellarium with this environment variable set (assuming you just installed Stellarium from Ubuntu's repository).

akkepsamra commented 1 year ago

I have AppImage version.

But now tried to install from the repository and it gave me version 0.20.4. However, it doesn't crash with grid lines on. I didn't alter environment variables. But for some reason that old version doesn't show constellation lines at all even if they're on.

I don't know how to change LIBGL_ALWAYS_SOFTWARE=1 to AppImage. I use AppImageLauncher.

alex-w commented 1 year ago

LIBGL_ALWAYS_SOFTWARE=1 ./Stellarium-1.2-x86_64.AppImage

akkepsamra commented 1 year ago

Yes, no more crash with version 1.2 when LIBGL_ALWAYS_SOFTWARE=1. But now I don't see constellation lines at all. Is it possibly because I installed old version from repositories? When app starts, it says something about DSO version mismatch too. Perhaps I need to uninstall everything and install again..

10110111 commented 1 year ago

Is it possibly because I installed old version from repositories?

I don't think so, but it'll be better to remove it to avoid any conflicts.

gzotti commented 1 year ago

Any updates here?

github-actions[bot] commented 1 year ago

Hello @akkepsamra, we need more info and feedback!

The hardware info, steps of reproduction and log file are really important and help us resolve over 90% issues fast. Of course, in some specific cases we need more data, but we ask the required data separately...