Bug 362598

Summary: plasma-desktop crashes every start after upgrade from kubuntu 15.10 (from 15.04)
Product: [Plasma] plasmashell Reporter: Robert Auch <rauch>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: bshah, igorc, plasma-bugs-null, rdieter
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.5.5   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Robert Auch 2016-05-02 18:24:37 UTC
Application: plasmashell (5.5.5)

Qt Version: 5.5.1
Operating System: Linux 4.4.0-21-generic x86_64
Distribution: Ubuntu 16.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I had completed a "do-release-upgrade" from Kubuntu 15.10.  The week previous I had upgraded from Kubuntu 15.04 via the same process.  When I log in as my main user, plasma-desktop crashes, and will not restart.
- Custom settings of the application:
I have deleted ~/.config/plasma* and the problem still exists. I'm going to go through other .config/kde and related files.

This *may* be related to bumblebee configuration, since I saw an error about nvidia_340, but can't find where that error went.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7f5de2c15900 (LWP 9066))]

Thread 7 (Thread 0x7f5dc33ea700 (LWP 9071)):
#0  0x00007f5ddd32ce8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f5dda0c231c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5dda0c242c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5dddc59a9b in QEventDispatcherGlib::processEvents (this=0x7f5dbc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007f5dddc00dea in QEventLoop::exec (this=this@entry=0x7f5dc33e9ca0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f5ddda1d8a4 in QThread::exec (this=this@entry=0x1888530) at thread/qthread.cpp:503
#6  0x00007f5de02c53c5 in QQmlThreadPrivate::run (this=0x1888530) at qml/ftw/qqmlthread.cpp:141
#7  0x00007f5ddda2284e in QThreadPrivate::start (arg=0x1888530) at thread/qthread_unix.cpp:331
#8  0x00007f5ddcb0f6fa in start_thread (arg=0x7f5dc33ea700) at pthread_create.c:333
#9  0x00007f5ddd338b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f5db9930700 (LWP 9075)):
#0  0x00007f5ddd3289cd in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f5dd5ec7f45 in ?? () from /usr/lib/nvidia-340/tls/libnvidia-tls.so.340.96
#2  0x00007f5dda1056c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5dda0c1e04 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5dda0c22c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5dda0c242c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f5dddc59a9b in QEventDispatcherGlib::processEvents (this=0x7f5db40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#7  0x00007f5dddc00dea in QEventLoop::exec (this=this@entry=0x7f5db992fca0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#8  0x00007f5ddda1d8a4 in QThread::exec (this=this@entry=0x19be830) at thread/qthread.cpp:503
#9  0x00007f5de02c53c5 in QQmlThreadPrivate::run (this=0x19be830) at qml/ftw/qqmlthread.cpp:141
#10 0x00007f5ddda2284e in QThreadPrivate::start (arg=0x19be830) at thread/qthread_unix.cpp:331
#11 0x00007f5ddcb0f6fa in start_thread (arg=0x7f5db9930700) at pthread_create.c:333
#12 0x00007f5ddd338b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f5db308f700 (LWP 9076)):
#0  0x00007ffe643de9a9 in ?? ()
#1  0x00007ffe643decd5 in clock_gettime ()
#2  0x00007f5ddd346fb6 in __GI___clock_gettime (clock_id=1, tp=tp@entry=0x7f5db308ea10) at ../sysdeps/unix/clock_gettime.c:115
#3  0x00007f5dddad2c16 in qt_clock_gettime (ts=0x7f5db308ea10, clock=<optimized out>) at tools/qelapsedtimer_unix.cpp:105
#4  do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:156
#5  qt_gettime () at tools/qelapsedtimer_unix.cpp:165
#6  0x00007f5dddc57529 in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f5dac002ed0) at kernel/qtimerinfo_unix.cpp:84
#7  0x00007f5dddc57a95 in QTimerInfoList::timerWait (this=0x7f5dac002ed0, tm=...) at kernel/qtimerinfo_unix.cpp:381
#8  0x00007f5dddc58e7e in timerSourcePrepareHelper (timeout=0x7f5db308eae4, src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:127
#9  timerSourcePrepare (source=<optimized out>, timeout=0x7f5db308eae4) at kernel/qeventdispatcher_glib.cpp:160
#10 0x00007f5dda0c18ad in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f5dda0c224b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007f5dda0c242c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007f5dddc59a9b in QEventDispatcherGlib::processEvents (this=0x7f5dac0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#14 0x00007f5dddc00dea in QEventLoop::exec (this=this@entry=0x7f5db308eca0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#15 0x00007f5ddda1d8a4 in QThread::exec (this=this@entry=0x1b0e7c0) at thread/qthread.cpp:503
#16 0x00007f5de02c53c5 in QQmlThreadPrivate::run (this=0x1b0e7c0) at qml/ftw/qqmlthread.cpp:141
#17 0x00007f5ddda2284e in QThreadPrivate::start (arg=0x1b0e7c0) at thread/qthread_unix.cpp:331
#18 0x00007f5ddcb0f6fa in start_thread (arg=0x7f5db308f700) at pthread_create.c:333
#19 0x00007f5ddd338b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f5db1726700 (LWP 9077)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5de266abd4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f5de266ac19 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f5ddcb0f6fa in start_thread (arg=0x7f5db1726700) at pthread_create.c:333
#4  0x00007f5ddd338b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f5d2ad13700 (LWP 9078)):
#0  0x00007f5ddd3289cd in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f5dd5ec7f45 in ?? () from /usr/lib/nvidia-340/tls/libnvidia-tls.so.340.96
#2  0x00007f5dda1056c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5dda0c1e04 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5dda0c22c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5dda0c242c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f5dddc59a9b in QEventDispatcherGlib::processEvents (this=0x7f5d240008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#7  0x00007f5dddc00dea in QEventLoop::exec (this=this@entry=0x7f5d2ad12c50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#8  0x00007f5ddda1d8a4 in QThread::exec (this=this@entry=0x1dcb190) at thread/qthread.cpp:503
#9  0x00007f5de0c4bed6 in QQuickPixmapReader::run (this=0x1dcb190) at util/qquickpixmapcache.cpp:817
#10 0x00007f5ddda2284e in QThreadPrivate::start (arg=0x1dcb190) at thread/qthread_unix.cpp:331
#11 0x00007f5ddcb0f6fa in start_thread (arg=0x7f5d2ad13700) at pthread_create.c:333
#12 0x00007f5ddd338b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f5d28bb2700 (LWP 9079)):
[KCrash Handler]
#6  0x00007f5dd9519ae9 in glGetString () from /usr/lib/nvidia-340/libGL.so.1
#7  0x00007f5dddf7c5da in QOpenGLContext::makeCurrent (this=0x1d7c590, surface=0x1d05840) at kernel/qopenglcontext.cpp:941
#8  0x00007f5de0cc23f3 in QSGRenderThread::run (this=0x1cb27a0) at scenegraph/qsgthreadedrenderloop.cpp:675
#9  0x00007f5ddda2284e in QThreadPrivate::start (arg=0x1cb27a0) at thread/qthread_unix.cpp:331
#10 0x00007f5ddcb0f6fa in start_thread (arg=0x7f5d28bb2700) at pthread_create.c:333
#11 0x00007f5ddd338b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f5de2c15900 (LWP 9066)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5ddda23aeb in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x1d4fe90) at thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1cb27e0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:208
#3  0x00007f5de0cbebc6 in QSGThreadedRenderLoop::polishAndSync (this=this@entry=0x199e280, w=<optimized out>, w@entry=0x1ce7ed0, inExpose=inExpose@entry=true) at scenegraph/qsgthreadedrenderloop.cpp:1150
#4  0x00007f5de0cc109c in QSGThreadedRenderLoop::handleExposure (this=this@entry=0x199e280, window=window@entry=0x1d05830) at scenegraph/qsgthreadedrenderloop.cpp:946
#5  0x00007f5de0cc1733 in QSGThreadedRenderLoop::exposureChanged (this=0x199e280, window=0x1d05830) at scenegraph/qsgthreadedrenderloop.cpp:857
#6  0x00007f5dddf4e2e5 in QWindow::event (this=this@entry=0x1d05830, ev=ev@entry=0x7ffe643750f0) at kernel/qwindow.cpp:2060
#7  0x00007f5de0cf4871 in QQuickWindow::event (this=this@entry=0x1d05830, e=e@entry=0x7ffe643750f0) at items/qquickwindow.cpp:1413
#8  0x000000000043f206 in DesktopView::event (this=0x1d05830, e=0x7ffe643750f0) at /build/plasma-workspace-kxRFE_/plasma-workspace-5.5.5.2/shell/desktopview.cpp:205
#9  0x00007f5dde70605c in QApplicationPrivate::notify_helper (this=this@entry=0x1628d20, receiver=receiver@entry=0x1d05830, e=e@entry=0x7ffe643750f0) at kernel/qapplication.cpp:3716
#10 0x00007f5dde70b516 in QApplication::notify (this=0x7ffe64375510, receiver=0x1d05830, e=0x7ffe643750f0) at kernel/qapplication.cpp:3499
#11 0x00007f5dddc0362b in QCoreApplication::notifyInternal (this=0x7ffe64375510, receiver=receiver@entry=0x1d05830, event=event@entry=0x7ffe643750f0) at kernel/qcoreapplication.cpp:965
#12 0x00007f5dddf464ec in QCoreApplication::sendSpontaneousEvent (event=0x7ffe643750f0, receiver=0x1d05830) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:227
#13 QGuiApplicationPrivate::processExposeEvent (e=0x1d1f350) at kernel/qguiapplication.cpp:2663
#14 0x00007f5dddf4725d in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x1d1f350) at kernel/qguiapplication.cpp:1658
#15 0x00007f5dddf2af38 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:625
#16 0x00007f5dcec65f10 in userEventSourceDispatch (source=<optimized out>) at eventdispatchers/qeventdispatcher_glib.cpp:70
#17 0x00007f5dda0c2127 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f5dda0c2380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f5dda0c242c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f5dddc59a7f in QEventDispatcherGlib::processEvents (this=0x179b070, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#21 0x00007f5dddc00dea in QEventLoop::exec (this=this@entry=0x7ffe643753b0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#22 0x00007f5dddc08e8c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229
#23 0x00007f5dddf3cc3c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1542
#24 0x00007f5dde702495 in QApplication::exec () at kernel/qapplication.cpp:2976
#25 0x0000000000432d4a in main (argc=3, argv=<optimized out>) at /build/plasma-workspace-kxRFE_/plasma-workspace-5.5.5.2/shell/main.cpp:181

Reported using DrKonqi
Comment 1 Rex Dieter 2016-05-05 11:41:49 UTC
nvidia Driver isn't working right, for whatever reason:

Thread 2 (Thread 0x7f5d28bb2700 (LWP 9079)):
[KCrash Handler]
#6  0x00007f5dd9519ae9 in glGetString () from /usr/lib/nvidia-340/libGL.so.1
#7  0x00007f5dddf7c5da in QOpenGLContext::makeCurrent (this=0x1d7c590,
surface=0x1d05840) at kernel/qopenglcontext.cpp:94
Comment 2 Robert Auch 2016-05-06 13:52:37 UTC
Confirmed - downgrading nvidia driver from nvidia-340 to nvidia-304 solved this, in case anyone comes here wondering what the *fix* is. :)
Comment 3 Marco Martin 2016-11-10 12:45:41 UTC
*** Bug 372204 has been marked as a duplicate of this bug. ***