Stellarium opens with black screen only, log shows QXcbConnection: XCB errors

Bug #1503250 reported by MC Return on 2015-10-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Medium
Unassigned

Bug Description

The errors shown in the log:

QXcbConnection: XCB error: 3 (BadWindow), sequence: 691, resource id: 100663323, major code: 15 (QueryTree), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 700, resource id: 100663323, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 701, resource id: 100663323, major code: 12 (ConfigureWindow), minor code: 0

Log shows no OpenGL problems:

Detected: OpenGL "3.0"
Driver version string: "3.0 Mesa 11.0.2 (git-4c0b484)"
GL vendor is "X.Org"
GL renderer is "Gallium 0.4 on AMD HAWAII (DRM 2.43.0, LLVM 3.8.0)"
GL Shading Language version is "1.30"
MESA Version Number after parsing: 11
Mesa version is fine, we should not see a graphics problem.
GLSL Version Number after parsing: 1.3
GLSL version is fine, we should not see a graphics problem.

Stellarium, version 0.14.0

MC Return (mc-return) wrote :

I experienced the same bug with different graphics hardware and software:
AMD HD6950/Mesa radeon driver
AMD R390X/Mesa radeonsi driver

So the bug does not seem to be gpu/driver related.

description: updated
Alexander Wolf (alexwolf) wrote :

"QXcbConnection: XCB error:" is from Qt and now: which version of Qt have you installed on your linux? Has you installed all required libraries of Qt5 for Stellarium? How exactly you get binary package of Stellarium?

MC Return (mc-return) wrote :

Hi Alexander,
thanks for the fast response.

I got the stellarium binary from the stellarium/daily PPA (0.98.7859-0ubuntu0~6668~ubuntu14.04.1).

I have installed all required libraries as a "sudo apt-get build-dep stellarium" does not want to install anything else.

All other Qt applications seem to work (like Qt Creator 3.5.0 (based on Qt 5.5) or qgit (compiled against Qt 4.8.4) for example).

How can I find out the Qt version I have installed as I think I've qt4 and 5 installed ?

Alexander Wolf (alexwolf) wrote :

Please try run apt --installed list | grep qt

MC Return (mc-return) wrote :
Download full text (8.1 KiB)

cmake-qt-gui/trusty,now 2.8.12.2-0ubuntu3 amd64 [installed]
libaccounts-qt5-1/trusty,now 1.11+14.04.20140410.1-0ubuntu1 amd64 [installed,automatic]
libdbusmenu-qt2/trusty,now 0.9.3+14.04.20140314-0ubuntu1 amd64 [installed,automatic]
libdbusmenu-qt5/trusty,now 0.9.3+14.04.20140314-0ubuntu1 amd64 [installed,automatic]
libgsettings-qt1/trusty,now 0.1+14.04.20140408-0ubuntu1 amd64 [installed,automatic]
libmygpo-qt1/trusty,now 1.0.7-0ubuntu2 amd64 [installed,automatic]
libntrack-qt4-1/trusty,now 016-1.2ubuntu2 amd64 [installed,automatic]
libpolkit-qt-1-1/trusty,now 0.103.0-1ubuntu1 amd64 [installed,automatic]
libpoppler-qt4-4/trusty-updates,now 0.24.5-2ubuntu4.2 amd64 [installed,automatic]
libqt4-dbus/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-declarative/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-designer/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-dev/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed]
libqt4-dev-bin/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-help/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-network/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-opengl/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-opengl-dev/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed]
libqt4-qt3support/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-script/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-scripttools/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-sql/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-sql-sqlite/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed]
libqt4-svg/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-test/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-xml/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt4-xmlpatterns/trusty-updates,trusty-security,now 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 amd64 [installed,automatic]
libqt5concurrent5/trusty,now 5.3.2+dfsg-4ubuntu8-rjvb-ppa20150110d amd64 [installed,automatic]
libqt5core5a/trusty,now 5.3.2+dfsg-4ubuntu8-rjvb-ppa20150110d amd64 [installed,automatic]
libqt5dbus5/trusty,now 5.3.2+dfsg-4ubuntu8-rjvb-ppa20150110d amd64 [installed,automatic]
libqt5declarative5/trusty,now 5.3.2-3build1-rjvb-ppa20150118 amd64 [installed,automatic]
libqt5gui5/trusty,now 5.3.2+dfsg-4ubuntu8-rjvb-ppa2015...

Read more...

Alexander Wolf (alexwolf) wrote :

WOW! You can try install package from Ubuntu 14.10 (Building packages for Ubuntu 14.04 has been stopped for technical reasons) by hands.

MC Return (mc-return) wrote :

I've upgraded the qt5 libs to version 5.4.1 - the experience is different now - the stellarium window is now partially black and partially grey.
The qt errors reported by stellarium have been reduced from 3 to 1, but this one remains:
QXcbConnection: XCB error: 3 (BadWindow), sequence: 665, resource id: 104857627, major code: 15 (QueryTree), minor code: 0

Alexander Wolf (alexwolf) wrote :

Can you show screenshot and log from Stellarium?

Changed in stellarium:
importance: Undecided → Medium
MC Return (mc-return) wrote :
Download full text (4.4 KiB)

A screenshot would currently just show a black rectangle inside the Stellarium 0.15.0 window...
This is the log:

$ stellarium
 -------------------------------------------------------
[ This is Stellarium 0.15.0 - http://www.stellarium.org ]
[ Copyright (C) 2000-2015 Fabien Chereau et al. ]
 -------------------------------------------------------
Writing log file to: "/home/mcr2010/.stellarium/log.txt"
File search paths:
  0 . "/home/mcr2010/.stellarium"
  1 . "/usr/share/stellarium"
Config file is: "/home/mcr2010/.stellarium/config.ini"
Detected: OpenGL "3.0"
Driver version string: "3.0 Mesa 11.1.0-devel (git-fcb39f5 2015-10-25 vivid-oibaf-ppa)"
GL vendor is "X.Org"
GL renderer is "Gallium 0.4 on AMD HAWAII (DRM 2.43.0, LLVM 3.6.2)"
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/mcr2010/.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"
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 217 / 275 DSO name records successfully
Loading star names from "/usr/share/stellarium/skycultures/western/star_names.fab"
Loaded 340 / 340 common star names
Loading star names from "/usr/share/stellarium/stars/default/name.fab"
Loaded 4502 / 4502 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 "Exoplanets"
Exoplanets: version of the format of the catalog: 1
Exoplanets: loading catalog file: "/home/mcr2010/.stellarium/modules/Exoplanets/exoplanets.json"
Loaded plugin "FOV"
Loaded plugin "MeteorShowers"
MeteorShowersMgr: Loading catalog file: "/home/mcr2010/.stellarium/modules/MeteorShowers/showers.json"
Loaded plugin "Novae"
Novae: version of the catalog: 1
Novae: loading catalog file: "/home/mcr2010/.stellarium/modules/Novae/novae.json"
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/mcr2010/.stellarium...

Read more...

Alexander Wolf (alexwolf) wrote :

Can you run stellarium --dump-opengl-details and show log again?

Alexander Wolf (alexwolf) wrote :

Oops... I see problems with loading DSO data. How much RAM has your computer?

MC Return (mc-return) wrote :
Download full text (11.7 KiB)

I have 8Gig of RAM.

$ stellarium --dump-opengl-details
 -------------------------------------------------------
[ This is Stellarium 0.15.0 - http://www.stellarium.org ]
[ Copyright (C) 2000-2015 Fabien Chereau et al. ]
 -------------------------------------------------------
Writing log file to: "/home/mcr2010/.stellarium/log.txt"
File search paths:
  0 . "/home/mcr2010/.stellarium"
  1 . "/usr/share/stellarium"
Config file is: "/home/mcr2010/.stellarium/config.ini"
Detected: OpenGL "3.0"
Driver version string: "3.0 Mesa 11.1.0-devel (git-fcb39f5 2015-10-25 vivid-oibaf-ppa)"
GL vendor is "X.Org"
GL renderer is "Gallium 0.4 on AMD HAWAII (DRM 2.43.0, LLVM 3.6.2)"
GL Shading Language version is "1.30"
initializeOpenGLFunctions()...
OpenGL Features:
 - glActiveTexture() function is available.
 - Shader functions are available.
 - Vertex and index buffer functions are available.
 - Framebuffer object functions are available.
 - glBlendColor() is available.
 - glBlendEquation() is available.
 - glBlendEquationSeparate() is available.
 - glBlendFuncSeparate() is available.
 - Blend subtract mode is available.
 - Compressed texture functions are available.
 - glSampleCoverage() function is available.
 - Separate stencil functions are available.
 - Non power of two textures are available.
 - Non power of two textures can use GL_REPEAT as wrap parameter.
 - The fixed function pipeline is available.
OpenGL shader capabilities and details:
 - Vertex Shader: YES
 - Fragment Shader: YES
 - Geometry Shader: NO
 - TessellationControl Shader: NO
 - TessellationEvaluation Shader: NO
 - Compute Shader: NO
We have 218 OpenGL extensions:
 - "GL_AMD_conservative_depth"
 - "GL_AMD_draw_buffers_blend"
 - "GL_AMD_pinned_memory"
 - "GL_AMD_seamless_cubemap_per_texture"
 - "GL_AMD_shader_stencil_export"
 - "GL_AMD_shader_trinary_minmax"
 - "GL_ANGLE_texture_compression_dxt3"
 - "GL_ANGLE_texture_compression_dxt5"
 - "GL_APPLE_packed_pixels"
 - "GL_APPLE_vertex_array_object"
 - "GL_ARB_ES2_compatibility"
 - "GL_ARB_ES3_compatibility"
 - "GL_ARB_base_instance"
 - "GL_ARB_blend_func_extended"
 - "GL_ARB_buffer_storage"
 - "GL_ARB_clear_buffer_object"
 - "GL_ARB_clip_control"
 - "GL_ARB_color_buffer_float"
 - "GL_ARB_compressed_texture_pixel_storage"
 - "GL_ARB_conditional_render_inverted"
 - "GL_ARB_conservative_depth"
 - "GL_ARB_copy_buffer"
 - "GL_ARB_debug_output"
 - "GL_ARB_depth_buffer_float"
 - "GL_ARB_depth_clamp"
 - "GL_ARB_depth_texture"
 - "GL_ARB_derivative_control"
 - "GL_ARB_draw_buffers"
 - "GL_ARB_draw_buffers_blend"
 - "GL_ARB_draw_elements_base_vertex"
 - "GL_ARB_draw_instanced"
 - "GL_ARB_explicit_attrib_location"
 - "GL_ARB_explicit_uniform_location"
 - "GL_ARB_fragment_coord_conventions"
 - "GL_ARB_fragment_program"
 - "GL_ARB_fragment_program_shadow"
 - "GL_ARB_fragment_shader"
 - "GL_ARB_framebuffer_object"
 - "GL_ARB_framebuffer_sRGB"
 - "GL_ARB_get_program_binary"
 - "GL_ARB_get_texture_sub_image"
 - "GL_ARB_half_float_pixel"
 - "GL_ARB_half_float_vertex"
 - "GL_ARB_instanced_arrays"
 - "GL_ARB_internalformat_query"
 - "GL_ARB_invalidate_subdata"
 - "GL_ARB_map_buffer_alignment"
 - "GL_ARB_map_buffer_range"
 - "GL_ARB_multi_bind"
 - "...

Alexander Wolf (alexwolf) wrote :

Thanks for info and log. Can you show ldd stellarium please?

Alexander Wolf (alexwolf) wrote :

It can be strange, but... where is located executive binary file of stellarium?

MC Return (mc-return) wrote :
Download full text (4.2 KiB)

stellarium is located in /usr/bin. If I execute it via /usr/bin/stellarium directly symptoms are the same (black screen only).

Running ldd stellarium shows:
$ ldd stellarium
ldd: ./stellarium: No such file or directory

while running ldd /usr/bin/stellarium shows:
$ ldd /usr/bin/stellarium
 linux-vdso.so.1 => (0x00007fff567c0000)
 libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f6bdeb4b000)
 libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f6bde5fe000)
 libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f6bde365000)
 libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f6bdde22000)
 libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f6bddcc3000)
 libQt5OpenGL.so.5 => /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5 (0x00007f6bddc67000)
 libQt5Script.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Script.so.5 (0x00007f6bdd9d5000)
 libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f6bdd32e000)
 libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f6bdcfab000)
 libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6bdcca3000)
 libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6bdca8c000)
 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bdc6c1000)
 libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f6bdc49b000)
 libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f6bdc244000)
 libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f6bdc01a000)
 libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f6bdbdec000)
 libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f6bdbbda000)
 libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f6bdb9d6000)
 libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f6bdb7d0000)
 libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f6bdb5ce000)
 libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f6bdb293000)
 libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f6bdb07a000)
 libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f6bdae75000)
 libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f6bdac71000)
 libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f6bdaa6e000)
 libxcb-randr.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f6bda860000)
 libxcb-xfixes.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f6bda657000)
 libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f6bda44d000)
 libxcb-shape.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f6bda249000)
 libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f6bda041000)
 libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f6bd9e20000)
 libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f6bd9c1e000)
 libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f6bd9a17000)
 libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f6bd9808000)
 libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6bd95ea000)
 libdl.so.2 => /lib/x86_64...

Read more...

gzotti (georg-zotti) wrote :

What is the state of this bug currently?

Changed in stellarium:
status: New → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for Stellarium because there has been no activity for 60 days.]

Changed in stellarium:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers