Bug 322869

Summary: KDE Daemon crashes when monitor feed is disrupted via powersave, screensaver, or monitor is physically powered off.
Product: [Plasma] KScreen Reporter: Brian Smith <mindfilled75>
Component: kdedAssignee: Alex Fiestas <afiestas>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dvratil
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Brian Smith 2013-07-27 02:57:29 UTC
This seems to be a problem with Ubuntu 13.04 based systems. I first saw it with Kubuntu 13.04, and it is also affecting Linux Mint 15 KDE. I use a 23" HDTV (HDMI) as my monitor, powered by an NVidia GeForce GT 440 card. The powersave and Screensaver are disabled, and I manually turn off the TV when I walk away from the PC. When I turn the TV back on, there is KDE Daemon crash handler window on my screen...but I cannot use it, because KDED no longer works. The icons on the panel, next to the clock, also look odd. I've got a couple of screenshots, but don't see an option to add them here. Anyway, the message for the crash is this:

Executable: kdeinit4 PID: 2567 Signal: Segmentation fault (11)

The PID changes, but the rest is always the same. After that, Everything looks great...except for the icons by the clock.

Reproducible: Always

Steps to Reproduce:
1. Power on the PC
2. Turn off the monitor
3. Observe the result
Actual Results:  
This was covered in the Details box.

Expected Results:  
KDE detects that a new monitor has been found, and asks if I would like to use it as the default.

Here's the backtrace:

Application: KDE Daemon (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f02611757c0 (LWP 1814))]

Thread 5 (Thread 0x7f0237a86700 (LWP 2000)):
#0 0x00007f025c203fd3 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007f025bb6c5c1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f025bb2d190 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f025bb2d6ba in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007f0237d764f6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#5 0x00007f025bb50eb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6 0x00007f024f4cf764 in ?? () from /usr/lib/nvidia-304/libGL.so.1
#7 0x00007f025c201f8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00007f025e9f1e1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7f0237079700 (LWP 2001)):
#0 0x00007fffc594baf7 in ?? ()
#1 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0236878700 (LWP 2002)):
#0 0x00007f025bb2a49d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007f025bb2c89f in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f025bb2d0fe in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f025bb2d304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007f025fe17036 in QEventDispatcherGlib::processEvents (this=0x7f02240008f0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5 0x00007f025fde738f in QEventLoop::processEvents (this=this@entry=0x7f0236877d00, flags=...) at kernel/qeventloop.cpp:149
#6 0x00007f025fde7618 in QEventLoop::exec (this=this@entry=0x7f0236877d00, flags=...) at kernel/qeventloop.cpp:204
#7 0x00007f025fce9410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8 0x00007f025fcebbec in QThreadPrivate::start (arg=0x1056800) at thread/qthread_unix.cpp:338
#9 0x00007f024f4cf764 in ?? () from /usr/lib/nvidia-304/libGL.so.1
#10 0x00007f025c201f8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007f025e9f1e1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7f0236077700 (LWP 2003)):
#0 0x00007f025e9e53cd in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f025bb2d1dc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f025bb2d304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f025fe17036 in QEventDispatcherGlib::processEvents (this=0x7f02200008f0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4 0x00007f025fde738f in QEventLoop::processEvents (this=this@entry=0x7f0236076cd0, flags=...) at kernel/qeventloop.cpp:149
#5 0x00007f025fde7618 in QEventLoop::exec (this=this@entry=0x7f0236076cd0, flags=...) at kernel/qeventloop.cpp:204
#6 0x00007f025fce9410 in QThread::exec (this=this@entry=0xfe1de0) at thread/qthread.cpp:542
#7 0x00007f025fdc8edf in QInotifyFileSystemWatcherEngine::run (this=0xfe1de0) at io/qfilesystemwatcher_inotify.cpp:256
#8 0x00007f025fcebbec in QThreadPrivate::start (arg=0xfe1de0) at thread/qthread_unix.cpp:338
#9 0x00007f024f4cf764 in ?? () from /usr/lib/nvidia-304/libGL.so.1
#10 0x00007f025c201f8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007f025e9f1e1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f02611757c0 (LWP 1814)):
[KCrash Handler]
#5 KScreen::Output::id (this=this@entry=0x0) at /build/buildd/libkscreen-0.0.92/src/output.cpp:104
#6 0x00007f0243b67afc in Generator::extendToRight (this=this@entry=0x104e450, outputs=...) at /build/buildd/kscreen-0.0.92/kded/generator.cpp:322
#7 0x00007f0243b69c74 in Generator::idealConfig (this=0x104e450) at /build/buildd/kscreen-0.0.92/kded/generator.cpp:83
#8 0x00007f0243b623f6 in KScreenDaemon::applyIdealConfig (this=this@entry=0x1048210) at /build/buildd/kscreen-0.0.92/kded/daemon.cpp:109
#9 0x00007f0243b6267d in KScreenDaemon::applyConfig (this=0x1048210) at /build/buildd/kscreen-0.0.92/kded/daemon.cpp:89
#10 0x00007f025fdfd0ef in QMetaObject::activate (sender=sender@entry=0x102bcd0, m=m@entry=0x7f0243b58b60 <KScreen::Output::staticMetaObject>, local_signal_index=local_signal_index@entry=4, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#11 0x00007f0243952063 in KScreen::Output::isConnectedChanged (this=this@entry=0x102bcd0) at /build/buildd/libkscreen-0.0.92/obj-x86_64-linux-gnu/src/output.moc:272
#12 0x00007f0243952083 in KScreen::Output::setConnected (this=this@entry=0x102bcd0, connected=<optimized out>) at /build/buildd/libkscreen-0.0.92/src/output.cpp:308
#13 0x00007f024351fb9a in XRandROutput::updateKScreenOutput (this=this@entry=0x1049020, output=0x102bcd0) at /build/buildd/libkscreen-0.0.92/backends/xrandr/xrandroutput.cpp:367
#14 0x00007f024351a629 in XRandRConfig::updateKScreenConfig (this=0x102ea90, config=0x104f8f0) at /build/buildd/libkscreen-0.0.92/backends/xrandr/xrandrconfig.cpp:107
#15 0x00007f024395138c in KScreen::ConfigMonitor::Private::updateConfigs (this=0x10530c0) at /build/buildd/libkscreen-0.0.92/src/configmonitor.cpp:46
#16 0x00007f02439513dd in KScreen::ConfigMonitor::notifyUpdate (this=0x1053010) at /build/buildd/libkscreen-0.0.92/src/configmonitor.cpp:89
#17 0x00007f0243518102 in XRandR::updateOutput (this=<optimized out>, output=638) at /build/buildd/libkscreen-0.0.92/backends/xrandr/xrandr.cpp:116
#18 0x00007f025fdfd0ef in QMetaObject::activate (sender=sender@entry=0x1047d40, m=m@entry=0x7f0243723980 <XRandRX11Helper::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fffc587ff80) at kernel/qobject.cpp:3539
#19 0x00007f0243519112 in XRandRX11Helper::outputChanged (this=this@entry=0x1047d40, _t1=638) at /build/buildd/libkscreen-0.0.92/obj-x86_64-linux-gnu/backends/xrandr/xrandrx11helper.moc:120
#20 0x00007f0243519695 in XRandRX11Helper::x11Event (this=0x1047d40, event=0x7fffc58800d0) at /build/buildd/libkscreen-0.0.92/backends/xrandr/xrandrx11helper.cpp:140
#21 0x00007f0260b9002d in ?? () from /usr/lib/libkdeui.so.5
#22 0x00007f025fddb11e in QAbstractEventDispatcher::filterEvent (this=0x0, message=0x0, message@entry=0x7fffc58800d0) at kernel/qabstracteventdispatcher.cpp:539
#23 0x00007f025f234028 in x11EventSourceDispatch (s=0xd33e00, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:143
#24 0x00007f025bb2cf05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f025bb2d248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f025bb2d304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f025fe17016 in QEventDispatcherGlib::processEvents (this=0xc3d670, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#28 0x00007f025f2341ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007f025fde738f in QEventLoop::processEvents (this=this@entry=0x7fffc58804a0, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007f025fde7618 in QEventLoop::exec (this=this@entry=0x7fffc58804a0, flags=...) at kernel/qeventloop.cpp:204
#31 0x00007f025fdeccf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#32 0x00007f024a2b6050 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kded4.so
#33 0x00000000004084ea in _start ()
Comment 1 Daniel Vrátil 2013-07-27 11:53:40 UTC

*** This bug has been marked as a duplicate of bug 318936 ***