Just displays a blank window when running on Wayland

Bug #1967698 reported by Paul Broadhead
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
stellarium (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04

$ apt-cache policy stellarium
stellarium:
  Installed: 0.20.4-3
  Candidate: 0.20.4-3
  Version table:
 *** 0.20.4-3 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

When using Wayland, I expect the application to display a window with controls and sky display. Instead a blank window with a black background is displayed. There are no controls or sky displayed. Running under x-org works as expected.

Graphics:
OpenGL version string: 4.6.0 NVIDIA 510.60.02

Running from a terminal gives this text:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
 -----------------------------------------------------
[ This is Stellarium 0.20.4 - https://stellarium.org/ ]
[ Copyright (C) 2000-2021 Fabien Chereau et al. ]
 -----------------------------------------------------
Writing log file to: "/home/paul/.stellarium/log.txt"
File search paths:
  0 . "/home/paul/.stellarium"
  1 . "/usr/share/stellarium"
Config file is: "/home/paul/.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)
Desired surface format: QSurfaceFormat(version 2.1, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)
StelGLWidget constructor
StelGraphicsScene constructor
QOpenGLWidget: Failed to make context current
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::worldTransform: Painter not active
QPainter::save: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::setWorldTransform: Painter not active
QPainter::end: Painter not active, aborted

Running with QT_QPA_PLATFORM=wayland stellarium core dumps with (non of the suggestions work):
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

Paul Broadhead (pjbroad)
summary: - Just displays a blank window
+ Just displays a blank window using Wayland
summary: - Just displays a blank window using Wayland
+ Just displays a blank window when running on Wayland
description: updated
description: updated
Paul Broadhead (pjbroad)
description: updated
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.