Created attachment 170961 [details] backtrace Application: plasmashell (6.1.0) Qt Version: 6.7.2 Frameworks Version: 6.3.0 Operating System: Linux 6.9.5-arch1-1-ml x86_64 Windowing System: Wayland Distribution: Arch Linux DrKonqi: 6.1.0 [CoredumpBackend] -- Information about the crash: I had a brief power outage - my external monitor turned off and plasma crashed. The reporter is unsure if this crash is reproducible. -- Backtrace:
Thread 1 (Thread 0x74b12aa006c0 (LWP 1543)): [KCrash Handler] #5 QtWaylandClient::QWaylandWindow::waylandScreen (this=0x61fe6f5864b0) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:956 #6 QtWaylandClient::QWaylandWindow::devicePixelRatio (this=0x61fe6f5864b0) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:1519 #7 0x000074b183eccf0c in QtWaylandClient::QWaylandEglWindow::updateSurface (this=0x61fe6f5864b0, create=true) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:70 #8 0x000074b183ecd905 in QtWaylandClient::QWaylandGLContext::makeCurrent (this=this@entry=0x74b0b8002210, surface=<optimized out>) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:318 #9 0x000074b18b2adc28 in QOpenGLContext::makeCurrent (this=0x74b0b8001f60, surface=0x61fe6e8b8330) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qopenglcontext.cpp:664 #10 0x000074b18b46f112 in QRhiGles2::ensureContext(QSurface*) const [clone .constprop.0] (this=0x74b0b80018c0, surface=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/rhi/qrhigles2.cpp:632 #11 0x000074b18c218647 in QSGRenderThread::invalidateGraphics (this=0x61fe6f50af30, window=0x61fe6f264dd0, inDestructor=true) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:473 #12 QSGRenderThread::event (this=0x61fe6f50af30, e=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:368 #13 0x000074b18c219f9a in QSGRenderThread::processEventsAndWaitForMore (this=0x61fe6f50af30) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:869 #14 QSGRenderThread::run (this=0x61fe6f50af30) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:991 #15 0x000074b18aac9747 in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:326 #16 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:262 #17 QThreadPrivate::start (arg=0x61fe6f50af30) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:285 #18 0x000074b18a2a6ded in start_thread (arg=<optimized out>) at pthread_create.c:447 #19 0x000074b18a32a0dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
*** Bug 489065 has been marked as a duplicate of this bug. ***
*** Bug 489211 has been marked as a duplicate of this bug. ***
*** Bug 489309 has been marked as a duplicate of this bug. ***
*** Bug 489369 has been marked as a duplicate of this bug. ***
*** Bug 489363 has been marked as a duplicate of this bug. ***
*** Bug 489072 has been marked as a duplicate of this bug. ***
Hello, I can confirm this is a bug. I get crashes in plasmashell whenever my primary screen turns off - including when the system sleeps. New issue in 6.1. This is particularly bad for me as my primary screen has a firmware bug causing it to appear disconnected to the video card even when it's turned off via the onscreen display. So when I turn my main screen off and then back on, plasmashell crashes as it appears as if I had unplugged it and replugged it. My stack trace is the same as the one already in the thread。
*** Bug 489419 has been marked as a duplicate of this bug. ***
*** Bug 489370 has been marked as a duplicate of this bug. ***
*** Bug 489535 has been marked as a duplicate of this bug. ***
*** Bug 489458 has been marked as a duplicate of this bug. ***
*** Bug 488730 has been marked as a duplicate of this bug. ***
Created attachment 171328 [details] Backtrace from plasmashell 6.1.2 I updated to KDE Plasma Version: 6.1.2 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.2 and the bug still persist.
Created attachment 171332 [details] Kde crashmanager backtrace logfile I looked at the kde crashmanager and saved this logfile, maybe it's helpful.
I have the same issue on a a dual monitor setup. Once the automatic power saving enters after 10 min, my system crashes completely. Doing a manual shutdown of the monitors will trigger the same behavior. For the time being, I disabled all energy saving features. KDE Plasma: 6.1.1 KDE Frameworks: 6.3.0 Qt : 6.7.2 Kernel : 6.6.35-rt34-x64v-rt-1-xanmod1 Session type : Wayland Backtrace: #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007d35438a8eb3 in __pthread_kill_internal (threadid=<optimized out>, signo=11) at pthread_kill.c:78 #2 0x00007d3543850a30 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26 #3 0x00007d3545ebd643 in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kcrash/kcrash-6.3.0/src/kcrash.cpp:597 #4 <signal handler called> #5 QtWaylandClient::QWaylandWindow::waylandScreen (this=0x5a9d4e8c7820) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:956 #6 QtWaylandClient::QWaylandWindow::devicePixelRatio (this=0x5a9d4e8c7820) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:1519 #7 0x00007d353d2b2f0c in QtWaylandClient::QWaylandEglWindow::updateSurface (this=0x5a9d4e8c7820, create=true) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:70 #8 0x00007d353d2b3905 in QtWaylandClient::QWaylandGLContext::makeCurrent (this=this@entry=0x7d34dc2866e0, surface=<optimized out>) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:318 #9 0x00007d3543eadc28 in QOpenGLContext::makeCurrent (this=0x7d34dc2fe120, surface=0x5a9d4dd719a0) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qopenglcontext.cpp:664 #10 0x00007d354406f112 in QRhiGles2::ensureContext(QSurface*) const [clone .constprop.0] (this=0x7d34dc2fa4b0, surface=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/rhi/qrhigles2.cpp:632 #11 0x00007d3544e18647 in QSGRenderThread::invalidateGraphics (this=0x5a9d4bf51020, window=0x5a9d4eebf900, inDestructor=true) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:473 #12 QSGRenderThread::event (this=0x5a9d4bf51020, e=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:368 #13 0x00007d3544e19f9a in QSGRenderThread::processEventsAndWaitForMore (this=0x5a9d4bf51020) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:869 #14 QSGRenderThread::run (this=0x5a9d4bf51020) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:991 #15 0x00007d35434c9747 in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:326 #16 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:262 #17 QThreadPrivate::start (arg=0x5a9d4bf51020) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:285 #18 0x00007d35438a6ded in start_thread (arg=<optimized out>) at pthread_create.c:447 #19 0x00007d354392a0dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
*** Bug 489639 has been marked as a duplicate of this bug. ***
*** Bug 489655 has been marked as a duplicate of this bug. ***
I've locked my session last night with sleep savings disabled and without turning off my monitors and no issue to report this morning. Will try again tonight while manually turning off my monitors.
Session locked, monitors manually shut down using power button last night and no issue this morning. At this point, I would suspect something with power saving, suspend or sleep actions.
For me there is no crash after resuming from suspend (sleep) it only appears when reactivating the screen from screen blank.
In progress with https://codereview.qt-project.org/c/qt/qtwayland/+/574934
*** Bug 489803 has been marked as a duplicate of this bug. ***
Created attachment 171427 [details] qtwayland-6.7.2 patch I made a patch for qtwayland-6.7.2, it compiles fine but it keeps crashing. Don't know if a made something wrong creating the patch. I will post a new backtrace when it crashes the next time.
Created attachment 171430 [details] New plasmashell log with patched qtwayland-6.7.2 Here is a new backtrace from plasmashill with the patched version of qtwayland-6.7.2.
Created attachment 171494 [details] Plasmashell log with experimental qt-6.7.3 I have updated qt to qt-6.7.9999 (latest 6.7.3) for testing if it crashes, 2 days before. Today plasmashell crashed again, so i include the backtrace here. Today i will go back to qt-6.7.2, because i don't want experimental stuff on my pc.
I forgot to reopen the bug.
The fix is not merged in 6.7 yet https://codereview.qt-project.org/c/qt/qtwayland/+/574983
(In reply to Antonio Rojas from comment #28) > The fix is not merged in 6.7 yet > https://codereview.qt-project.org/c/qt/qtwayland/+/574983 Ok, then it's my fault, sorry for this.
(In reply to ollilein from comment #29) > (In reply to Antonio Rojas from comment #28) > > The fix is not merged in 6.7 yet > > https://codereview.qt-project.org/c/qt/qtwayland/+/574983 > > Ok, then it's my fault, sorry for this. No, you applied the patch correctly. Compare the first stacktraces and the current ones - they're rather different. Before applying the patch, we had a segfault in QWaylandWindow::waylandScreen. With this patch, this is solved but we get a crash due to a null pointer reference in QWaylandWindow::handleScreensChanged. This issue can be considered solved, but there's another one. Bug 489072 describes the problem you have right now. Take a look at this comment: https://bugs.kde.org/show_bug.cgi?id=489072#c2
*** Bug 489969 has been marked as a duplicate of this bug. ***
*** Bug 489949 has been marked as a duplicate of this bug. ***
*** Bug 489930 has been marked as a duplicate of this bug. ***
*** Bug 489871 has been marked as a duplicate of this bug. ***
*** Bug 489991 has been marked as a duplicate of this bug. ***
*** Bug 490000 has been marked as a duplicate of this bug. ***
*** Bug 489974 has been marked as a duplicate of this bug. ***
*** Bug 490018 has been marked as a duplicate of this bug. ***
*** Bug 489214 has been marked as a duplicate of this bug. ***
(In reply to Kacper Koniuszy from comment #30) > (In reply to ollilein from comment #29) > > (In reply to Antonio Rojas from comment #28) > > > The fix is not merged in 6.7 yet > > > https://codereview.qt-project.org/c/qt/qtwayland/+/574983 > > > > Ok, then it's my fault, sorry for this. > > No, you applied the patch correctly. Compare the first stacktraces and the > current ones - they're rather different. > > Before applying the patch, we had a segfault in > QWaylandWindow::waylandScreen. With this patch, this is solved but we get a > crash due to a null pointer reference in > QWaylandWindow::handleScreensChanged. > > This issue can be considered solved, but there's another one. Bug 489072 > describes the problem you have right now. Take a look at this comment: > https://bugs.kde.org/show_bug.cgi?id=489072#c2 Thank you for the hint with the other bug :-)
*** Bug 490023 has been marked as a duplicate of this bug. ***
*** Bug 490079 has been marked as a duplicate of this bug. ***
Can confirm fix. I'm now getting the QWaylandWindow::handleScreensChanged error instead of the QWaylandWindow::waylandScreen error. Qt 6.7.2 Plasma 6.1.2 Frameworks 6.3.0 Kernel 6.9.8-arch1-1 Arch Linux Wayland
Yeah, that one is Bug 489072.
*** Bug 490253 has been marked as a duplicate of this bug. ***
*** Bug 490258 has been marked as a duplicate of this bug. ***
*** Bug 490312 has been marked as a duplicate of this bug. ***
*** Bug 490314 has been marked as a duplicate of this bug. ***
*** Bug 490332 has been marked as a duplicate of this bug. ***
*** Bug 490343 has been marked as a duplicate of this bug. ***
*** Bug 490424 has been marked as a duplicate of this bug. ***
*** Bug 490621 has been marked as a duplicate of this bug. ***
*** Bug 490581 has been marked as a duplicate of this bug. ***
*** Bug 490662 has been marked as a duplicate of this bug. ***
*** Bug 490386 has been marked as a duplicate of this bug. ***
*** Bug 490709 has been marked as a duplicate of this bug. ***
*** Bug 490753 has been marked as a duplicate of this bug. ***
*** Bug 490807 has been marked as a duplicate of this bug. ***
*** Bug 490857 has been marked as a duplicate of this bug. ***
*** Bug 490856 has been marked as a duplicate of this bug. ***
*** Bug 490879 has been marked as a duplicate of this bug. ***
*** Bug 490974 has been marked as a duplicate of this bug. ***
*** Bug 491089 has been marked as a duplicate of this bug. ***
*** Bug 491148 has been marked as a duplicate of this bug. ***
*** Bug 491161 has been marked as a duplicate of this bug. ***