Bug 359498

Summary: crash at login of new user
Product: [Plasma] plasmashell Reporter: geolele
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: crash CC: 31i73h4ck3r, bhush94, plasma-bugs
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description geolele 2016-02-17 13:13:33 UTC
If I add a new user it is not possible to login it -using graphic interface (SDDM)- because of plasmashell crash resulting in a black screen. However I already have an older user (created during the installation several months ago) that works fine.
I tried to delete /home/new-user/.cache, /home/new-user/.config but nothing change.
I tried to copy /home/old-user/.cache and /home/old-user/.config to the home of the new user (changing the owner). In this case plasmashell still crashes but at least I have the cairo-dock that lets me open konsole and hence all the applications but the window manager (kwin_x11) doesn't work and systemsettings5 crash whenever I try to view any kind of settings (e.g., theme, color, screen, etc.).

If I call plasmashell from konsole this is the result:
http://paste.debian.net/394128

If I call kwin_x11 --replace, this is the result:
http://paste.debian.net/394129

If I call systemsettings5 this is the result:
http://paste.debian.net/394130

All new windows work without window manager and if closed, the images of them persist on the black screen.
I use nvidia proprietary driver (361.28).

-- 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 0x7f174e821940 (LWP 6294))]

Thread 7 (Thread 0x7f1738bf4700 (LWP 6298)):
#0  0x00007f1748eeca9d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f174cfdf382 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f174cfe0ff7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f173a9665b9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f17495da87e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f17486e4284 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f1748ef597d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 6 (Thread 0x7f1732244700 (LWP 6304)):
#0  0x00007f17486ec56c in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f17486e6912 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f174506ff2c in ?? () from /usr/lib/x86_64-linux-gnu/libGL.so.1
#3  0x00007f1745074e01 in ?? () from /usr/lib/x86_64-linux-gnu/libGL.so.1
#4  0x00007f17450752ab in ?? () from /usr/lib/x86_64-linux-gnu/libGL.so.1
#5  0x00007f17419d70f1 in ?? () from /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.361.28
#6  0x00007f1745c82510 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f1745c3ecb4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f1745c3f170 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f1745c3f2dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f17498122fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f17497b92fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f17495d58d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f174be8a105 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#14 0x00007f17495da87e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f17486e4284 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#16 0x00007f1748ef597d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 5 (Thread 0x7f172975c700 (LWP 6316)):
#0  0x00007f17486ec56c in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f17486e6912 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f174506ff2c in ?? () from /usr/lib/x86_64-linux-gnu/libGL.so.1
#3  0x00007f1745074e01 in ?? () from /usr/lib/x86_64-linux-gnu/libGL.so.1
#4  0x00007f17450752ab in ?? () from /usr/lib/x86_64-linux-gnu/libGL.so.1
#5  0x00007f17419d70f1 in ?? () from /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.361.28
#6  0x00007f1745c82510 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f1745c3ecb4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f1745c3f170 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f1745c3f2dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f17498122fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f17497b92fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f17495d58d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f174be8a105 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#14 0x00007f17495da87e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f17486e4284 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#16 0x00007f1748ef597d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7f172366c700 (LWP 6320)):
#0  0x00007f1745c838b4 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f1745c3f07d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f1745c3f2dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f17498122fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f17497b92fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f17495d58d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f174be8a105 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f17495da87e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f17486e4284 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007f1748ef597d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7f1721adc700 (LWP 6330)):
#0  0x00007f17486e98cf in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f174e2631c4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f174e263209 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f17486e4284 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007f1748ef597d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7f171a47c700 (LWP 6345)):
#0  0x00007f1748ee8aad in read () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f17419d7073 in ?? () from /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.361.28
#2  0x00007f1745c82510 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f1745c3ecb4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f1745c3f170 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f1745c3f2dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f17498122fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f17497b92fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f17495d58d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f174c81e136 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#10 0x00007f17495da87e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f17486e4284 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#12 0x00007f1748ef597d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f174e821940 (LWP 6294)):
[KCrash Handler]
#6  0x00007f1748e40507 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f1748e418da in abort () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00007f17495c7ff1 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f174c88a991 in QSGRenderLoop::handleContextCreationFailure(QQuickWindow*, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#10 0x00007f174c8931f2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#11 0x00007f174c8935f3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#12 0x00007f1749b07fd5 in QWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#13 0x00007f174c8c5ec1 in QQuickWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#14 0x000000000043e0c6 in DesktopView::event(QEvent*) ()
#15 0x00007f174a2bfffc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f174a2c54c6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f17497bbb6b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f1749b001cc in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#19 0x00007f1749b00f3d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#20 0x00007f1749ae4e38 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#21 0x00007f173a997fd0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#22 0x00007f1745c3efd7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f1745c3f230 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f1745c3f2dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f17498122df in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f17497b92fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f17497c13dc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x0000000000431b03 in main ()

Reproducible: Always

Steps to Reproduce:
1. Add new user
2. Login using sddm


Actual Results:  
plasmashell crash resulting in black screen

Expected Results:  
usable desktop
Comment 1 31i73h4ck3r 2016-02-19 17:48:47 UTC
*** Bug 359510 has been marked as a duplicate of this bug. ***
Comment 2 David Edmundson 2016-02-20 18:37:42 UTC
Missing OpenGL drivers

*** This bug has been marked as a duplicate of bug 345563 ***
Comment 3 31i73h4ck3r 2016-02-21 13:27:29 UTC
David Edmundson,
He can't login as a new user, however, he can login as old user.
If this issue was due to opengl drivers, he shouldn't be able to login as old user.
Comment 4 31i73h4ck3r 2016-02-21 13:42:15 UTC
oh wait, maybe it is the case because of new user not being in "video" group.
Comment 5 geolele 2016-02-21 21:11:41 UTC
That was the solution! I added the new user to the "video" group and everything back to normality.
However, why if I create a new user, it is not automatically added into the "video" group?