Broken UI on second start in windowed mode

Bug #1581648 reported by rumen
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Undecided
Unassigned

Bug Description

Once you start Stellarium with fullscreen = false it starts okay for the first time, but the next time you start it in the same X session the UI is broken. Please see the screenshot.
To fix this one has to maximize the window or go to full screen. Then when you return to a not maximized window it is ok until the next start.

rumen@home-desktop:~$ stellarium
 -------------------------------------------------------
[ This is Stellarium 0.15.0 - http://www.stellarium.org ]
[ Copyright (C) 2000-2016 Fabien Chereau et al. ]
 -------------------------------------------------------
Writing log file to: "/home/rumen/.stellarium/log.txt"
File search paths:
  0 . "/home/rumen/.stellarium"
  1 . "/usr/share/stellarium"
Config file is: "/home/rumen/.stellarium/config.ini"
Detected: OpenGL "3.0"
Driver version string: "3.0 Mesa 11.2.0"
GL vendor is "Intel Open Source Technology Center"
GL renderer is "Mesa DRI Intel(R) Haswell "
GL Shading Language version is "1.30"
MESA Version Number detected: 11.2
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/rumen/.cache/stellarium/stellarium"
Sky language is "en_US"
Application language is "en_US"
Loading Solar System data ...
Loading star data ...
"Loading \"/usr/share/stellarium/stars/default/stars_0_0v0_5.cat\": 0_0v0_2; 4963"
"Loading \"/usr/share/stellarium/stars/default/stars_1_0v0_5.cat\": 1_0v0_2; 21598"
"Loading \"/usr/share/stellarium/stars/default/stars_2_0v0_5.cat\": 2_0v0_2; 150090"
"Loading \"/usr/share/stellarium/stars/default/stars_3_1v0_3.cat\": 3_1v0_3; 428466"
"Loading \"/home/rumen/.stellarium/stars/default/stars_4_1v0_1.cat\": 4_1v0_3; 1702042"
"Loading \"/home/rumen/.stellarium/stars/default/stars_5_2v0_1.cat\": 5_2v0_1; 7083058"
"Loading \"/home/rumen/.stellarium/stars/default/stars_6_2v0_1.cat\": 6_2v0_1; 24670782"
Finished loading star catalogue data, max_geodesic_level: 6
navigation/preset_sky_time is a double - treating as jday: "2451514.25001"
Unable to find module called "ConstellationMgr"
Reloading DSO data...
Loaded 10756 DSO records
Loading DSO name data ...
Loaded 221 / 297 DSO name records successfully
Loading star names from "/usr/share/stellarium/skycultures/western/star_names.fab"
Loaded 339 / 339 common star names
Loading star names from "/usr/share/stellarium/stars/default/name.fab"
Loaded 4506 / 4506 scientific star names
Loading variable stars from "/usr/share/stellarium/stars/default/gcvs_hip_part.dat"
Loaded 6916 / 6916 variable stars
Loading cross-index data from "/usr/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 ...
Loaded plugin "AngleMeasure"
Loaded plugin "Exoplanets"
[Exoplanets] Version of the format of the catalog: 1
[Exoplanets] loading catalog file: "/home/rumen/.stellarium/modules/Exoplanets/exoplanets.json"
Loaded plugin "FOV"
Loaded plugin "MeteorShowers"
MeteorShowersMgr: Loading catalog file: "/home/rumen/.stellarium/modules/MeteorShowers/showers.json"
Loaded plugin "Novae"
Novae: version of the catalog: 1
Novae: loading catalog file: "/home/rumen/.stellarium/modules/Novae/novae.json"
Loaded plugin "Observability"
Loaded plugin "Oculars"
Ocular plugin - press Command-O to toggle eyepiece view mode. Press ALT-o for configuration.
Oculars::validateIniFile ocular.ini exists at: "/home/rumen/.stellarium/modules/Oculars/ocular.ini" . Checking version...
Oculars::validateIniFile found existing ini file version 3
Loaded plugin "PointerCoordinates"
Loaded plugin "Satellites"
Satellites: loading catalog file: "/home/rumen/.stellarium/modules/Satellites/satellites.json"
Loaded plugin "SolarSystemEditor"
Using the ssystem.ini file that already exists in the user directory...
Loaded plugin "TelescopeControl"
[TelescopeControl] Only embedded telescope servers are available.
[TelescopeControl] Adding device model: "Meade AutoStar compatible" "Any telescope or telescope mount compatible with Meade's AutoStar controller." "TelescopeServerLx200" 500000
[TelescopeControl] Adding device model: "Meade LX200 (compatible)" "Any telescope or telescope mount compatible with Meade LX200." "TelescopeServerLx200" 500000
[TelescopeControl] Adding device model: "Meade ETX70 (#494 Autostar, #506 CCS)" "Meade's ETX70 with the #494 Autostar controller and the #506 Connector Cable Set." "TelescopeServerLx200" 1500000
[TelescopeControl] Adding device model: "Losmandy G-11" "Losmandy's G-11 telescope mount." "TelescopeServerLx200" 500000
[TelescopeControl] Adding device model: "Wildcard Innovations Argo Navis (Meade mode)" "Wildcard Innovations' Argo Navis DTC in Meade LX200 emulation mode." "TelescopeServerLx200" 500000
[TelescopeControl] Adding device model: "Celestron NexStar (compatible)" "Any telescope or telescope mount compatible with Celestron NexStar." "TelescopeServerNexStar" 500000
[TelescopeControl] Adding device model: "Sky-Watcher SynScan (version 3 or later)" "Any Sky-Watcher mount that uses version 3 or later of the SynScan hand controller." "TelescopeServerNexStar" 500000
[TelescopeControl] Adding device model: "Sky-Watcher SynScan AZ GOTO" "The Sky-Watcher SynScan AZ GOTO mount used in a number of telescope models." "TelescopeServerNexStar" 500000
[TelescopeControl] loadTelescopes(): No telescopes loaded. File is missing: "/home/rumen/.stellarium/modules/TelescopeControl/telescopes.json"
Unable to find module called "TimeZoneConfiguration"
Loaded plugin "TimeZoneConfiguration"
IP answer: "46.249.78.231,BG,Bulgaria,,,,,Europe/Sofia,42.70,23.33,0\r\n"
Unloaded plugin "TimeZoneConfiguration"
Unloaded plugin "TelescopeControl"
Unloaded plugin "SolarSystemEditor"
Unloaded plugin "Satellites"
Unloaded plugin "PointerCoordinates"
Unloaded plugin "Oculars"
Unloaded plugin "Observability"
Unloaded plugin "Novae"
Unloaded plugin "MeteorShowers"
Unloaded plugin "FOV"
Unloaded plugin "Exoplanets"
Unloaded plugin "AngleMeasure"
Downloaded 1 files (0 kbytes) in a session of 3.687 sec (average of 0 kB/s + 0 files from cache (0 kB)).
rumen@home-desktop:~$

Tags: gui
Revision history for this message
rumen (rumen) wrote :
Changed in stellarium:
milestone: none → 0.15.0
tags: added: gui
Revision history for this message
gzotti (georg-zotti) wrote :

I can confirm on Ubuntu 15.04 (jessie/sid) on an Intel NUC (OpenGL 3.0)
Driver version string: Mesa 10.5.9
GL vendor: Intel Open Source Technology Center
GL renderer: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)

Any manual resize of the window will fix it. Programmatic resizes at program start don't appear to fix it. (Or I have not found the right place.)

Rumen, what OS version do you have? And do you run Unity desktop or some other?

Changed in stellarium:
status: New → Incomplete
Changed in stellarium:
milestone: 0.15.0 → none
milestone: none → 0.15.0
Changed in stellarium:
milestone: 0.15.0 → 0.15.1
Revision history for this message
Tanmoy Saha (t4saha) wrote :

Ubuntu 16.04 unity also have this problem. I run stellarium in mesa mode.

Changed in stellarium:
milestone: 0.15.1 → 1.0.0
status: Incomplete → Confirmed
Revision history for this message
corrado venturini (corradoventu) wrote :

Same problem with Stellarium 0.15.1 on Ubuntu 17.04 unity
note, if this may help: the sky image on top-left of the window is 640z480

corrado@corrado-z2:~$ inxi -Fx
System: Host: corrado-z2 Kernel: 4.9.0-16-generic x86_64 (64 bit gcc: 6.3.0)
           Desktop: Unity 7.5.0 (Gtk 3.22.7-1ubuntu4)
           Distro: Ubuntu Zesty Zapus (development branch)
Machine: Device: desktop Mobo: Gigabyte model: H87M-D3H v: x.x
           UEFI: American Megatrends v: F3 date: 04/24/2013
CPU: Dual core Intel Core i3-4130 (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 13568
           clock speeds: max: 3400 MHz 1: 3373 MHz 2: 3400 MHz 3: 3400 MHz
           4: 3401 MHz
Graphics: Card: Intel 4th Generation Core Processor Family Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1680x1050@59.88hz
           GLX Renderer: Mesa DRI Intel Haswell
           GLX Version: 3.0 Mesa 13.0.4 Direct Rendering: Yes
Audio: Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.9.0-16-generic
Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 02:00.0
           IF: enp2s0 state: up speed: 100 Mbps duplex: full
           mac: 94:de:80:7e:90:a7
Drives: HDD Total Size: 1000.2GB (10.0% used)
           ID-1: /dev/sda model: ST1000DM003 size: 1000.2GB
Partition: ID-1: / size: 32G used: 9.6G (33%) fs: ext4 dev: /dev/sda4
           ID-2: swap-1 size: 8.59GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C
           Fan Speeds (in rpm): cpu: N/A
Info: Processes: 244 Uptime: 6:22 Memory: 1346.2/7861.4MB
           Init: systemd runlevel: 5 Gcc sys: 6.3.0
           Client: Shell (bash 4.4.51) inxi: 2.3.8
corrado@corrado-z2:~$

did you need also the log.txt?

Revision history for this message
Alexander Wolf (alexwolf) wrote :

>did you need also the log.txt?

Yes, please attach log also.

Revision history for this message
corrado venturini (corradoventu) wrote :

same problem also with Ubuntu 16.10 Yak on a different hardware:
corrado@corrado-yak-hp:~$ inxi -Fx
System: Host: corrado-yak-hp Kernel: 4.8.0-32-generic x86_64 (64 bit gcc: 6.2.0)
           Desktop: Unity 7.5.0 (Gtk 3.20.9-1ubuntu2) Distro: Ubuntu 16.10
Machine: System: Hewlett-Packard (portable) product: HP 250 G3 Notebook PC v: 0991100000000000000600087
           Mobo: Hewlett-Packard model: 2211 v: 86.49
           UEFI: Insyde v: F.36 date: 12/18/2014
Battery BAT1: charge: 17.1 Wh 75.6% condition: 22.6/22.5 Wh (101%)
           model: 13-42 OA03031 status: Discharging
CPU: Dual core Intel Core i5-4210U (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9578
           clock speeds: max: 2700 MHz 1: 1699 MHz 2: 1773 MHz 3: 1703 MHz
           4: 1733 MHz
Graphics: Card: Intel Haswell-ULT Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel Haswell Mobile
           GLX Version: 3.0 Mesa 12.0.3 Direct Rendering: Yes
Audio: Card-1 Intel 8 Series HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Haswell-ULT HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.8.0-32-generic
Network: Card-1: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
           driver: r8169 v: 2.3LK-NAPI port: 3000 bus-ID: 08:00.0
           IF: enp8s0 state: up speed: 100 Mbps duplex: full
           mac: 5c:b9:01:06:ba:ce
           Card-2: Ralink RT3290 Wireless 802.11n 1T/1R PCIe
           driver: rt2800pci v: 2.3.0 bus-ID: 09:00.0
           IF: wlo1 state: down mac: ac:d1:b8:82:03:5d
Drives: HDD Total Size: 500.1GB (2.4% used)
           ID-1: /dev/sda model: ST500LT012 size: 500.1GB
Partition: ID-1: / size: 32G used: 7.3G (25%) fs: ext4 dev: /dev/sda7
           ID-2: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 43.0C mobo: 43.0C
           Fan Speeds (in rpm): cpu: N/A
Info: Processes: 223 Uptime: 5 min Memory: 834.6/3882.8MB
           Init: systemd runlevel: 5 Gcc sys: 6.2.0
           Client: Shell (bash 4.3.461) inxi: 2.3.1
corrado@corrado-yak-hp:~$

Revision history for this message
corrado venturini (corradoventu) wrote :

I attach log.txt as you ask, but in the meantime I changed config, so I will attach this also
note: config and log from Stellarium 0.15.1 on Ubuntu 17.04 unity

Revision history for this message
corrado venturini (corradoventu) wrote :

... also new config.ini

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Could you install apitrace util and get a trace for OpenGL API usage by Stellarium?

Revision history for this message
corrado venturini (corradoventu) wrote :

installed apitrace, but i have no idea as to use it!

Revision history for this message
Alexander Wolf (alexwolf) wrote :

please try run: apitrace trace --api gl stellarium

Hint: https://github.com/apitrace/apitrace/blob/master/docs/USAGE.markdown

Revision history for this message
corrado venturini (corradoventu) wrote :

done. now i attach the log, but now i have a big stellarium.trace - 170 MB. i don't know if it is to big.

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Please try archive the trace file and attach it here.

Revision history for this message
corrado venturini (corradoventu) wrote :

try to send stellarium.trace ..

Revision history for this message
corrado venturini (corradoventu) wrote :

I realized that changing config to have a less cluttered sky the trace is much smaller, so i will send the new config.ini, log.txt and stellarium.1.trace
thanks for your work on this fantastic software!

Revision history for this message
corrado venturini (corradoventu) wrote :

new log.txt

Revision history for this message
corrado venturini (corradoventu) wrote :

new smaller trace

Revision history for this message
corrado venturini (corradoventu) wrote :

I've done some more test hoping to ease Your work.
Between frame 95 and frame 96 i did a small manual resize of the window so restoring the correct behavior.
I added also two screenshot from a similar test (before and aftre resize).

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Please try add/change in section [projection] of config.ini file two parameters:
viewport_width = 1024
viewport_height = 768

Revision history for this message
corrado venturini (corradoventu) wrote :

done ... no change

Revision history for this message
corrado venturini (corradoventu) wrote :

If I set the initial size to 345x894 or 1185x460 the sky fills the window at start.
Attached the config, log, apitrace and screenshot of both test.

Revision history for this message
corrado venturini (corradoventu) wrote :

At the first start the window is correctly filled, but the next time the sky does not fill the window. May be the two traces can help?

Revision history for this message
corrado venturini (corradoventu) wrote :

I'm now using Stellarium 0.15.2 on Ubuntu 17.10 (Artful Aardvark) with Desktop Gnome 3.24.1 and the problem has disappeared. Thanks a lot.

Revision history for this message
gzotti (georg-zotti) wrote :

I also can no longer confirm the problem. Both V0.16.1 from Stellarium's ppa and built from trunk do not show the issue on the Intel NUC. We can assume that the switch to QOpenGLWidget before 0.15.2, or some change in Intel drivers and/or Unity desktop has solved it.

Changed in stellarium:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.