Summary: | Plasma fails to launch with Wayland and NVidia (kwin_scene_opengl: Creating the OpenGL rendering failed: "query surface failed") | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | gamer633697 |
Component: | Startup process | Assignee: | David Edmundson <kde> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | alexbcn, b2c, dashonwwIII, dev+kde, ekurzinger, jamesilmarimakela, kde, kde, koutheir, lexlexlex, nate, ngompa13, plasma-bugs, postix, xaver.hugl |
Priority: | NOR | Keywords: | wayland |
Version: | 5.27.5 | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Log of console output when attempting to launch |
Description
gamer633697
2021-07-29 21:40:17 UTC
Created attachment 140401 [details]
Log of console output when attempting to launch
The same error seems to occur on another computer; ran `XDG_SESSION_TYPE=wayland sudo dbus-run-session startplasma-wayland`, same error. Same package versions, though hardware differs - a NVidia 2070S in this one. Does `XDG_SESSION_TYPE=wayland dbus-run-session kwin_wayland --exit-with-session=konsole` work? I have this issue on my machine. I tried the command in Vlad Zahorodnii's comment: XDG_SESSION_TYPE=wayland dbus-run-session kwin_wayland --exit-with-session=konsole This command above kind of works, showing a black desktop with no panels and a tiny konsole window on the secondary display with a wrong monitor layout, so I had to move the cursor off the right side of my right (primary) monitor to get the konsole window from my left monitor. That, at least, started a graphical program which let me move my mouse around. However, the following command, with "kwin_wayland" substituted by "startplasma-wayland" has the following output and doesn't start any graphical program. command: XDG_SESSION_TYPE=wayland dbus-run-session kwin_wayland --exit-with-session=konsole output (stderr): dbus-daemon[679081]: [session uid=1000 pid=679081] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=1000 pid=679082 comm="startplasma-wayland --exit-with-session=konsole ") dbus-daemon[679081]: [session uid=1000 pid=679081] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[679081]: [session uid=1000 pid=679081] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=1000 pid=679082 comm="startplasma-wayland --exit-with-session=konsole ") dbus-daemon[679081]: [session uid=1000 pid=679081] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[679081]: [session uid=1000 pid=679081] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=1000 pid=679082 comm="startplasma-wayland --exit-with-session=konsole ") dbus-daemon[679081]: [session uid=1000 pid=679081] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[679081]: [session uid=1000 pid=679081] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=1000 pid=679082 comm="startplasma-wayland --exit-with-session=konsole ") dbus-daemon[679081]: [session uid=1000 pid=679081] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 (kwin_wayland:679094): Gtk-WARNING **: 11:59:03.550: cannot open display: (kwin_wayland:679095): Gtk-WARNING **: 11:59:03.635: cannot open display: (kwin_wayland:679096): Gtk-WARNING **: 11:59:03.725: cannot open display: (kwin_wayland:679097): Gtk-WARNING **: 11:59:03.815: cannot open display: (kwin_wayland:679098): Gtk-WARNING **: 11:59:03.908: cannot open display: (kwin_wayland:679099): Gtk-WARNING **: 11:59:03.996: cannot open display: (kwin_wayland:679100): Gtk-WARNING **: 11:59:04.087: cannot open display: (kwin_wayland:679102): Gtk-WARNING **: 11:59:04.184: cannot open display: (kwin_wayland:679103): Gtk-WARNING **: 11:59:04.270: cannot open display: (kwin_wayland:679104): Gtk-WARNING **: 11:59:04.365: cannot open display: (kwin_wayland:679105): Gtk-WARNING **: 11:59:04.460: cannot open display: startplasmacompositor: Shutting down... startplasmacompositor: Done. It means that kwin_wayland starts, but startplasma-wayland doesn't work. Moving to plasma. I've just reread my previous command and realized that it has the second command which I used entered incorrectly, so I'd like to correct myself. What I used which did not work was this: XDG_SESSION_TYPE=wayland dbus-run-session startplasma-wayland --exit-with-session=konsole (In reply to Vlad Zahorodnii from comment #3) > Does `XDG_SESSION_TYPE=wayland dbus-run-session kwin_wayland > --exit-with-session=konsole` work? Running `XDG_SESSION_TYPE=wayland dbus-run-session kwin_wayland --exit-with-session=konsole` from terminal results in `(kwin_wayland:38694): Gtk-WARNING **: 12:27:12.730: cannot open display:`. When run from a terminal emulator from within an X session, a window opens that's just black (though I do not have konsole installed). Can we ask you to please check if this is still an issue with Plasma 5.27? Thanks! (In reply to Nate Graham from comment #8) > Can we ask you to please check if this is still an issue with Plasma 5.27? > Thanks! Still an issue for me with plasma 5.27. I have attached the output I receive when I run the command `kwin_wayland --xwayland` from a terminal in an X11 session. > No backend specified, automatically choosing X11 because DISPLAY is set > kwin_wayland_x11windowed: X server supports SHM extension but not shared pixmaps > kf.globalaccel.kglobalacceld: Failed to register service org.kde.kglobalaccel > OpenGL vendor string: NVIDIA Corporation > OpenGL renderer string: NVIDIA GeForce GTX 1070/PCIe/SSE2 > OpenGL version string: 3.1.0 NVIDIA 530.41.03 > OpenGL shading language version string: 1.40 NVIDIA via Cg compiler > Driver: NVIDIA > Driver version: 530.41.3 > GPU class: Unknown > OpenGL version: 3.1 > GLSL version: 1.40 > Linux kernel version: 6.2.12 > Requires strict binding: no > GLSL shaders: yes > Texture NPOT support: yes > Virtual Machine: no > kwin_scene_opengl: Creating the OpenGL rendering failed: "query surface failed" > kwin_core: The used windowing system requires compositing > kwin_core: We are going to quit KWin now as it is broken > kwin_scene_opengl: Creating the OpenGL rendering failed: "query surface failed"
That looks relevant.
(In reply to jamesilmarimakela from comment #9) > (In reply to Nate Graham from comment #8) > > Can we ask you to please check if this is still an issue with Plasma 5.27? > > Thanks! > > Still an issue for me with plasma 5.27. I have attached the output I receive > when I run the command `kwin_wayland --xwayland` from a terminal in an X11 > session. > > > No backend specified, automatically choosing X11 because DISPLAY is set > > kwin_wayland_x11windowed: X server supports SHM extension but not shared pixmaps > > kf.globalaccel.kglobalacceld: Failed to register service org.kde.kglobalaccel > > OpenGL vendor string: NVIDIA Corporation > > OpenGL renderer string: NVIDIA GeForce GTX 1070/PCIe/SSE2 > > OpenGL version string: 3.1.0 NVIDIA 530.41.03 > > OpenGL shading language version string: 1.40 NVIDIA via Cg compiler > > Driver: NVIDIA > > Driver version: 530.41.3 > > GPU class: Unknown > > OpenGL version: 3.1 > > GLSL version: 1.40 > > Linux kernel version: 6.2.12 > > Requires strict binding: no > > GLSL shaders: yes > > Texture NPOT support: yes > > Virtual Machine: no > > kwin_scene_opengl: Creating the OpenGL rendering failed: "query surface failed" > > kwin_core: The used windowing system requires compositing > > kwin_core: We are going to quit KWin now as it is broken That's an unrelated error, for the nested session only. The feature causing the error you're running into has been removed for Plasma 6; if it still happens with Plasma 6, please make a separate bug report about this. As the original author hasn't answered, I'm closing this. If it's still happening with Plasma 5.27, just reopen it again. I have the same issue on KDE 5.27.5. I can't start a plasma-wayland session, it crashes immediately and then I'm back on the login screen. wayland-session.log: ------------------------------ org.kde.startup: not a reply org.freedesktop.locale1 QDBusMessage(type=Error, service="org.freedesktop.DBus", error name="org.freedesktop.DBus.Error.ServiceUnknown", error message="The name org.freedesktop.locale1 was not provided by any .service files", signature="s", contents=("The name org.freedesktop.locale1 was not provided by any .service files") ) QIODevice::read (QFile, "/home/david/.config/kdedefaults/package"): device not open kf.service.services: The desktop entry file "/usr/share/applications/qemu.desktop" has Type= "Application" but no Exec line kf.service.sycoca: Invalid Service : "/usr/share/applications/qemu.desktop" kf.service.services: The desktop entry file "/usr/share/applications/org.freedesktop.Xwayland.desktop" has Type= "Application" but no Exec line kf.service.sycoca: Invalid Service : "/usr/share/applications/org.freedesktop.Xwayland.desktop" QDBusConnection: error: could not send signal to service "" path "//home/david/.config/kdedefaults/kdeglobals" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //home/david/.config/kdedefaults/kdeglobals QDBusConnection: error: could not send signal to service "" path "//home/david/.config/kdedefaults/kdeglobals" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //home/david/.config/kdedefaults/kdeglobals QDBusConnection: error: could not send signal to service "" path "//home/david/.config/kdedefaults/kdeglobals" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //home/david/.config/kdedefaults/kdeglobals QDBusConnection: error: could not send signal to service "" path "//home/david/.config/kdedefaults/kcminputrc" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //home/david/.config/kdedefaults/kcminputrc QDBusConnection: error: could not send signal to service "" path "//home/david/.config/kdedefaults/kwinrc" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //home/david/.config/kdedefaults/kwinrc QDBusConnection: error: could not send signal to service "" path "//home/david/.config/kdedefaults/kwinrc" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //home/david/.config/kdedefaults/kwinrc No protocol specified /usr/bin/xrdb: Resource temporarily unavailable /usr/bin/xrdb: Can't open display ':0' QPixmap: QGuiApplication must be created before calling defaultDepth(). QPixmap: QGuiApplication must be created before calling defaultDepth(). dbus-daemon[6557]: [session uid=1001 pid=6557] Activating service name='org.kde.KSplash' requested by ':1.0' (uid=1001 pid=6558 comm="/usr/bin/startplasma-wayland") dbus-daemon[6557]: [session uid=1001 pid=6557] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.4' (uid=1001 pid=10021 comm="/usr/bin/ksplashqml") dbus-daemon[6557]: [session uid=1001 pid=6557] Activating service name='org.freedesktop.portal.Documents' requested by ':1.5' (uid=1001 pid=10028 comm="/usr/libexec/xdg-desktop-portal") kdeinit5: preparing to launch '/usr/lib64/libexec/kf5/klauncher' kdeinit5: Launched KLauncher, pid = 10037, result = 0 dbus-daemon[6557]: [session uid=1001 pid=6557] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.6' (uid=1001 pid=10034 comm="/usr/libexec/xdg-document-portal") dbus-daemon[6557]: [session uid=1001 pid=6557] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore' dbus-daemon[6557]: [session uid=1001 pid=6557] Successfully activated service 'org.freedesktop.portal.Documents' ** (/usr/libexec/xdg-desktop-portal:10028): WARNING **: 19:30:15.975: Failed to load RealtimeKit property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.RealtimeKit1 was not provided by any .service files ** (/usr/libexec/xdg-desktop-portal:10028): WARNING **: 19:30:15.975: Failed to load RealtimeKit property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.RealtimeKit1 was not provided by any .service files ** (/usr/libexec/xdg-desktop-portal:10028): WARNING **: 19:30:15.975: Failed to load RealtimeKit property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.RealtimeKit1 was not provided by any .service files dbus-daemon[6557]: [session uid=1001 pid=6557] Activating service name='org.freedesktop.impl.portal.desktop.kde' requested by ':1.5' (uid=1001 pid=10028 comm="/usr/libexec/xdg-desktop-portal") No backend specified, automatically choosing X11 because DISPLAY is set No protocol specified No backend specified, automatically choosing X11 because DISPLAY is set No protocol specified No backend specified, automatically choosing X11 because DISPLAY is set No protocol specified [ ... ] The Wayland connection broke. Did the Wayland compositor die? qt.qpa.wayland: Creating a fake screen in order for Qt not to crash The Wayland connection broke. Did the Wayland compositor die? qt.qpa.wayland: Creating a fake screen in order for Qt not to crash The Wayland connection broke. Did the Wayland compositor die? dbus-daemon[6557]: [session uid=1001 pid=6557] Activated service 'org.freedesktop.impl.portal.desktop.kde' failed: Process org.freedesktop.impl.portal.desktop.kde exited with status 1 ** (/usr/libexec/xdg-desktop-portal:10028): WARNING **: 19:30:16.272: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Process org.freedesktop.impl.portal.desktop.kde exited with status 1 ** (/usr/libexec/xdg-desktop-portal:10028): WARNING **: 19:30:16.272: No skeleton to export dbus-daemon[6557]: [session uid=1001 pid=6557] Activating service name='org.freedesktop.impl.portal.desktop.kde' requested by ':1.5' (uid=1001 pid=10028 comm="/usr/libexec/xdg-desktop-portal") kdeinit5: Communication error with launcher. Exiting! kdeinit5_wrapper: Warning: connect(/run/user/1001/kdeinit5__0) failed: : No such file or directory Error: Can not contact kdeinit5! org.kde.startup: "kdeinit5_shutdown" () exited with code 255 startplasma-wayland: Shutting down... startplasmacompositor: Shutting down... startplasmacompositor: Done. Failed to create wl_display (No such file or directory) ------------------------------ If I try to start a XWayland app, I get the same error as seen in one of the last posts: ------------------------------ ~# /usr/bin/kwin_wayland --xwayland --exit-with-session=konsole No backend specified, automatically choosing X11 because DISPLAY is set kwin_wayland_x11windowed: X server supports SHM extension but not shared pixmaps kwin_xkbcommon: XKB: created compose table from locale en_GB.UTF-8 with path /usr/share/X11/locale/en_US.UTF-8/Compose kwin_core: KGlobalAcceld inited kwin_core: Forcing EGL native interface for Wayland mode kwin_core: Attempting to load the OpenGL scene kwin_scene_opengl: Egl Initialize succeeded kwin_scene_opengl: EGL version: 1 . 5 kwin_scene_opengl: Created EGL context with attributes: Version requested: true Version: 3.1 Robust: true Reset on video memory purge: true Forward compatible: false Core profile: false Compatibility profile: false High priority: true kwin_scene_opengl: Created EGL context with attributes: Version requested: true Version: 3.1 Robust: true Reset on video memory purge: true Forward compatible: false Core profile: false Compatibility profile: false High priority: true OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 OpenGL version string: 3.1.0 NVIDIA 530.41.03 OpenGL shading language version string: 1.40 NVIDIA via Cg compiler Driver: NVIDIA Driver version: 530.41.3 GPU class: Unknown OpenGL version: 3.1 GLSL version: 1.40 Linux kernel version: 6.1.27 Requires strict binding: no GLSL shaders: yes Texture NPOT support: yes Virtual Machine: no kwin_scene_opengl: Creating the OpenGL rendering failed: "query surface failed" kwin_core: The used windowing system requires compositing kwin_core: We are going to quit KWin now as it is broken ------------------------------ (In reply to b2cc from comment #12) This happens with an empty/fresh user directory, completely unconfigured KDE. I'm on Gentoo and the install is from the ebuilds from the KDE overlay: https://anongit.gentoo.org/git/proj/kde.git Ok, since yesterday, after some package+kernel updates, I don't have this specific behavior anymore. But now I have a different issue where KDE kind-of starts, but then shows a black screen with a mouse cursor. If I move the mouse the whole screen flickers and looks like as if mouse-trail was active. wayland-session.log gets spammed with a never ending stream of EDID messages (~200MB after a minute or so) until I kill the session. Is this a known issue in multi-display (I have three displays) setups with Nvidia? Or should I open a new bug for this? I tried to search through the wayland bugs, but there are so many that I couldn't find one that resembles this error. Thanks! New bug report please. Currently, running ---- export QT_LOGGING_RULES="kwin_*.debug=true" XDG_SESSION_TYPE=wayland sudo dbus-run-session startplasma-wayland > ~/startplasma-wayland2.log 2>&1 ---- gives QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QIODevice::read (QFile, "/root/.config/kdedefaults/package"): device not open kf.service.services: The desktop entry file "/usr/share/applications/qemu.desktop" has Type= "Application" but no Exec line kf.service.sycoca: Invalid Service : "/usr/share/applications/qemu.desktop" kf.service.services: The desktop entry file "/usr/share/applications/org.freedesktop.Xwayland.desktop" has Type= "Application" but no Exec line kf.service.sycoca: Invalid Service : "/usr/share/applications/org.freedesktop.Xwayland.desktop" QDBusConnection: error: could not send signal to service "" path "//root/.config/kdedefaults/kdeglobals" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //root/.config/kdedefaults/kdeglobals QDBusConnection: error: could not send signal to service "" path "//root/.config/kdedefaults/kdeglobals" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //root/.config/kdedefaults/kdeglobals QDBusConnection: error: could not send signal to service "" path "//root/.config/kdedefaults/kdeglobals" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //root/.config/kdedefaults/kdeglobals QDBusConnection: error: could not send signal to service "" path "//root/.config/kdedefaults/kcminputrc" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //root/.config/kdedefaults/kcminputrc QDBusConnection: error: could not send signal to service "" path "//root/.config/kdedefaults/kwinrc" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //root/.config/kdedefaults/kwinrc QDBusConnection: error: could not send signal to service "" path "//root/.config/kdedefaults/kwinrc" interface "org.kde.kconfig.notify" member "ConfigChanged": Invalid object path: //root/.config/kdedefaults/kwinrc /usr/bin/xrdb: Can't open display '' dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") QPixmap: QGuiApplication must be created before calling defaultDepth(). QPixmap: QGuiApplication must be created before calling defaultDepth(). dbus-daemon[25678]: [session uid=0 pid=25678] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") dbus-daemon[25678]: [session uid=0 pid=25678] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") dbus-daemon[25678]: [session uid=0 pid=25678] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") dbus-daemon[25678]: [session uid=0 pid=25678] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") dbus-daemon[25678]: [session uid=0 pid=25678] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") dbus-daemon[25678]: [session uid=0 pid=25678] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") dbus-daemon[25678]: [session uid=0 pid=25678] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") dbus-daemon[25678]: [session uid=0 pid=25678] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.kde.KSplash' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") dbus-daemon[25678]: [session uid=0 pid=25678] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=25679 comm="startplasma-wayland") dbus-daemon[25678]: [session uid=0 pid=25678] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' Could not create wayland socket --- I'm still seeing a line in there about being unable to open a display. (In reply to gamer633697 from comment #16) > Currently, running My version is 5.27.5-1 at the moment. Running the plasma session as root is not supported (In reply to Nate Graham from comment #15) > New bug report please. I'm having the same issue as comment #14. Did anyone ever file a new bug report like you asked. Should I file one? I don't know if they did; feel free to do it for your issue. |