Error: Plasma closed unexpectedly!

I receive this error more and more recently, and my plasma gets closed.
I dunno why and how to replicate this error.

http://i68.tinypic.com/4i1sg0.jpg

and the crash info is:


 Application: Plasma (plasmashell), signal: Segmentation fault
 Using host libthread_db library "/lib64/libthread_db.so.1".
 [Current thread is 1 (Thread 0x7f3205f5d800 (LWP 4906))]
 

 Thread 14 (Thread 0x7f31d95c9700 (LWP 4920)):
 #0  0x00007f31fbb82861 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
 #1  0x00007f31fbb82df8 in ?? () from /usr/lib64/libglib-2.0.so.0
 #2  0x00007f31fbb82f7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
 #3  0x00007f31ffdcad8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #4  0x00007f31ffd71d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31ffb9361a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
 #6  0x00007f3202e7edf8 in ?? () from /usr/lib64/libQt5Qml.so.5
 #7  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #8  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #9  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 13 (Thread 0x7f31d3bd8700 (LWP 4921)):
 #0  0x00007f31fecae05f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
 #1  0x00007f320563386b in ?? () from /usr/lib64/libQt5Script.so.5
 #2  0x00007f3205633899 in ?? () from /usr/lib64/libQt5Script.so.5
 #3  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #4  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 12 (Thread 0x7f314bfff700 (LWP 4926)):
 #0  0x00007f31fecae05f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
 #1  0x00007f31ffb9934b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
 #2  0x00007f3203a8625b in ?? () from /usr/lib64/libQt5Quick.so.5
 #3  0x00007f3203a866f3 in ?? () from /usr/lib64/libQt5Quick.so.5
 #4  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #6  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 11 (Thread 0x7f314a7fd700 (LWP 4927)):
 #0  0x00007f31fbbc4cf9 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
 #1  0x00007f31fbb824b9 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
 #2  0x00007f31fbb82d80 in ?? () from /usr/lib64/libglib-2.0.so.0
 #3  0x00007f31fbb82f7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
 #4  0x00007f31ffdcad8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31ffd71d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #6  0x00007f31ffb9361a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
 #7  0x00007f3203a13282 in ?? () from /usr/lib64/libQt5Quick.so.5
 #8  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #9  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #10 0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 10 (Thread 0x7f314971e700 (LWP 4932)):
 #0  0x00007f31fbbc4cf9 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
 #1  0x00007f31fbb828fc in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
 #2  0x00007f31fbb82df8 in ?? () from /usr/lib64/libglib-2.0.so.0
 #3  0x00007f31fbb82f7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
 #4  0x00007f31ffdcad8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31ffd71d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #6  0x00007f31ffb9361a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
 #7  0x00007f313b9c2c85 in ?? () from /usr/lib64/qt5/qml/QtQuick/XmlListModel/libqmlxmllistmodelplugin.so
 #8  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #9  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #10 0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 9 (Thread 0x7f313b3c1700 (LWP 4933)):
 #0  0x00007f31ff4a0c1d in poll () from /lib64/libc.so.6
 #1  0x00007f31fbb82e64 in ?? () from /usr/lib64/libglib-2.0.so.0
 #2  0x00007f31fbb82f7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
 #3  0x00007f31ffdcad8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #4  0x00007f31ffd71d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31ffb9361a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
 #6  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #7  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #8  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 8 (Thread 0x7f3131f3f700 (LWP 4934)):
 #0  0x00007f31ff4b5682 in __libc_disable_asynccancel () from /lib64/libc.so.6
 #1  0x00007f31ff49ccf9 in read () from /lib64/libc.so.6
 #2  0x00007f31f765af75 in ?? () from /usr/lib64/tls/libnvidia-tls.so.352.55
 #3  0x00007f31fbbc3b60 in ?? () from /usr/lib64/libglib-2.0.so.0
 #4  0x00007f31fbb82999 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
 #5  0x00007f31fbb82df8 in ?? () from /usr/lib64/libglib-2.0.so.0
 #6  0x00007f31fbb82f7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
 #7  0x00007f31ffdcad8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #8  0x00007f31ffd71d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #9  0x00007f31ffb9361a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
 #10 0x00007f313358ccf7 in KCupsConnection::run() () from /usr/lib64/libkcupslib.so
 #11 0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #12 0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #13 0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 7 (Thread 0x7f3130fac700 (LWP 4941)):
 #0  0x00007f31fecae05f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
 #1  0x00007f31ffb9934b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
 #2  0x00007f3203a8625b in ?? () from /usr/lib64/libQt5Quick.so.5
 #3  0x00007f3203a866f3 in ?? () from /usr/lib64/libQt5Quick.so.5
 #4  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #6  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 6 (Thread 0x7f3120daf700 (LWP 5040)):
 #0  0x00007f31fecae05f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
 #1  0x00007f31ffb9934b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
 #2  0x00007f3203a8625b in ?? () from /usr/lib64/libQt5Quick.so.5
 #3  0x00007f3203a866f3 in ?? () from /usr/lib64/libQt5Quick.so.5
 #4  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #6  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 5 (Thread 0x7f311bfff700 (LWP 5074)):
 #0  0x00007f31fecae05f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
 #1  0x00007f31ffb9934b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
 #2  0x00007f3203a8625b in ?? () from /usr/lib64/libQt5Quick.so.5
 #3  0x00007f3203a866f3 in ?? () from /usr/lib64/libQt5Quick.so.5
 #4  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #6  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 4 (Thread 0x7f311b7fe700 (LWP 5077)):
 #0  0x00007f31fecae05f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
 #1  0x00007f31ffb9934b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
 #2  0x00007f3203a8625b in ?? () from /usr/lib64/libQt5Quick.so.5
 #3  0x00007f3203a866f3 in ?? () from /usr/lib64/libQt5Quick.so.5
 #4  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #6  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 3 (Thread 0x7f311a5fc700 (LWP 5237)):
 #0  0x00007f31fecae05f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
 #1  0x00007f31ffb9934b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
 #2  0x00007f3203a8625b in ?? () from /usr/lib64/libQt5Quick.so.5
 #3  0x00007f3203a866f3 in ?? () from /usr/lib64/libQt5Quick.so.5
 #4  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #6  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 2 (Thread 0x7f311adfd700 (LWP 5336)):
 #0  0x00007f31fecae05f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
 #1  0x00007f31ffb9934b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
 #2  0x00007f3203a8625b in ?? () from /usr/lib64/libQt5Quick.so.5
 #3  0x00007f3203a866f3 in ?? () from /usr/lib64/libQt5Quick.so.5
 #4  0x00007f31ffb9832f in ?? () from /usr/lib64/libQt5Core.so.5
 #5  0x00007f31fecaa0a4 in start_thread () from /lib64/libpthread.so.0
 #6  0x00007f31ff4a904d in clone () from /lib64/libc.so.6
 

 Thread 1 (Thread 0x7f3205f5d800 (LWP 4906)):
 [KCrash Handler]
 #6  0x00007f3202c50339 in ?? () from /usr/lib64/libQt5Qml.so.5
 #7  0x00007f3202ebe009 in QQmlDelegateModel::_q_itemsChanged(int, int, QVector<int> const&) () from /usr/lib64/libQt5Qml.so.5
 #8  0x00007f3202ee5a8c in ?? () from /usr/lib64/libQt5Qml.so.5
 #9  0x00007f3202ee630b in QQmlDelegateModel::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQt5Qml.so.5
 #10 0x00007f31ffda3dc1 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
 #11 0x00007f31ffe2282c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) () from /usr/lib64/libQt5Core.so.5
 #12 0x00007f3149bbf734 in ?? () from /usr/lib64/libtaskmanager.so.5
 #13 0x00007f3149bc0077 in ?? () from /usr/lib64/libtaskmanager.so.5
 #14 0x00007f31ffda3cc6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
 #15 0x00007f3149bc7a48 in TaskManager::AbstractGroupableItem::changed(QFlags<TaskManager::TaskChange>) () from /usr/lib64/libtaskmanager.so.5
 #16 0x00007f31ffda3cc6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
 #17 0x00007f3149bc7b78 in TaskManager::Task::changed(QFlags<TaskManager::TaskChange>) () from /usr/lib64/libtaskmanager.so.5
 #18 0x00007f3149ba92b6 in TaskManager::Task::setActive(bool) () from /usr/lib64/libtaskmanager.so.5
 #19 0x00007f3149bbb70c in TaskManager::TaskManager::activeWindowChanged(unsigned long long) () from /usr/lib64/libtaskmanager.so.5
 #20 0x00007f3149bbd78c in ?? () from /usr/lib64/libtaskmanager.so.5
 #21 0x00007f31ffda3cc6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
 #22 0x00007f320298f292 in KWindowSystem::activeWindowChanged(unsigned long long) () from /usr/lib64/libKF5WindowSystem.so.5
 #23 0x00007f31e71deaf3 in ?? () from /usr/lib64/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so
 #24 0x00007f31ffd70fc0 in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () from /usr/lib64/libQt5Core.so.5
 #25 0x00007f31f08c8044 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /usr/lib64/libQt5XcbQpa.so.5
 #26 0x00007f31f08ca01b in QXcbConnection::processXcbEvents() () from /usr/lib64/libQt5XcbQpa.so.5
 #27 0x00007f31ffda4ac6 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
 #28 0x00007f32010ece7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
 #29 0x00007f32010f1cc8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
 #30 0x00007f31ffd73e95 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
 #31 0x00007f31ffd76057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
 #32 0x00007f31ffdcb8f3 in ?? () from /usr/lib64/libQt5Core.so.5
 #33 0x00007f31fbb82c84 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
 #34 0x00007f31fbb82ed8 in ?? () from /usr/lib64/libglib-2.0.so.0
 #35 0x00007f31fbb82f7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
 #36 0x00007f31ffdcad6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #37 0x00007f31ffd71d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
 #39 0x000000000043467b in main ()

So this happens randomly?
Or do you anything special when it happens, like running a certain application or hover your mouse over a specific task manager entry?
The crash seems to be coming from the task manager.
Maybe it helps if you disable “Show informational Tips” in “Configure Desktop”->Desktop Behavior->Workspace?

Also, do you use the standard Plasma5/KF5/Qt5 packages from Leap, or do you use any additional repos?

I have the same issue. Random crashes of plasma shell with the same error. KDE dev suggests it is related to the proprietary AMD driver for my graphics card, but than how come Gnome has no issue at all? This happens frequently as well and it seems that once the shell has crashed the next crash occurs sooner. I even found it to end in a sort of loop, forcing to hard reboot the PC in order to get plasma shell running “normally” again. The segmentation fault also happens frequently to kwin_x11 forcing to launch konsole and start kwin_x11 from there. Very annoying bug this is and I’m thinking about dropping KDE for Gnome again (with all its limitations it comes with).

The combination of great leap, Plasma5, nvidia driver, Qt5, KDE is hopeless. Crashes continue since November 2015. Nobody is able to correct, and there are many able bodies involved. There are many threads in this forum pointing to nvidia driver overwriting OpenGL libraries. Now I learn that the same happens with AMD proprietary driver.

I am about to invent a new (but well-known) saying:
“The most difficult thing to find out is the truth.”

QT5 is crippled.

Plasmashell crashes with intel GPUs too.

No, it just uses more advanced graphics driver features.

Although there are some bugs in Qt5 too, especially regarding multi-monitor handling.

I’d say “crippled” is the wrong word in any case though.

Plasmashell crashes with intel GPUs too.

It doesn’t here.

There are some known problems due to an intel driver bug (this can also affect other applications btw, not only plasmashell, even non-Qt ones) though, depending on the driver version and the chipset you might be affected by this.
Switching to the older UXA acceleration should help in this case:
https://en.opensuse.org/SDB:Switch_xf86-video-intel_to_UXA

Nope, it’s bigger than that. QT5 doesn’t handle the case when a monitor is unplugged or powered off. It can be easily reproduced with

 
xrandr --output DP3 --off ;  sleep 3 ; xrandr --output DP3  --auto 

(replace DP3 with the proper display output in your setup).

After that plasmashell usually crashes, some windows are not displayed with the right geometry. Hell, if the monitor is off during bootup and you switch it on when sddm-greeter is on screen, the latter crashes/exits and you can’t log in to KDE/Gnome.

And that happens regardless of the GPU in use. There are tons of bug reports on this issue.

So yes, QT5 is crippled and the bugfix is still not available.

Well, that’s a special case of “multi-monitor handling”.

But ok, so it does have problems in handling no display too, or adding/removing displays.

So yes, QT5 is crippled and the bugfix is still not available.

Still, insulting the developers won’t help either, especially for something you get for free.

And IMHO, stating things like “Qt5 is crippled” is an insult to anybody that “wastes” his/her time working on it.

Let’s just say “Linux is crippled” and move all on to something else, can we? >:)

AFAIK, at least most of these dynamic display handling bugs should be fixed in 5.6 though.

I am not insulting the developers, I am stating a fact, i.e. QT5 is too buggy. And by QT5 I mean the current version. I am not saying nor implying the whole project (past and future versions) should be thrown away.

And IMHO, stating things like “Qt5 is crippled” is an insult to anybody that “wastes” his/her time working on it.

Saying QT5 is good and fine would mean insulting the intelligence of those developers. Because it is not good and fine.

Let’s just say “Linux is crippled” and move all on to something else, can we? >:)

Not the same thing.

AFAIK, at least most of these dynamic display handling bugs should be fixed in 5.6 though.

Right. But apparently 5.4 and 5.5 won’t receive those bugfixes unless the OpenSuse guys embark on the task. This is a problem, because we don’t know if Leap 42.1 will get QT5.6. Now, let’s not forget that bug (marked critical) was initially reported against version 5.3.

I never said it was perfect.
But it is not “crippled” either.

Not the same thing.

No, but similar.

Right. But apparently 5.4 and 5.5 won’t receive those bugfixes unless the OpenSuse guys embark on the task. This is a problem, because we don’t know if Leap 42.1 will get QT5.6. Now, let’s not forget that bug (marked critical) was initially reported against version 5.3.

Well, I agree to some point here.
But that’s how software development works unfortunately.

openSUSE packages with a lot of those fixes backported are being tested currently.
And releasing 5.6 as update might be an option too, if it really improves the situation considerably.

PS: Personally I have no problem with those bugs, as I only use one monitor. (and I use kdm)
No idea about the OP.
But your initial, far too general statements (Qt5 is crippled, plasmashell crashes with intel GPUs) are not helpful at all.

I did try your xrandr “test”, and yes, plasmashell crashes here too. But it restarts itself immediately, so it’s not really a big problem IMHO (here in my test), only some annoyance because of the crash dialog.

Ok, after that, hit Alt + F2. What happens?

Ok, I see what you mean.
The problem can be “fixed” again by quitting and restarting krunner.

But this also boils down to problems with dynamically adding/removing displays, which are there in 5.5 at least.

Btw, not all those problems are necessarily bugs in Qt5. There also were (are?) bugs in KScreen and Plasma regarding the display handling.
Unfortunate, but that’s how it is. And the developers do try to fix them, but not all problems are immediately visible either, as they only happen in specific circumstances/configurations.

That’s true. Example
https://bugzilla.opensuse.org/show_bug.cgi?id=965517