https://bugs.kde.org/show_bug.cgi?id=460188
Bug ID: 460188 Summary: Switching out displays via xrandr crashes plasmashell Classification: Plasma Product: plasmashell Version: master Platform: Archlinux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Multi-screen support Assignee: plasma-b...@kde.org Reporter: mira...@mirandastreeter.com CC: aleix...@kde.org, notm...@gmail.com Target Milestone: 1.0 Created attachment 152680 --> https://bugs.kde.org/attachment.cgi?id=152680&action=edit Stack trace for plasmashell SUMMARY When attempting to switch out displays via xrandr (as in, disabling what's enabled and enabling what's disabled), plasmashell hits a plasma-workspace assertion error and causes a crash+coredump STEPS TO REPRODUCE 1. Have more than one display 2. Have at least one display disabled 3. Switch out the displays via xrandr. For example: ``` xrandr --output DP-2 --off xrandr --output HDMI-1 --mode 3840x2160 --rate 120.00 ``` OBSERVED RESULT Plasmashell crashes EXPECTED RESULT Plasmashell does not crash SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.26.80 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 ADDITIONAL INFORMATION Kernel Version: 5.19.13-arch1-1 (64-bit) Graphics Platform: X11 Mesa Version: 22.1.7 Attached is the relevant stacktrace, as it's rather long, but here's the initial assertion error: ``` Oct 09 19:50:06 melchior kscreen_backend_launcher[1145]: kscreen.xrandr: Emitting configChanged() Oct 09 19:50:06 melchior plasmashell[4108]: Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion Oct 09 19:50:06 melchior plasmashell[4108]: kf.service.services: The desktop entry file "" has Type= "Application" but no Exec line Oct 09 19:50:06 melchior plasmashell[4108]: ASSERT: "view->containment()->screen() == id || view->containment()->screen() == -1" in file /home/<username>/.cache/yay/plasma-workspace-git/src/plasma-workspace/shell/shellcorona.cpp, line 800 Oct 09 19:50:06 melchior plasmashell[4108]: 25 -- exe=/usr/bin/plasmashell Oct 09 19:50:06 melchior plasmashell[4108]: 13 -- platform=xcb Oct 09 19:50:06 melchior plasmashell[4108]: 11 -- display=:0 Oct 09 19:50:06 melchior plasmashell[4108]: 20 -- appname=plasmashell Oct 09 19:50:06 melchior plasmashell[4108]: 17 -- apppath=/usr/bin Oct 09 19:50:06 melchior plasmashell[4108]: 9 -- signal=6 Oct 09 19:50:06 melchior plasmashell[4108]: 9 -- pid=4108 Oct 09 19:50:06 melchior plasmashell[4108]: 19 -- appversion=5.26.80 Oct 09 19:50:06 melchior plasmashell[4108]: 19 -- programname=Plasma Oct 09 19:50:06 melchior plasmashell[4108]: 31 -- bugaddress=sub...@bugs.kde.org Oct 09 19:50:06 melchior plasmashell[4108]: 12 -- startupid=0 Oct 09 19:50:06 melchior plasmashell[4108]: KCrash: crashing... crashRecursionCounter = 2 Oct 09 19:50:06 melchior plasmashell[4108]: KCrash: Application Name = plasmashell path = /usr/bin pid = 4108 Oct 09 19:50:06 melchior plasmashell[4108]: KCrash: Arguments: /usr/bin/plasmashell --no-respawn Oct 09 19:50:06 melchior plasmashell[4108]: KCrash: Attempting to start /usr/lib/drkonqi Oct 09 19:50:06 melchior kwin_x11[913]: kwin_core: Failed to focus 0x4000b0 (error 3) Oct 09 19:50:06 melchior kwin_x11[913]: kwin_core: Failed to focus 0x4000b0 (error 3) Oct 09 19:50:06 melchior kwin_x11[913]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 14317, resource id: 4194333, major code: 15 (QueryTree), minor code: 0 Oct 09 19:50:06 melchior kwin_x11[913]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 14338, resource id: 4194480, major code: 15 (QueryTree), minor code: 0 Oct 09 19:50:06 melchior kwin_x11[913]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 14346, resource id: 4194423, major code: 15 (QueryTree), minor code: 0 Oct 09 19:50:06 melchior kwin_x11[913]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 14353, resource id: 4194365, major code: 15 (QueryTree), minor code: 0 Oct 09 19:50:06 melchior kded5[912]: Service "org.kde.StatusNotifierHost-4108" unregistered Oct 09 19:50:06 melchior kded5[912]: org.kde.plasma.dataengine.geolocation: gpsd not found Oct 09 19:50:06 melchior kded5[912]: "location" Oct 09 19:50:07 melchior plasmashell[4108]: Unable to start Dr. Konqi Oct 09 19:50:07 melchior plasmashell[4108]: Re-raising signal for core dump handling. ``` -- You are receiving this mail because: You are watching all bug changes.