| Summary: | Login over VNC tries to launch Plasma-kwin_x11.service when it's already running, which doesn't work | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Piotr Dobrogost <bugs.kde.org> |
| Component: | Session Management | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | major | CC: | kdedev, natalie_clarius, nate |
| Priority: | NOR | Keywords: | X11-only |
| Version First Reported In: | 6.3.5 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| URL: | https://discuss.kde.org/t/kwin-x11-does-not-start-after-upgrading-from-kwin-x11-0-6-3-4-to-kwin-x11-0-6-3-5/34196?u=piotr_dobrogost | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Piotr Dobrogost
2025-05-13 10:10:54 UTC
I enabled debug output from kwin with systemd drop-in file:
```
$ cat /home/piotr/.config/systemd/user/plasma-kwin_x11.service.d/override.conf
[Service]
Environment="QT_LOGGING_RULES=kwin_*.debug=true"
```
However after doing this I don't see any information that might help diagnose the problem in the output of `journalctl --user` (below).
No warnings nor errors and then timeout:
`maj 13 14:38:47 demon systemd[1315]: plasma-kwin_x11.service: start operation timed out. Terminating.`
```
maj 13 14:38:02 demon systemd[1315]: Starting plasma-kwin_x11.service - KDE Window Manager...
maj 13 14:38:02 demon kwin_x11[619433]: kwin_platform_x11_standalone: Has XInput support 2 . 2
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Extensions: shape: 0x "11" composite: 0x "4" render: 0x "b" fixes: 0x "50" randr: 0x "14" sync: 0x "31" damage: 0x "11"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_xkbcommon: XKB: created compose table from locale en_DK.UTF-8 with path /usr/share/X11/locale/en_US.UTF-8/Compose
maj 13 14:38:02 demon kwin_x11[619433]: kwin_decorations: Trying to load decoration plugin: "/usr/lib64/qt6/plugins/org.kde.kdecoration3/org.kde.breeze.so"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Attempting to load the OpenGL scene
maj 13 14:38:02 demon kwin_x11[619433]: kwin_platform_x11_standalone: Choosing GLXFBConfig 0xef X visual 0x2fe depth 24 RGBA 8:8:8:0 ZS 0:0 sRGB: 1
maj 13 14:38:02 demon kwin_x11[619433]: kwin_platform_x11_standalone: Global share context format: QSurfaceFormat(version 4.6, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 0, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 0, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QColorSpace(), profile QSurfaceFormat::CompatibilityProfile)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_platform_x11_standalone: Created GLX context with attributes:
Version requested: true
Version: 3.1
Robust: false
Reset on video memory purge: false
Forward compatible: false
Core profile: false
Compatibility profile: false
High priority: false
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 32 VGPRS: 16 Code Size: 224 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 1 PSOutputs: 0 InlineUniforms: 0 DivergentLoop: 0 (VS, W32)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 48 VGPRS: 12 Code Size: 3100 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 4 DivergentLoop: 0 (PS, W64)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: OpenGL compositing has been successfully initialized
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "blendchanges"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 32 VGPRS: 16 Code Size: 208 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 1 PSOutputs: 0 InlineUniforms: 0 DivergentLoop: 0 (VS, W32)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 32 VGPRS: 16 Code Size: 208 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 1 PSOutputs: 0 InlineUniforms: 0 DivergentLoop: 0 (VS, W32)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 24 VGPRS: 20 Code Size: 316 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 0 DivergentLoop: 0 (PS, W64)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 24 VGPRS: 32 Code Size: 452 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 0 DivergentLoop: 0 (PS, W64)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 32 VGPRS: 16 Code Size: 188 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 0 InlineUniforms: 0 DivergentLoop: 0 (VS, W32)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "blur"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "colorpicker"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 24 VGPRS: 16 Code Size: 168 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 0 DivergentLoop: 0 (PS, W32)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 32 VGPRS: 16 Code Size: 276 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 1 PSOutputs: 0 InlineUniforms: 0 DivergentLoop: 0 (VS, W32)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 32 VGPRS: 20 Code Size: 452 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 1 DivergentLoop: 0 (PS, W64)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "contrast"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "highlightwindow"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "kscreen"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "outputlocator"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "overview"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "screenedge"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "screenshot"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Effect is not supported: "screentransform"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Effect is not supported: "shakecursor"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "slide"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "slidingpopups"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "startupfeedback"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "systembell"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "tileseditor"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "windowview"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded plugin effect: "zoom"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_platform_x11_standalone: Using FBConfig 0x28e for visual 0x39c
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 32 VGPRS: 16 Code Size: 224 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 1 PSOutputs: 0 InlineUniforms: 0 DivergentLoop: 0 (VS, W32)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 32 VGPRS: 8 Code Size: 288 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 1 DivergentLoop: 0 (PS, W64)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 8 VGPRS: 8 Code Size: 52 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 0 DivergentLoop: 0 (PS, W32)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 16 VGPRS: 16 Code Size: 132 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 0 InlineUniforms: 0 DivergentLoop: 0 (VS, W32)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 16 VGPRS: 4 Code Size: 96 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 1 DivergentLoop: 0 (PS, W64)
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded scripted effect: "dialogparent"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded scripted effect: "fadingpopups"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded scripted effect: "frozenapp"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded scripted effect: "fullscreen"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded scripted effect: "login"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded scripted effect: "logout"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded scripted effect: "sessionquit"
maj 13 14:38:02 demon kwin_x11[619433]: kwin_core: Successfully loaded scripted effect: "windowaperture"
maj 13 14:38:33 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 32 VGPRS: 16 Code Size: 224 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 1 PSOutputs: 0 InlineUniforms: 0 DivergentLoop: 0 (VS, W32)
maj 13 14:38:33 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 40 VGPRS: 8 Code Size: 308 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 1 DivergentLoop: 0 (PS, W64)
maj 13 14:38:33 demon kwin_x11[619433]: kwin_scene_opengl: 0x1: Shader Stats: SGPRS: 16 VGPRS: 4 Code Size: 144 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 VSOutputs: 0 PSOutputs: 1 InlineUniforms: 1 DivergentLoop: 0 (PS, W64)
maj 13 14:38:47 demon systemd[1315]: plasma-kwin_x11.service: start operation timed out. Terminating.
maj 13 14:38:47 demon kwin_x11[619433]: kwin_scene_opengl: Could not delete framebuffer because no context is current
maj 13 14:38:47 demon systemd[1315]: plasma-kwin_x11.service: Main process exited, code=exited, status=15/n/a
maj 13 14:38:47 demon systemd[1315]: plasma-kwin_x11.service: Failed with result 'timeout'.
maj 13 14:38:47 demon systemd[1315]: Failed to start plasma-kwin_x11.service - KDE Window Manager.
maj 13 14:38:47 demon systemd[1315]: plasma-kwin_x11.service: Consumed 362ms CPU time, 85.8M memory peak.
maj 13 14:38:47 demon systemd[1315]: plasma-kwin_x11.service: Scheduled restart job, restart counter is at 1.
```
Since it's crashing, can you get a backtrace of the crash? We need one in order for this to be actionable. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl (In reply to Nate Graham from comment #2) > Since it's crashing, can you get a backtrace of the crash? We need one in > order for this to be actionable. See > https://community.kde.org/Guidelines_and_HOWTOs/Debugging/ > How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl It crashed eventually but first it had failed to start 7 times in a row. I guess the final crash was due to some kind of accumulation of… something? I'm afraid that fixing crash alone won't solve the problem as it will just keep timing out each time it's started. It would be much better to investigate why it's unable to start when it does not crash. If it's waiting for something I hoped it would have been in the debug log but I don't see anything like this. Can some more debug logging be added if kwin_x11 process does indeed wait for something? Can you point me to changes in kwin_x11 between 6.3.4 and 6.3.5? It turns out there was autologin enabled on remote machine so there was already active plasma (wayland) session when starting plasma-kwin_x11 service. After first logging out from active session with `dbus-send --dest=org.kde.Shutdown /Shutdown org.kde.Shutdown.logout` and then starting `vncserver@:1.service` the plasma-kwin_x11 service successfully started. Can this situation be detected and logged so that it would be obvious what's going on? |