Bug 453385 - KSplash segfaults in SplashWindow::setStage() after sleep or lock
Summary: KSplash segfaults in SplashWindow::setStage() after sleep or lock
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Splash Screens (show other bugs)
Version: 5.27.5
Platform: Neon Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-04 12:57 UTC by aronkvh
Modified: 2023-05-24 15:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aronkvh 2022-05-04 12:57:05 UTC
The lock screen crashes and displays a black screen with a small(~300px) white rectangle with a cursor and nothing else.
It happens after locking the screen or waking after sleep.

Operating System: KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-40-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-3770 CPU @ 3.40GHz
Memory: 27,4 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2

Application: ksplashqml (ksplashqml), signal: Segmentation fault
[New LWP 2070]
[New LWP 2077]
[New LWP 2080]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f43754229cf in __GI___poll (fds=0x7ffec41c46b8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7f4370859980 (LWP 2067))]

Thread 4 (Thread 0x7f436d54b700 (LWP 2080)):
#0  0x00007f437352934c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f43735294a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f43759f365b in QEventDispatcherGlib::processEvents (this=0x7f4358000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#3  0x00007f437599787b in QEventLoop::exec (this=this@entry=0x7f436d54ac00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#4  0x00007f43757b1442 in QThread::exec (this=this@entry=0x55bde0268950) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#5  0x00007f43751a0b39 in QQmlThreadPrivate::run (this=0x55bde0268950) at qml/ftw/qqmlthread.cpp:155
#6  0x00007f43757b2623 in QThreadPrivate::start (arg=0x55bde0268950) at thread/qthread_unix.cpp:331
#7  0x00007f4374767609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f437542f163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f436dd4c700 (LWP 2077)):
#0  0x00007f43754229cf in __GI___poll (fds=0x7f4360004e60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f437352936e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f43735294a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f43759f365b in QEventDispatcherGlib::processEvents (this=0x7f4360000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f437599787b in QEventLoop::exec (this=this@entry=0x7f436dd4bbf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f43757b1442 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f437637bf4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f43757b2623 in QThreadPrivate::start (arg=0x7f43763ffd80) at thread/qthread_unix.cpp:331
#8  0x00007f4374767609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f437542f163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f436fa1f700 (LWP 2070)):
#0  0x00007f43754229cf in __GI___poll (fds=0x7f436fa1eb28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f43745b2c1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f43745b490a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f43701561a8 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f43757b2623 in QThreadPrivate::start (arg=0x55bde0154db0) at thread/qthread_unix.cpp:331
#5  0x00007f4374767609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f437542f163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f4370859980 (LWP 2067)):
[KCrash Handler]
#4  0x00007f43759ce71e in qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > (ptr=...) at kernel/qobject.cpp:4029
#5  QObject::d_func (this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:132
#6  QObject::setProperty (this=this@entry=0x0, name=name@entry=0x55bdde99d868 "stage", value=...) at kernel/qobject.cpp:4030
#7  0x000055bdde99bf29 in SplashWindow::setStage (this=this@entry=0x55bde02720c0, stage=0) at ./ksplash/ksplashqml/splashwindow.cpp:75
#8  0x000055bdde99a754 in SplashApp::adoptScreen (this=this@entry=0x7ffec41c5570, screen=0x55bde0246660) at ./ksplash/ksplashqml/splashapp.cpp:137
#9  0x000055bdde99af73 in SplashApp::SplashApp (this=0x7ffec41c5570, argc=<optimized out>, argv=<optimized out>) at ./ksplash/ksplashqml/splashapp.cpp:74
#10 0x000055bdde999dc7 in main (argc=<optimized out>, argv=0x7ffec41c56c8) at ./ksplash/ksplashqml/main.cpp:60
[Inferior 1 (process 2067) detached]
Comment 1 Nate Graham 2022-05-04 16:23:30 UTC
Does the issue go away if you delete these files:

~/.cache/icon-cache.kcache
~/.cache/mesa_shader_cache/

If so, it's probably the same as Bug 443078 and we should re-open that.
Comment 2 aronkvh 2022-05-04 16:52:29 UTC
(In reply to Nate Graham from comment #1)
> Does the issue go away if you delete these files:
> 
> ~/.cache/icon-cache.kcache
> ~/.cache/mesa_shader_cache/
> 
> If so, it's probably the same as Bug 443078 and we should re-open that.

No, it still happens.
Comment 3 aronkvh 2022-06-13 17:17:40 UTC
another backtrace:
Application: ksplashqml (ksplashqml), signal: Segmentation fault

[New LWP 2090]
[New LWP 2097]
[New LWP 2098]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f752ec2299f in __GI___poll (fds=0x7ffe9eb431b8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7f752a04c9c0 (LWP 2082))]

Thread 4 (Thread 0x7f7520a6f700 (LWP 2098)):
#0  __GI___libc_read (nbytes=16, buf=0x7f7520a6e9b0, fd=22) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=22, buf=0x7f7520a6e9b0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f752cd6db2f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f752cd24ebe in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f752cd25312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f752cd254a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f752f1f3c8b in QEventDispatcherGlib::processEvents (this=0x7f7514000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007f752f197eab in QEventLoop::exec (this=this@entry=0x7f7520a6ebc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007f752efb1462 in QThread::exec (this=this@entry=0x556a9090a110) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007f752e99f689 in QQmlThreadPrivate::run (this=0x556a9090a110) at qml/ftw/qqmlthread.cpp:155
#10 0x00007f752efb2643 in QThreadPrivate::start (arg=0x556a9090a110) at thread/qthread_unix.cpp:331
#11 0x00007f752df65609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007f752ec2f133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f7521270700 (LWP 2097)):
#0  0x00007f752cd72508 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f752cd24d99 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f752cd25312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f752cd254a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f752f1f3c8b in QEventDispatcherGlib::processEvents (this=0x7f751c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f752f197eab in QEventLoop::exec (this=this@entry=0x7f752126fbb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007f752efb1462 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f752fb7ff4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007f752efb2643 in QThreadPrivate::start (arg=0x7f752fc03d80) at thread/qthread_unix.cpp:331
#9  0x00007f752df65609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007f752ec2f133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f752920f700 (LWP 2090)):
#0  0x00007f752ec2299f in __GI___poll (fds=0x7f752920eae8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f752ddb0c1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f752ddb290a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f7529946228 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f752efb2643 in QThreadPrivate::start (arg=0x556a90807db0) at thread/qthread_unix.cpp:331
#5  0x00007f752df65609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f752ec2f133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f752a04c9c0 (LWP 2082)):
[KCrash Handler]
#4  0x00007f752f1ced4e in qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > (ptr=...) at kernel/qobject.cpp:4029
#5  QObject::d_func (this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:132
#6  QObject::setProperty (this=this@entry=0x0, name=name@entry=0x556a8f534868 "stage", value=...) at kernel/qobject.cpp:4030
#7  0x0000556a8f532f29 in SplashWindow::setStage (this=this@entry=0x556a90927a50, stage=0) at ./ksplash/ksplashqml/splashwindow.cpp:75
#8  0x0000556a8f531754 in SplashApp::adoptScreen (this=this@entry=0x7ffe9eb44070, screen=0x556a908fad80) at ./ksplash/ksplashqml/splashapp.cpp:137
#9  0x0000556a8f531f73 in SplashApp::SplashApp (this=0x7ffe9eb44070, argc=<optimized out>, argv=<optimized out>) at ./ksplash/ksplashqml/splashapp.cpp:74
#10 0x0000556a8f530dc7 in main (argc=<optimized out>, argv=0x7ffe9eb441c8) at ./ksplash/ksplashqml/main.cpp:60
[Inferior 1 (process 2082) detached]
Comment 4 aronkvh 2022-06-16 19:15:40 UTC
I'm not sure how helpful are these but here's another:

Application: ksplashqml (ksplashqml), signal: Segmentation fault

[New LWP 2078]
[New LWP 2081]
[New LWP 2082]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f510389499f in __GI___poll (fds=0x7ffc5498d078, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7f50fecb69c0 (LWP 2070))]

Thread 4 (Thread 0x7f50f57be700 (LWP 2082)):
#0  0x00007f510389499f in __GI___poll (fds=0x7f50ec004a60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f510199436e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f51019944a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5103e65c3b in QEventDispatcherGlib::processEvents (this=0x7f50ec000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f5103e09e5b in QEventLoop::exec (this=this@entry=0x7f50f57bdbc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f5103c23462 in QThread::exec (this=this@entry=0x556b936ec190) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f5103611689 in QQmlThreadPrivate::run (this=0x556b936ec190) at qml/ftw/qqmlthread.cpp:155
#7  0x00007f5103c24643 in QThreadPrivate::start (arg=0x556b936ec190) at thread/qthread_unix.cpp:331
#8  0x00007f5102bd4609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f51038a1133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f50fcfaa700 (LWP 2081)):
#0  __libc_disable_asynccancel () at ../sysdeps/unix/sysv/linux/x86_64/cancellation.S:85
#1  0x00007f51038949b3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:29
#2  0x00007f510199436e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f51019944a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5103e65c3b in QEventDispatcherGlib::processEvents (this=0x7f50f0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f5103e09e5b in QEventLoop::exec (this=this@entry=0x7f50fcfa9bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007f5103c23462 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f51047f1f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007f5103c24643 in QThreadPrivate::start (arg=0x7f5104875d80) at thread/qthread_unix.cpp:331
#9  0x00007f5102bd4609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007f51038a1133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f50fde79700 (LWP 2078)):
#0  0x00007f510389499f in __GI___poll (fds=0x7f50fde78ae8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f5102a1fc1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f5102a2190a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f50fe5b0398 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f5103c24643 in QThreadPrivate::start (arg=0x556b935dddc0) at thread/qthread_unix.cpp:331
#5  0x00007f5102bd4609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f51038a1133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f50fecb69c0 (LWP 2070)):
[KCrash Handler]
#4  0x00007f5103e40cfe in qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > (ptr=...) at kernel/qobject.cpp:4029
#5  QObject::d_func (this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:132
#6  QObject::setProperty (this=this@entry=0x0, name=name@entry=0x556b92b9a868 "stage", value=...) at kernel/qobject.cpp:4030
#7  0x0000556b92b98f19 in SplashWindow::setStage (this=this@entry=0x7f50f0014040, stage=0) at ./ksplash/ksplashqml/splashwindow.cpp:76
#8  0x0000556b92b9772c in SplashApp::adoptScreen (this=this@entry=0x7ffc5498df10, screen=0x556b936d0d50) at ./ksplash/ksplashqml/splashapp.cpp:133
#9  0x0000556b92b97f4b in SplashApp::SplashApp (this=0x7ffc5498df10, argc=<optimized out>, argv=<optimized out>) at ./ksplash/ksplashqml/splashapp.cpp:71
#10 0x0000556b92b96da7 in main (argc=<optimized out>, argv=0x7ffc5498e068) at ./ksplash/ksplashqml/main.cpp:61
[Inferior 1 (process 2070) detached]
Comment 5 aronkvh 2023-05-23 21:30:25 UTC
I haven't seen kcrash crash lately, so might be resolved?
Comment 6 aronkvh 2023-05-23 21:30:45 UTC
(In reply to aronkvh from comment #5)
> I haven't seen *ksplash crash lately, so might be resolved?
Comment 7 Nate Graham 2023-05-24 15:10:25 UTC
All right cool, let's re-open if and when it happens again.