Bug 326120

Summary: KScreen crashes when monitor cable is disconnected
Product: [Plasma] KScreen Reporter: Alfeno Rodrigues <alfeno>
Component: libkscreenAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED FIXED    
Severity: crash CC: alfeno, dvratil
Priority: NOR    
Version: 1.0.1   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.2.2
Sentry Crash Report:
Attachments: Debug report file

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