Bug 338694

Summary: Plasmashell crashes on startup
Product: [Plasma] plasmashell Reporter: nicofrand
Component: generalAssignee: Sebastian Kügler <sebas>
Status: RESOLVED FIXED    
Severity: crash CC: bhush94, istvan.kapcsandi, kde
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
URL: http://pastebin.com/YzXT8EPM
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: gdb.log
kwin crash log
lspci -v output
lsmod output

Description nicofrand 2014-08-31 11:27:03 UTC
Hi, I am using the packages from the project neon repository to test plasma 5. When I log in, Plasma won't launch and I have this crash about plasmashell :

	

    Application: plasmashell (plasmashell), signal: Aborted
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    [Current thread is 1 (Thread 0x7f4b92b6f7c0 (LWP 21917))]
     
    Thread 3 (Thread 0x7f4b7a9b3700 (LWP 21922)):
    #0  0x00007f4b8b2e403d in poll () at ../sysdeps/unix/syscall-template.S:81
    #1  0x00007f4b8ec41b72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
    #2  0x00007f4b8ec4364f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
    #3  0x00007f4b7cd7ec69 in QXcbEventReader::run (this=0xf54c60) at qxcbconnection.cpp:1043
    #4  0x00007f4b8b96bf17 in QThreadPrivate::start (arg=0xf54c60) at thread/qthread_unix.cpp:345
    #5  0x00007f4b8a5f6182 in start_thread (arg=0x7f4b7a9b3700) at pthread_create.c:312
    #6  0x00007f4b8b2f138d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
     
    Thread 2 (Thread 0x7f4b73fff700 (LWP 21926)):
    #0  0x00007f4b865fe62d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #1  0x00007f4b865fe989 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #2  0x00007f4b865bc0b0 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #3  0x00007f4b865bcea5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #4  0x00007f4b865bd0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #5  0x00007f4b8bc50d83 in QEventDispatcherGlib::processEvents (this=0x7f4b6c0008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:428
    #6  0x00007f4b8bbd742c in QEventLoop::processEvents (this=0x7f4b73ffedd0, flags=...) at kernel/qeventloop.cpp:136
    #7  0x00007f4b8bbd76ed in QEventLoop::exec (this=0x7f4b73ffedd0, flags=...) at kernel/qeventloop.cpp:212
    #8  0x00007f4b8b964b9e in QThread::exec (this=0x108e760) at thread/qthread.cpp:511
    #9  0x00007f4b8e5c9d39 in QQmlThreadPrivate::run (this=0x108e760) at qml/ftw/qqmlthread.cpp:149
    #10 0x00007f4b8b96bf17 in QThreadPrivate::start (arg=0x108e760) at thread/qthread_unix.cpp:345
    #11 0x00007f4b8a5f6182 in start_thread (arg=0x7f4b73fff700) at pthread_create.c:312
    #12 0x00007f4b8b2f138d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
     
    Thread 1 (Thread 0x7f4b92b6f7c0 (LWP 21917)):
    [KCrash Handler]
    #6  0x00007f4b8b22cf89 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
    #7  0x00007f4b8b230398 in __GI_abort () at abort.c:89
    #8  0x00007f4b8b9591cc in qt_message_fatal (context=..., message=...) at global/qlogging.cpp:1364
    #9  0x00007f4b8b956cfe in QMessageLogger::fatal (this=0x7fffe29a9b20, msg=0x7f4b7ce22598 "Could not initialize GLX") at global/qlogging.cpp:669
    #10 0x00007f4b7cdb5111 in QGLXContext::QGLXContext (this=0x1253570, screen=0xf57840, format=..., share=0x0) at qglxintegration.cpp:297
    #11 0x00007f4b7cd8597b in QXcbIntegration::createPlatformOpenGLContext (this=0xf352f0, context=0x7fffe29a9c50) at qxcbintegration.cpp:237
    #12 0x00007f4b8c006bba in QOpenGLContext::create (this=0x7fffe29a9c50) at kernel/qopenglcontext.cpp:512
    #13 0x00007f4b7cdb5e46 in QGLXContext::queryDummyContext () at qglxintegration.cpp:520
    #14 0x00007f4b7cdb5fa9 in QGLXContext::supportsThreading () at qglxintegration.cpp:551
    #15 0x00007f4b7cd85afb in QXcbIntegration::hasCapability (this=0xf352f0, cap=QPlatformIntegration::ThreadedOpenGL) at qxcbintegration.cpp:291
    #16 0x00007f4b9244eeca in QSGRenderLoop::instance () at scenegraph/qsgrenderloop.cpp:193
    #17 0x00007f4b92480e89 in QQuickWindowPrivate::init (this=0x1252ac0, c=0x1253aa0, control=0x0) at items/qquickwindow.cpp:446
    #18 0x00007f4b92483464 in QQuickWindow::QQuickWindow (this=0x1253aa0, parent=0x0) at items/qquickwindow.cpp:1054
    #19 0x00007f4b912ef3d4 in PlasmaQuick::Dialog::Dialog (this=0x1253aa0, parent=0x0) at /build/buildd/project-neon5-plasma-framework-0.0+git20140824.0309+neon4~2b7d633~14.04/src/plasmaquick/dialog.cpp:439
    #20 0x00007f4b72da4153 in QQmlPrivate::QQmlElement<PlasmaQuick::Dialog>::QQmlElement (this=0x1253aa0) at /opt/project-neon5/include/QtQml/qqmlprivate.h:101
    #21 0x00007f4b72da41ab in QQmlPrivate::createInto<PlasmaQuick::Dialog> (memory=0x1253aa0) at /opt/project-neon5/include/QtQml/qqmlprivate.h:110
    #22 0x00007f4b8e545263 in QQmlType::create (this=0x7f4b6c0419e0) at qml/qqmlmetatype.cpp:719
    #23 0x00007f4b8e5c47d3 in QQmlObjectCreator::createInstance (this=0x11d6540, index=0, parent=0x0, isContextObject=true) at qml/qqmlobjectcreator.cpp:1061
    #24 0x00007f4b8e5bf7fb in QQmlObjectCreator::create (this=0x11d6540, subComponentIndex=-1, parent=0x0, interrupt=0x7fffe29aa2d0) at qml/qqmlobjectcreator.cpp:229
    #25 0x00007f4b8e539aba in QQmlIncubatorPrivate::incubate (this=0x108ddf0, i=...) at qml/qqmlincubator.cpp:310
    #26 0x00007f4b8e53a02c in QQmlIncubationController::incubateFor (this=0x11a4ef0, msecs=10) at qml/qqmlincubator.cpp:403
    #27 0x00007f4b9080ec3a in ?? () from /opt/project-neon5/lib/x86_64-linux-gnu/libKF5Declarative.so.5
    #28 0x00007f4b9080ebdc in ?? () from /opt/project-neon5/lib/x86_64-linux-gnu/libKF5Declarative.so.5
    #29 0x00007f4b8c82f0d0 in QApplicationPrivate::notify_helper (this=0xf2c260, receiver=0x11a4ee0, e=0x11afff0) at kernel/qapplication.cpp:3499
    #30 0x00007f4b8c82c718 in QApplication::notify (this=0x7fffe29aba60, receiver=0x11a4ee0, e=0x11afff0) at kernel/qapplication.cpp:2952
    #31 0x00007f4b8bbda6f4 in QCoreApplication::notifyInternal (this=0x7fffe29aba60, receiver=0x11a4ee0, event=0x11afff0) at kernel/qcoreapplication.cpp:935
    #32 0x00007f4b8bbde281 in QCoreApplication::sendEvent (receiver=0x11a4ee0, event=0x11afff0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:237
    #33 0x00007f4b8bbdb9bf in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xf1f0e0) at kernel/qcoreapplication.cpp:1539
    #34 0x00007f4b8bbdb364 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1397
    #35 0x00007f4b8bc505c2 in postEventSourceDispatch (s=0xf84180) at kernel/qeventdispatcher_glib.cpp:279
    #36 0x00007f4b865bce04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #37 0x00007f4b865bd048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #38 0x00007f4b865bd0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #39 0x00007f4b8bc50d63 in QEventDispatcherGlib::processEvents (this=0xf7b9e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
    #40 0x00007f4b7cdd90ce in QPAEventDispatcherGlib::processEvents (this=0xf7b9e0, flags=...) at eventdispatchers/qeventdispatcher_glib.cpp:123
    #41 0x00007f4b8bbdac17 in QCoreApplication::processEvents (flags=..., maxtime=50) at kernel/qcoreapplication.cpp:1133
    #42 0x00007f4b907fe0f3 in KDeclarative::QmlObject::completeInitialization(QHash<QString, QVariant> const&) () from /opt/project-neon5/lib/x86_64-linux-gnu/libKF5Declarative.so.5
    #43 0x00007f4b907fdb59 in ?? () from /opt/project-neon5/lib/x86_64-linux-gnu/libKF5Declarative.so.5
    #44 0x00007f4b907fdae9 in ?? () from /opt/project-neon5/lib/x86_64-linux-gnu/libKF5Declarative.so.5
    #45 0x00007f4b907fdf18 in KDeclarative::QmlObject::setSource(QUrl const&) () from /opt/project-neon5/lib/x86_64-linux-gnu/libKF5Declarative.so.5
    #46 0x000000000049b16f in Osd::Osd (this=0x108a4a0, corona=0x10726f0) at /build/buildd/project-neon5-plasma-workspace-0.0+git20140824.0314+neon4~55acbef~14.04/shell/osd.cpp:46
    #47 0x0000000000482713 in ShellCorona::ShellCorona (this=0x10726f0, parent=0x10680a0) at /build/buildd/project-neon5-plasma-workspace-0.0+git20140824.0314+neon4~55acbef~14.04/shell/shellcorona.cpp:238
    #48 0x0000000000498773 in ShellManager::loadHandlers (this=0x10680a0) at /build/buildd/project-neon5-plasma-workspace-0.0+git20140824.0314+neon4~55acbef~14.04/shell/shellmanager.cpp:99
    #49 0x00000000004badda in ShellManager::qt_static_metacall (_o=0x10680a0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x1019480) at /build/buildd/project-neon5-plasma-workspace-0.0+git20140824.0314+neon4~55acbef~14.04/obj-x86_64-linux-gnu/shell/moc_shellmanager.cpp:99
    #50 0x00007f4b8bc14bc1 in QMetaCallEvent::placeMetaCall (this=0x103b6e0, object=0x10680a0) at kernel/qobject.cpp:487
    #51 0x00007f4b8bc15c06 in QObject::event (this=0x10680a0, e=0x103b6e0) at kernel/qobject.cpp:1241
    #52 0x00007f4b8c82f0d0 in QApplicationPrivate::notify_helper (this=0xf2c260, receiver=0x10680a0, e=0x103b6e0) at kernel/qapplication.cpp:3499
    #53 0x00007f4b8c82c718 in QApplication::notify (this=0x7fffe29aba60, receiver=0x10680a0, e=0x103b6e0) at kernel/qapplication.cpp:2952
    #54 0x00007f4b8bbda6f4 in QCoreApplication::notifyInternal (this=0x7fffe29aba60, receiver=0x10680a0, event=0x103b6e0) at kernel/qcoreapplication.cpp:935
    #55 0x00007f4b8bbde281 in QCoreApplication::sendEvent (receiver=0x10680a0, event=0x103b6e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:237
    #56 0x00007f4b8bbdb9bf in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xf1f0e0) at kernel/qcoreapplication.cpp:1539
    #57 0x00007f4b8bbdb364 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1397
    #58 0x00007f4b8bc505c2 in postEventSourceDispatch (s=0xf84180) at kernel/qeventdispatcher_glib.cpp:279
    #59 0x00007f4b865bce04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #60 0x00007f4b865bd048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #61 0x00007f4b865bd0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #62 0x00007f4b8bc50d63 in QEventDispatcherGlib::processEvents (this=0xf7b9e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
    #63 0x00007f4b7cdd90ce in QPAEventDispatcherGlib::processEvents (this=0xf7b9e0, flags=...) at eventdispatchers/qeventdispatcher_glib.cpp:123
    #64 0x00007f4b8bbd742c in QEventLoop::processEvents (this=0x7fffe29ab910, flags=...) at kernel/qeventloop.cpp:136
    #65 0x00007f4b8bbd76ed in QEventLoop::exec (this=0x7fffe29ab910, flags=...) at kernel/qeventloop.cpp:212
    #66 0x00007f4b8bbdadac in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
    #67 0x00007f4b8bfc1998 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1483
    #68 0x00007f4b8c82bf39 in QApplication::exec () at kernel/qapplication.cpp:2744
    #69 0x000000000046710c in main (argc=3, argv=0x7fffe29abba8) at /build/buildd/project-neon5-plasma-workspace-0.0+git20140824.0314+neon4~55acbef~14.04/shell/main.cpp:109



Reproducible: Always

Steps to Reproduce:
1. Use plasma5 from project neon
2. Log in
Comment 1 David Edmundson 2014-09-02 16:15:35 UTC
"Could not initialize GLX") at global/qlogging.cpp:669

Could you tell us what hardware are you running on?

Does it happen with the latest Neon (we tried an openGL change for a while in Neon, which is now reverted)
Comment 2 nicofrand 2014-09-02 17:47:12 UTC
I just updated neon and there is no crash anymore !

For the record, here are my hardware info :

nicofrand@desktop:~$ sudo lspci -v -s 05:00.0
05:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Point of View BV Device 30a2
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
        Memory at f0000000 (64-bit, prefetchable) [size=128M]
        Memory at fa000000 (64-bit, prefetchable) [size=32M]
        I/O ports at ec00 [size=128]
        Expansion ROM at feb00000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nouveau

Since it was another app, I reported a crash with krunner too but I guess the root of the issue was the same, so, could anyone close this : https://bugs.kde.org/show_bug.cgi?id=338693 please ?

PS: thanks for the hard work !
Comment 3 David Edmundson 2014-09-02 17:49:18 UTC
Thanks for reporting back.
Without feedback like yours we could have accidentally released like that and affected thousands with the same issue.
Comment 4 Kapcsándi István 2015-02-03 23:14:51 UTC
Created attachment 90894 [details]
gdb.log
Comment 5 Kapcsándi István 2015-02-03 23:15:25 UTC
Created attachment 90895 [details]
kwin crash log
Comment 6 Kapcsándi István 2015-02-03 23:16:08 UTC
Created attachment 90896 [details]
lspci -v output
Comment 7 Kapcsándi István 2015-02-03 23:16:36 UTC
Created attachment 90897 [details]
lsmod output
Comment 8 Kapcsándi István 2015-02-03 23:21:17 UTC
I've tried to login into plasma5 shell in openSUSE 13.2 and it crashed at start. Debug outputs attached. 
Please tell if any more info needed.