Bug 472049 - Plasmashell sometimes crashes when a monitor is attached, including when resuming from sleep
Summary: Plasmashell sometimes crashes when a monitor is attached, including when resu...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-multiscreen (other bugs)
Version First Reported In: 5.27.6
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-07 13:41 UTC by Isa
Modified: 2023-08-18 18:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Backtrace generated using gdb (never used it before - please let me know if more info is required and I'll do my best to provide). (9.49 KB, text/plain)
2023-07-07 13:41 UTC, Isa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Isa 2023-07-07 13:41:31 UTC
Created attachment 160124 [details]
Backtrace generated using gdb (never used it before - please let me know if more info is required and I'll do my best to provide).

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Attach a new monitor to a device with a built-in monitor; OR, wake up the device from suspend state that has a second monitor connected
2. Sometimes plasmashell dies (see next section)

OBSERVED RESULT
Plasmashell is "dead", the only thing that's visible is a black screen with a cursor, which can be moved between 2 screens. Alt-tabbing between applications or using other keyboard shortcuts doesn't work. If Bluetooth headphones are paired, they'll make a sound as if they connected to the device successfully. Any open applications will stay open and "alive", but in this state they cannot be interacted with.
If this happens during waking up from sleep, then the login screen will be visible for a short moment before going black as described above. That only happens with Plasma login screen, and not when logging into from SDDM.
This bug is not observed every time and I don't know what exactly to do to faultlessly reproduce it. It just happens sometimes.

EXPECTED RESULT
The second monitor connects as usual, or the device wakes up as usual. KDE works normally.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux , kernel 6.4.1-arch1-1 (64-bit)
(available in About System)
KDE Plasma Version: 5.27.6 
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Graphics platform: X11
I went Wayland for a couple days and this bug haven't happened once then, but it was only a couple days, so I'm not sure if Wayland fixed it or I was just lucky.. On the other hand, on X11 it usually happens at least once a day, so...
Graphics drivers: AMDGPU (open-source)
Refresh rate of both built-in and secondary monitors is 60 Hz. They are connected via a HDMI-HDMI cable.
Another note: sometimes Spectacle crashes too. I mention it here because the conditions for it crashing are identical, but I can't create a separate bug report yet because I haven't had time to properly gather information for that.
Comment 1 Isa 2023-07-11 16:41:52 UTC
I edited the title to remove the mention of X11 because this issue happened to me on Wayland today. After connecting the HDMI cable to my laptop (which was idling on the login screen), I got the "the screen locker is broken and unlocking it is not possible anymore" message on both the built-in screen and the external monitor. I will try to extract a proper backtrace, but GDB is quite the head scratcher for me.
Comment 2 Fushan Wen 2023-08-18 18:14:45 UTC
Looks like a packaging issue