Bug 385321

Summary: Screen locker 'unable to unlock, use loginctl instead' randomly when system is locked
Product: [Plasma] kscreenlocker Reporter: kde
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: critical CC: 2518509078, 677ee1vp, bhush94, chesnia2000, dave.greengas, katyaberezyaka, kde, ltstarwarskid, manuelchaves, mgraesslin, nate, nickm82, plasma-bugs, veehexx, woskimi
Priority: VHI Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kde 2017-10-03 11:30:42 UTC
Application: plasmashell (5.10.5)

Qt Version: 5.9.1
Frameworks Version: 5.38.0
Operating System: Linux 4.13.4-1-hardened x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
I pressed session lock shortcut key. Monitor turned off after screen timeout. Waited for random time.

- Unusual behavior I noticed:
Even if screen locker does not crash until I resume to seat and login, I can see compositor has been crashed and stopped updating (e.g., time display) entries on desktop panels. Using XRender instead of OpenGL composition stops compositor crash issue. (But still crashes screen locker)

- (Maybe) related kernel log
[ 1527.414171] NVRM: GPU at PCI:0000:01:00: GPU-a98ba515-9490-b50f-f1e5-b3b67992023c
[ 1527.414173] NVRM: Xid (PCI:0000:01:00): 9, Channel 00000016 Instance 00000000 Intr 00000001

I'm using NVIDIA closed source driver with NVIDIA Geforce 1050Ti Mobile.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x607ead773c80 (LWP 942))]

Thread 12 (Thread 0x607db77fe700 (LWP 1121)):
#0  0x0000607ea65c638d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x0000607ea74085cc in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x0000607eab1a2dca in  () at /usr/lib/libQt5Quick.so.5
#3  0x0000607eab1a3254 in  () at /usr/lib/libQt5Quick.so.5
#4  0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#5  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#6  0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 11 (Thread 0x607dbdc08700 (LWP 1119)):
#0  0x0000607ea65c638d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x0000607ea74085cc in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x0000607eab1a2dca in  () at /usr/lib/libQt5Quick.so.5
#3  0x0000607eab1a3254 in  () at /usr/lib/libQt5Quick.so.5
#4  0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#5  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#6  0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 10 (Thread 0x607dbf5fe700 (LWP 1114)):
#0  0x0000607ea65c638d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x0000607ea74085cc in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x0000607eab1a2dca in  () at /usr/lib/libQt5Quick.so.5
#3  0x0000607eab1a3254 in  () at /usr/lib/libQt5Quick.so.5
#4  0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#5  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#6  0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 9 (Thread 0x607dd3349700 (LWP 1111)):
[KCrash Handler]
#5  0x0000607ea6c518a0 in raise () at /usr/lib/libc.so.6
#6  0x0000607ea6c52f09 in abort () at /usr/lib/libc.so.6
#7  0x0000607e82316519 in  () at /usr/lib/libGLX_nvidia.so.0
#8  0x0000607dfb3327c3 in  () at /usr/lib/libnvidia-glcore.so.384.90
#9  0x0000607dfb2dfa68 in  () at /usr/lib/libnvidia-glcore.so.384.90
#10 0x0000607dfb20528e in  () at /usr/lib/libnvidia-glcore.so.384.90
#11 0x0000607e8230feae in  () at /usr/lib/libGLX_nvidia.so.0
#12 0x0000607e961f3d15 in  () at /usr/lib/qt/plugins/xcbglintegrations/libqxcb-glx-integration.so
#13 0x0000607ea7e0e04f in QOpenGLContext::swapBuffers(QSurface*) () at /usr/lib/libQt5Gui.so.5
#14 0x0000607eab19e0eb in  () at /usr/lib/libQt5Quick.so.5
#15 0x0000607eab1a3210 in  () at /usr/lib/libQt5Quick.so.5
#16 0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#17 0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#18 0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 8 (Thread 0x607dd9a52700 (LWP 1104)):
#0  0x0000607ea6d08cbb in poll () at /usr/lib/libc.so.6
#1  0x0000607ea15eac09 in  () at /usr/lib/libglib-2.0.so.0
#2  0x0000607ea15ead1c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x0000607ea7645064 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x0000607ea75e8fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x0000607ea74023ee in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x0000607ddc3f518a in KCupsConnection::run() () at /usr/lib/libkcupslib.so
#7  0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#8  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#9  0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x607df541c700 (LWP 1096)):
#0  0x0000607ea65c638d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x0000607ea74085cc in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x0000607eab1a2dca in  () at /usr/lib/libQt5Quick.so.5
#3  0x0000607eab1a3254 in  () at /usr/lib/libQt5Quick.so.5
#4  0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#5  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#6  0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x607df5c1d700 (LWP 1093)):
#0  0x0000607ea162fa69 in g_mutex_lock () at /usr/lib/libglib-2.0.so.0
#1  0x0000607ea15eabce in  () at /usr/lib/libglib-2.0.so.0
#2  0x0000607ea15ead1c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x0000607ea7645064 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x0000607ea75e8fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x0000607ea74023ee in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x0000607eab12196b in  () at /usr/lib/libQt5Quick.so.5
#7  0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#8  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#9  0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x607e82da4700 (LWP 1088)):
#0  0x0000607ea65c638d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x0000607eace39b04 in  () at /usr/lib/libQt5Script.so.5
#2  0x0000607eace39b49 in  () at /usr/lib/libQt5Script.so.5
#3  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#4  0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x607e8cf5e700 (LWP 1087)):
#0  0x0000607ea6d08cbb in poll () at /usr/lib/libc.so.6
#1  0x0000607ea15eac09 in  () at /usr/lib/libglib-2.0.so.0
#2  0x0000607ea15ead1c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x0000607ea7645064 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x0000607ea75e8fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x0000607ea74023ee in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x0000607eaa5713d9 in  () at /usr/lib/libQt5Qml.so.5
#7  0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#8  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#9  0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x607e8f3ea700 (LWP 1050)):
#0  0x0000607ea7645452 in  () at /usr/lib/libQt5Core.so.5
#1  0x0000607ea15ea611 in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#2  0x0000607ea15eabb0 in  () at /usr/lib/libglib-2.0.so.0
#3  0x0000607ea15ead1c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x0000607ea7645064 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x0000607ea75e8fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x0000607ea74023ee in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x0000607eaa5713d9 in  () at /usr/lib/libQt5Qml.so.5
#8  0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#9  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#10 0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x607e95401700 (LWP 954)):
#0  0x0000607ea162fa69 in g_mutex_lock () at /usr/lib/libglib-2.0.so.0
#1  0x0000607ea15ea153 in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0
#2  0x0000607ea15eab3b in  () at /usr/lib/libglib-2.0.so.0
#3  0x0000607ea15ead1c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x0000607ea7645064 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x0000607ea75e8fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x0000607ea74023ee in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x0000607ea7a60376 in  () at /usr/lib/libQt5DBus.so.5
#8  0x0000607ea740713b in  () at /usr/lib/libQt5Core.so.5
#9  0x0000607ea65c008a in start_thread () at /usr/lib/libpthread.so.0
#10 0x0000607ea6d131bf in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x607ead773c80 (LWP 942)):
#0  0x0000607ea65c638d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x0000607ea74085cc in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x0000607eab19f3ea in  () at /usr/lib/libQt5Quick.so.5
#3  0x0000607eab1a0232 in  () at /usr/lib/libQt5Quick.so.5
#4  0x0000607eab1fd996 in QQuickWindow::event(QEvent*) () at /usr/lib/libQt5Quick.so.5
#5  0x0000083cb4a6db44 in  ()
#6  0x0000607ea8590e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#7  0x0000607ea8598906 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#8  0x0000607ea75eabb0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#9  0x0000607ea7ddf273 in QWindowPrivate::deliverUpdateRequest() () at /usr/lib/libQt5Gui.so.5
#10 0x0000607ea7ddf79b in QWindow::event(QEvent*) () at /usr/lib/libQt5Gui.so.5
#11 0x0000607eab1fd936 in QQuickWindow::event(QEvent*) () at /usr/lib/libQt5Quick.so.5
#12 0x0000083cb4a6db44 in  ()
#13 0x0000607ea8590e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#14 0x0000607ea8598906 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#15 0x0000607ea75eabb0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#16 0x0000607ea7644488 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#17 0x0000607ea7644cba in  () at /usr/lib/libQt5Core.so.5
#18 0x0000607ea15eaa57 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#19 0x0000607ea15eac88 in  () at /usr/lib/libglib-2.0.so.0
#20 0x0000607ea15ead1c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#21 0x0000607ea7645041 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#22 0x0000607ea75e8fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#23 0x0000607ea75f2028 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#24 0x0000083cb4a5971b in  ()
#25 0x0000607ea6c3df6a in __libc_start_main () at /usr/lib/libc.so.6
#26 0x0000083cb4a59aba in _start ()

Reported using DrKonqi
Comment 1 David Edmundson 2017-10-03 21:53:44 UTC
If you are able to compile your own Qt, it would be interesting to see if the patch in https://bugs.kde.org/show_bug.cgi?id=364766  fixes it.
Comment 2 manuelchaves 2019-11-07 02:35:53 UTC
This is happening to me randomly on Neon. Using latest KDE packages. I tried switching between OpenGL 2.0 and 3.0 compositors, both trigger it. I have to issue the command in another TTY to unlock.

kscreenlocker_g[8579]: segfault at 7ffc56242fe8 ip 00007f390f2f242d sp 00007ffc56242ff0 error 6 in libc-2.27.so[7f390f297000+1e7000]
Comment 3 2518509078 2020-01-26 13:07:36 UTC
*** Bug 416784 has been marked as a duplicate of this bug. ***
Comment 4 soredake 2020-12-31 10:05:42 UTC
Any progress on this?
Comment 5 Nate Graham 2021-06-21 22:27:02 UTC
Is anyone able to reproduce the issue in Plasma 5.21 or 5.22?
Comment 6 Bug Janitor Service 2021-07-06 04:33:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2021-07-21 04:33:35 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 8 David Greengas 2021-10-06 12:31:56 UTC Comment hidden (spam)
Comment 9 Tim D 2022-08-16 19:05:54 UTC Comment hidden (spam)
Comment 10 Michi 2022-08-27 10:32:44 UTC Comment hidden (spam)
Comment 11 ltstarwarskid 2022-09-15 17:18:20 UTC Comment hidden (spam)
Comment 12 Nate Graham 2022-11-04 20:21:42 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? Like Plasma 5.25, or ideally 5.26? I ask because a lot of auth and PAM things changed in 5.25.

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 13 Tim D 2022-11-04 20:55:30 UTC Comment hidden (spam)
Comment 14 ltstarwarskid 2022-11-05 07:06:18 UTC Comment hidden (spam)
Comment 15 Tim D 2022-11-16 10:41:16 UTC Comment hidden (spam)
Comment 16 Nate Graham 2022-11-16 17:28:41 UTC Comment hidden (spam)
Comment 17 Tim D 2022-11-18 18:30:43 UTC Comment hidden (spam)
Comment 18 Nate Graham 2022-11-18 20:49:26 UTC Comment hidden (spam)
Comment 19 Tim D 2022-11-18 21:32:04 UTC Comment hidden (spam)
Comment 20 Nate Graham 2022-11-21 21:05:13 UTC Comment hidden (spam)
Comment 21 NickM 2022-11-23 03:48:16 UTC Comment hidden (spam)
Comment 22 Nate Graham 2022-11-29 23:14:21 UTC Comment hidden (spam)
Comment 23 Bug Janitor Service 2022-12-14 05:12:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 24 Bug Janitor Service 2022-12-29 05:24:41 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 25 Tim D 2022-12-29 09:24:22 UTC
i know it's been closed, but just to update; i've had no problems with the issue since i opened it. issue does seem to be occuring far less frequently that it used to (could almost guarantee it'd happen every few days).