Bug 359602 - Plasma crashes when I plug in external screen + both screens fade to black
Summary: Plasma crashes when I plug in external screen + both screens fade to black
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.5.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-02-20 16:08 UTC by dorien
Modified: 2018-11-01 17:23 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Working configuration settings (483 bytes, text/plain)
2016-02-22 06:24 UTC, Papoteur
Details
Buggy configuration file (408 bytes, text/plain)
2016-02-22 06:28 UTC, Papoteur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dorien 2016-02-20 16:08:50 UTC
Application: plasmashell (5.5.3)

Qt Version: 5.5.1
Operating System: Linux 4.2.0-27-generic x86_64
Distribution: Ubuntu 15.10

-- Information about the crash:
- What I was doing when the application crashed:
I plugged in my external screen. 
- Unusual behavior I noticed:

This used to work fine. It actually does work fine with another user on the same system. After an update, it started becoming unusable for my main user: each time I plug in my external screen, both go black and plasma crashes (I can see this after I unplugged the thunderbolt and the screen comes back on). I checked the kscreen settings, all seems normal. 




- Custom settings of the application:
All seems normal (when checking kscreen)

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9d36c4d800 (LWP 3756))]

Thread 7 (Thread 0x7f9d2217d700 (LWP 3759)):
#0  0x00007f9d3135788d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9d35425bd2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f9d3542774f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f9d242c67e9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f9d31a4da6e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9d30b396aa in start_thread (arg=0x7f9d2217d700) at pthread_create.c:333
#6  0x00007f9d31362e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f9d1b5ef700 (LWP 3761)):
#0  0x00007fff56cb7c79 in clock_gettime ()
#1  0x00007f9d3137133d in __GI___clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f9d31afe006 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f9d31c82f99 in QTimerInfoList::updateCurrentTime() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f9d31c83505 in QTimerInfoList::timerWait(timespec&) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9d31c848ee in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9d2e0ec77d in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f9d2e0ed11b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f9d2e0ed2fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f9d31c8550b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f9d31c2c50a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f9d31a48ac4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f9d342f6c35 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#13 0x00007f9d31a4da6e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f9d30b396aa in start_thread (arg=0x7f9d1b5ef700) at pthread_create.c:333
#15 0x00007f9d31362e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f9d10411700 (LWP 3762)):
#0  0x00007f9d3135788d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9d2e0ed1ec in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9d2e0ed2fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9d31c8550b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f9d31c2c50a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9d31a48ac4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9d342f6c35 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f9d31a4da6e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f9d30b396aa in start_thread (arg=0x7f9d10411700) at pthread_create.c:333
#9  0x00007f9d31362e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f9d0e572700 (LWP 3763)):
#0  0x00007f9d3135788d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9d2e0ed1ec in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9d2e0ed2fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9d31c8550b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f9d31c2c50a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9d31a48ac4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9d342f6c35 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f9d31a4da6e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f9d30b396aa in start_thread (arg=0x7f9d0e572700) at pthread_create.c:333
#9  0x00007f9d31362e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f9d0cc01700 (LWP 3764)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9d3669f194 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f9d3669f1d9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f9d30b396aa in start_thread (arg=0x7f9d0cc01700) at pthread_create.c:333
#4  0x00007f9d31362e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f9d061ba700 (LWP 3765)):
#0  __GI___tls_get_addr (ti=0x7f9d31e796f8) at dl-tls.c:833
#1  0x00007f9d31a4c9b2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f9d31c84a6a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f9d2e0ec77d in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9d2e0ed11b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9d2e0ed2fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f9d31c8550b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f9d31c2c50a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f9d31a48ac4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f9d34c7f2a6 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#10 0x00007f9d31a4da6e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f9d30b396aa in start_thread (arg=0x7f9d061ba700) at pthread_create.c:333
#12 0x00007f9d31362e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f9d36c4d800 (LWP 3756)):
[KCrash Handler]
#6  0x00007f9d31291267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#7  0x00007f9d31292eca in __GI_abort () at abort.c:89
#8  0x00007f9d31a3b1e1 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f9d31f759b4 in QWindowPrivate::init() () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#10 0x00007f9d3278f99c in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f9d3276160c in QWidgetPrivate::createTLSysExtra() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007f9d32769550 in QWidget::setAttribute(Qt::WidgetAttribute, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f9d3276a8e0 in QWidget::winId() const () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f9c7456f11f in KlipperPopup::KlipperPopup (this=0x3798d90, history=<optimized out>) at ../../klipper/klipperpopup.cpp:82
#15 0x00007f9c7455cb8c in Klipper::Klipper (this=0x38b2340, parent=<optimized out>, config=..., mode=<optimized out>) at ../../klipper/klipper.cpp:116
#16 0x00007f9c7457a61f in ClipboardEngine::ClipboardEngine (this=0x32aa4b0, parent=<optimized out>, args=...) at ../../klipper/clipboardengine.cpp:31
#17 0x00007f9c7457ada8 in KPluginFactory::createInstance<ClipboardEngine, QObject> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/KF5/KCoreAddons/kpluginfactory.h:477
#18 0x00007f9d33462560 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#19 0x00007f9d35196d51 in KPluginFactory::create<Plasma::DataEngine> (args=..., parent=0x0, this=0x2e2a500) at /usr/include/KF5/KCoreAddons/kpluginfactory.h:495
#20 Plasma::PluginLoader::loadDataEngine (this=<optimized out>, name=...) at ../../../src/plasma/pluginloader.cpp:294
#21 0x00007f9d351bf620 in Plasma::DataEngineManager::loadEngine (this=0x7f9d3541b610 <Plasma::(anonymous namespace)::Q_QGS_privateDataEngineManagerSelf::innerFunction()::holder>, name=...) at ../../../src/plasma/private/dataenginemanager.cpp:136
#22 0x00007f9d351bb1a0 in Plasma::DataEngineConsumer::dataEngine (this=this@entry=0x2e5a570, name=...) at ../../../src/plasma/dataengineconsumer.cpp:103
#23 0x00007f9d20083b7f in Plasma::DataSource::setEngine (this=0x2e5a550, e=...) at ../../../../src/declarativeimports/core/datasource.cpp:96
#24 0x00007f9d20098af5 in Plasma::DataSource::qt_static_metacall (_o=_o@entry=0x2e5a550, _c=_c@entry=QMetaObject::WriteProperty, _id=_id@entry=4, _a=_a@entry=0x7fff56c1f020) at moc_datasource.cpp:318
#25 0x00007f9d2009a09b in Plasma::DataSource::qt_metacall (this=0x2e5a550, _c=QMetaObject::WriteProperty, _id=4, _a=0x7fff56c1f020) at moc_datasource.cpp:374
#26 0x00007f9d3425abb4 in QQmlVMEMetaObject::metaCall(QMetaObject::Call, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#27 0x00007f9d342edbc4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#28 0x00007f9d342f16f9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#29 0x00007f9d342f2d58 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#30 0x00007f9d342ef2fa in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#31 0x00007f9d342efc5a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#32 0x00007f9d342f2ac3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#33 0x00007f9d342f2d58 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#34 0x00007f9d342ef2fa in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#35 0x00007f9d342efc5a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#36 0x00007f9d342f115f in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#37 0x00007f9d3427b887 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#38 0x00007f9d3427c174 in QQmlIncubationController::incubateFor(int) () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#39 0x00007f9d34f637bc in ?? () from /usr/lib/x86_64-linux-gnu/libKF5Declarative.so.5
#40 0x00007f9d3427bf89 in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlContextData*) () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#41 0x00007f9d342776ec in QQmlComponent::create(QQmlIncubator&, QQmlContext*, QQmlContext*) () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#42 0x00007f9d34f603b5 in KDeclarative::QmlObject::completeInitialization(QHash<QString, QVariant> const&) () from /usr/lib/x86_64-linux-gnu/libKF5Declarative.so.5
#43 0x00007f9d367c9b0a in PlasmaQuick::AppletQuickItem::init (this=this@entry=0x2e5b4d0) at ../../../src/plasmaquick/appletquickitem.cpp:542
#44 0x00007f9d0e587bec in AppletInterface::init (this=0x2e5b4d0) at ../../../../src/scriptengines/qml/plasmoid/appletinterface.cpp:169
#45 0x00007f9d0e586c29 in AppletInterface::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x11c75c0) at ./moc_appletinterface.cpp:324
#46 0x00007f9d31c5e7b1 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#47 0x00007f9d34d10adb in QQuickItem::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#48 0x00007f9d0e587ea6 in AppletInterface::event (this=0x2e5b4d0, event=0x2e439e0) at ../../../../src/scriptengines/qml/plasmoid/appletinterface.cpp:699
#49 0x00007f9d327339dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#50 0x00007f9d32738ea6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#51 0x00007f9d31c2ed7b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#52 0x00007f9d31c31176 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#53 0x00007f9d31c850e3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#54 0x00007f9d2e0ecff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#55 0x00007f9d2e0ed250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#56 0x00007f9d2e0ed2fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007f9d31c854ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#58 0x00007f9d31c2c50a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#59 0x00007f9d31c345ec in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#60 0x000000000043258a in main (argc=4, argv=<optimized out>) at ../../shell/main.cpp:179

Possible duplicates by query: bug 359571, bug 358869, bug 358762, bug 356148, bug 355943.

Reported using DrKonqi
Comment 1 Papoteur 2016-02-22 06:23:30 UTC
Hello,
I saw the same symptom.
When I plug the second screen, the two screens come black, although all applications are running.
After started with the main screen only, I saw that the file for settings of second screen was wrong. After deleted it, the system works.
I join my files ~/.kde4/share/apps/kscreen/0a24727c50cc715f21df40eed92b1e43
Working system/buggy system.
Comment 2 Papoteur 2016-02-22 06:24:59 UTC
Created attachment 97349 [details]
Working configuration settings
Comment 3 Papoteur 2016-02-22 06:28:12 UTC
Created attachment 97350 [details]
Buggy configuration file

This file was written when I asked to disable the second screen or when I unplugged it after disabled. The problem was discovered at next attempt to use it by plugging it.
Comment 4 Papoteur 2016-02-22 06:30:10 UTC
I add information on my system:
Mageia 5
kscreen-1.0.71-3.mga5
Comment 5 dorien 2016-02-22 09:31:12 UTC
I renamed a kscreen directory (to kscreen_back) in .config somewhere (can't seem to find it anymore) and it's working now, so it does seem to be something to do with configuration.
Comment 6 Andrew Crouthamel 2018-11-01 13:52:47 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Papoteur 2018-11-01 17:17:17 UTC
Hello,
Now I use Mageia 6 and Plasma 5. I have no more encountered this problem, although I have another one.