Bug 501169

Summary: Plasma desktop may crash when plug/unplug external display
Product: [Plasma] plasmashell Reporter: joey.joey586
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nicolas.fella
Priority: NOR    
Version First Reported In: 6.3.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description joey.joey586 2025-03-07 05:35:42 UTC
SUMMARY
Sometimes, connecting a monitor via HDMI may cause Plasma to crash as it attempts to move the main display from the laptop screen to the external display.

STEPS TO REPRODUCE
Before reproducing, make sure the external monitor is set as the main display and the laptop screen set to turn off automatically when monitor is connected
1. Connect external monitor to laptop (HDMI port, idk if this affects DP)
2. Laptop display will turn off, and screen will appear on external monitor

OBSERVED RESULT
Plasma desktop disappears (background turns black, taskbar, desktop icons, and widgets disappear)
Only kwin remains running
(Same thing happens when going from external monitor back to laptop display)

EXPECTED RESULT
Desktop should switch displays successfully without crashing

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 2 × AMD A9-9420e RADEON R5, 5 COMPUTE CORES 2C+3G
Memory: 7.2 GiB of RAM
Graphics Processor: AMD Radeon R5 Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 3180
System Version: 1.1.0
Monitor: Gigabyte GS27Q

ADDITIONAL INFORMATION
Does not happen every time, may take a few attempts for this to happen
Comment 1 Nicolas Fella 2025-03-07 14:26:14 UTC

*** This bug has been marked as a duplicate of bug 499383 ***