Bug 347072

Summary: Switching outputs with "xrandr" causes plasmashell to crash
Product: [Plasma] plasmashell Reporter: Stefan Becker <chemobejk>
Component: generic-multiscreenAssignee: Aleix Pol <aleixpol>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde, plasma-bugs
Priority: NOR    
Version: 5.3.0   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: crash information provided by KDE crash handler

Description Stefan Becker 2015-05-02 15:56:56 UTC
On my work laptop I use 4 different display setups:

* laptop only
* laptop with beamer (HDMI)
* office: 2x external monitors (DVI-D, docking station)
* home: 2x external monitors (DP, docking station)

As it is too cumbersome to switch screens with Kscreen2 (no support for pre-defined setups), I use small scripts that run "xrandr", assigned to input actions. They work nicely under KDE4.

While the output switching works, every time a switch is executed, plasmashell crashes reliably

Reproducible: Always

Steps to Reproduce:
1. Execute script to switch from "Laptop" to "Home"
        xrandr --output VGA-0 --off --output HDMI-0 --off --output DP-0 --off --output DP-1 --off --output DP-2 --off
        xrandr --output LVDS-0 --off --output DP-3 --auto --primary
        xrandr --output DP-2 --auto --right-of DP-3
        xrandr --output VGA-0 --off --output HDMI-0 --off --output DP-0 --off --output DP-1 --off --output LVDS-0 --off

2. Execute script to switch from "Home" to "Laptop"
       xrandr --output VGA-0 --off --output HDMI-0 --off --output DP-0 --off --output DP-1 --off --output DP-2 --off                                                                                   
        xrandr --output DP-3 --off --output LVDS-0 --auto --primary                                 
        xrandr --output VGA-0 --off --output HDMI-0 --off --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off                                                               

Actual Results:  
Outputs are switched, then the KDE crash handler opens, e.g. with

  Executable: plasmashell PID: 3887 Signal: Aborted (6)

Expected Results:  
plasmashell should not crash

On this system I have to use Nvidia BLOB driver, because that is the only one that can drive the DP ports on the docking station reliably. I'm currently using version 349.59.

Kwin5 compositor doesn't work reliably with OpenGL on this system, so I'm using XRender.
Comment 1 Stefan Becker 2015-05-02 15:57:47 UTC
Created attachment 92372 [details]
crash information provided by KDE crash handler
Comment 2 David Edmundson 2015-05-02 18:37:28 UTC

*** This bug has been marked as a duplicate of bug 345544 ***
Comment 3 David Edmundson 2015-05-02 18:37:46 UTC
Thanks will be fixed in the next Qt release.