Bug 326120 - KScreen crashes when monitor cable is disconnected
Summary: KScreen crashes when monitor cable is disconnected
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: libkscreen (show other bugs)
Version: 1.0.1
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-17 00:31 UTC by Alfeno Rodrigues
Modified: 2015-03-06 15:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.2.2


Attachments
Debug report file (11.00 KB, text/plain)
2013-10-17 00:34 UTC, Alfeno Rodrigues
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alfeno Rodrigues 2013-10-17 00:31:04 UTC
Kscreen crashes when you disconnect the video cable monitor.

Reproducible: Always

Steps to Reproduce:
1. Configure the KScreen to extend the workspace (two monitor) 
2. Disconnect the secondary video cable monitor
3. Wait few seconds.
Actual Results:  
Kde will show the KDE bug report and workspace freeze in some times.

Expected Results:  
Disable the secondary monitor and reconfigure automatically the workspace to use a single monitor

My video driver is from nvidia corporation.
Comment 1 Alfeno Rodrigues 2013-10-17 00:34:26 UTC
Created attachment 82894 [details]
Debug report file

automatically generated by debug
Comment 2 Daniel Vrátil 2015-03-06 15:17:42 UTC
Git commit 9a4f36f6973d6f9d712b6b3b1ff30f868d9910b9 by Dan Vrátil.
Committed on 06/03/2015 at 13:30.
Pushed by dvratil into branch 'Plasma/5.2'.

KDED: Make Generator maximally fool-proof

This change adds lots of checks (and asserts for devs) on validity of
the configs, outputs and modes and makes sure that we never try to
dereference a null pointer from outputs or modes.

Also renames some variables to make the code cleaner and easier to
understand.
Related: bug 326499, bug 327075, bug 33716
FIXED-IN: 5.2.2

M  +183  -84   kded/generator.cpp
M  +9    -7    kded/generator.h

http://commits.kde.org/kscreen/9a4f36f6973d6f9d712b6b3b1ff30f868d9910b9