Bug 482332

Summary: Plasma desktop and window decorations disappears if display is turned off and then back on again while Valve Index VR headset is plugged in
Product: [Plasma] plasmashell Reporter: Ciaran Gillespie <ciaran.gillespie>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: dapope1979, kdedev, nate, nicolas.fella, xaver.hugl
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: GDB Backtrace
Backtrace from journalctl

Description Ciaran Gillespie 2024-03-03 18:02:56 UTC
SUMMARY
With the Valve Index VR headset plugged into one display port and my primary monitor plugged into an HDMI port I run into an issue if my primary display is turned off and then on again. This only occurs while the Valve Index VR headset it plugged into the display port. This happens if the display is manually turned off and then on, or if the monitor is turned off because of power saving. Once the monitor is turned back on all the application windows that were visible and running are still there how ever the window decorations and desktop are gone. Restarting the display-manager service does return me to the log in screen but logging in end up with a still broken plasma desktop with no desktop background, window decoration or panels.


STEPS TO REPRODUCE
1.  Have a display plugged into an HDMI port and Valve Index plugged into a display port
2. Turn off the primary display by pressing the power button, or having the power manager turn the display off
3. Turn the primary display back on by either pressing the power button, or waking up the system

OBSERVED RESULT
Desktop is completely black and all window decorations and panels are missing 

EXPECTED RESULT
Desktop continues to work when display is turned back on

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 6.0 / Plasma 6.0
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
AMD Ryzen 7 5700X
AMD Radeon RX6700 XT
Comment 1 Nathan Pope 2024-03-21 23:46:57 UTC
Created attachment 167582 [details]
GDB Backtrace
Comment 2 Nathan Pope 2024-03-21 23:47:29 UTC
Created attachment 167583 [details]
Backtrace from journalctl
Comment 3 Nathan Pope 2024-03-21 23:54:08 UTC
I'm experiencing this with the exact same repro steps, so I thought I take a stab at adding some backtrace info.

The shell comes back if I run `systemctl --user restart plasma-plasmashell.service` after the crash.

System info:
OS: EndeavourOS Linux x86_64 
Kernel: 6.8.1-arch1-1 
Uptime: 27 mins 
Packages: 1299 (pacman), 10 (flatpak) 
Shell: bash 5.2.26 
Resolution: 3840x1080 
DE: Plasma 6.0.2 
WM: kwin 
Theme: Breeze-Dark [GTK2], Breeze [GTK3] 
Icons: breeze [GTK2/3] 
Terminal: konsole 
CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz 
GPU: AMD ATI Radeon RX 7900 XT/7900 XTX/7900M 
Memory: 3528MiB / 32000MiB
Comment 4 Ciaran Gillespie 2024-07-08 13:58:24 UTC
With KDE Plasma 6.1.2 there are some changes to the behavior of this bug. We still end up with a disappearing plasma desktop if the main display is turned off while a Valve Index is plugged into the other display port on the graphics card, however we can recover the desktop very easily in this state by disconnecting the valve index and then turning off and on the main display again. I guess that when the main display is being turned off KDE is checking to see what monitors are available to put the desktop onto and for some reason sees the valve index plugged in as a valid monitor to put the desktop on?
Comment 5 TraceyC 2025-04-10 23:47:43 UTC
I'm not able to reproduce this with Plasma 6.3.4. Is this still happening for anyone on that version?
Comment 6 Bug Janitor Service 2025-04-25 03:47:19 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2025-05-10 03:46:59 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.