Summary: | Crash when unplugging USB video device | ||
---|---|---|---|
Product: | [Plasma] KScreen | Reporter: | Salvador I. Gonzalez <sgonzalez> |
Component: | kded | Assignee: | Daniel Vrátil <dvratil> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | dvratil |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/libkscreen/e888640086fb6ecac52ca89d9ebd9de273114a40 | Version Fixed In: | 5.3 |
Sentry Crash Report: | |||
Attachments: |
Manual XrandR config - Step 1 Pre Monitor Plugin
Manual XrandR config - Step 2 Post Monitor Plugin / Pre Screen Config Manual XrandR config - Step 3 Post Screen Config Manual XrandR config - Step 4 Post Monitor Unplug Kde GUI Screen Config - Step 1 Pre Monitor Plugin Kde GUI Screen Config - Step 2 Post Monitor Plugin / Pre Screen Config Kde GUI Screen Config - Step 3 Post Screen Config Kde GUI Screen Config - Step 4 Post Monitor Unplug |
Description
Salvador I. Gonzalez
2014-11-15 22:22:09 UTC
We might not be dealing with disappearance of an actual output very well. Could you please provide output of "xrandr --verbose" with the device plugged in and unplugged? Created attachment 91484 [details]
Manual XrandR config - Step 1 Pre Monitor Plugin
Created attachment 91485 [details]
Manual XrandR config - Step 2 Post Monitor Plugin / Pre Screen Config
Created attachment 91486 [details]
Manual XrandR config - Step 3 Post Screen Config
Created attachment 91487 [details]
Manual XrandR config - Step 4 Post Monitor Unplug
Created attachment 91488 [details]
Kde GUI Screen Config - Step 1 Pre Monitor Plugin
Created attachment 91489 [details]
Kde GUI Screen Config - Step 2 Post Monitor Plugin / Pre Screen Config
Created attachment 91490 [details]
Kde GUI Screen Config - Step 3 Post Screen Config
Created attachment 91491 [details]
Kde GUI Screen Config - Step 4 Post Monitor Unplug
I have attached `xrandr --verbose` output for every discreet step in the process of plugging/unplugging the monitor. I tried it both with configuring the second monitor on the CLI with xrandr, and then again with the KDE Utility. Rebooted in between attempts to ensure a clean environment. Both ways cause the crash upon unplugging. In case it helps, here are the commands I run on the CLI to configure the second monitor: xrandr --rmmode "1368x768_60.20" xrandr --newmode "1368x768_60.20" 86.15 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync && xrandr --addmode DVI-1-0 1368x768_60.20 && xrandr --output DVI-1-0 --mode 1368x768_60.20 --left-of LVDS --noprimary Thanks for the update, changing status. Thanks, indeed plugging and unplugging the video device causes a new output to appear/disappear, and we don't handle this in our code correctly (at all), which leads to various crashes. Git commit e888640086fb6ecac52ca89d9ebd9de273114a40 by Dan Vrátil. Committed on 26/03/2015 at 16:29. Pushed by dvratil into branch 'master'. XRandR: correctly handle output disappearing This can happen for example when user unplugs an external GPU. FIXED-IN: 5.3 M +16 -2 backends/xrandr/xrandr.cpp M +2 -5 backends/xrandr/xrandrconfig.cpp M +1 -6 backends/xrandr/xrandrconfig.h M +0 -3 backends/xrandr/xrandroutput.h http://commits.kde.org/libkscreen/e888640086fb6ecac52ca89d9ebd9de273114a40 Git commit 3a0c9330cf8ffe34351cd5c7838fa394212b5af5 by Dan Vrátil. Committed on 26/03/2015 at 16:30. Pushed by dvratil into branch 'master'. KCM: properly handle outputs appearing and disappearing at runtime M +34 -10 kcm/src/controlpanel.cpp M +4 -0 kcm/src/controlpanel.h M +54 -57 kcm/src/declarative/qmlscreen.cpp M +3 -7 kcm/src/declarative/qmlscreen.h M +3 -1 kcm/src/outputconfig.cpp M +6 -0 kcm/src/widget.cpp http://commits.kde.org/kscreen/3a0c9330cf8ffe34351cd5c7838fa394212b5af5 Thank you for your help! |