Bug 493664 - Plasma Crash after screen wake
Summary: Plasma Crash after screen wake
Status: RESOLVED DUPLICATE of bug 494224
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: git-stable-Plasma/6.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-25 23:40 UTC by gabriel
Modified: 2024-10-16 17:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
/var/log/messages (22.38 KB, text/plain)
2024-09-25 23:40 UTC, gabriel
Details
Crash Dump from coredumpctl gdb (10.38 KB, text/plain)
2024-09-26 18:50 UTC, gabriel
Details
Most recent system crashes (136.71 KB, image/png)
2024-09-30 21:29 UTC, gabriel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gabriel 2024-09-25 23:40:04 UTC
Created attachment 174083 [details]
/var/log/messages

SUMMARY
I leave my desktop on at all times. More often than not, the session will not be able to restart after the screen goes to sleep. While using the system, Dolphin will also crash if I have it open. 
I'm not entirely sure which logs would be applicable, if anyone could point me in the right direction, I would appreciate it. Since the two issues may be related, and I just had a Dolphin crash, I'll be attaching that log to this report.

STEPS TO REPRODUCE
1. Put system to sleep
2. Wait 10-15 minutes
3. Plasmashell will either not be loaded, or cannot get picture on monitor at all.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.10-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 61.9 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XT
Manufacturer: ASRock
Product Name: X670E Steel Legend

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-09-26 17:54:04 UTC
If something crashed, we need a backtrace of it so we can figure out what's going on. Can you please attach a backtrace of the crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?

Thanks!
Comment 2 gabriel 2024-09-26 18:50:20 UTC
Created attachment 174117 [details]
Crash Dump from coredumpctl gdb

I attached the crash dump. Let me know if that helps
Comment 3 Nate Graham 2024-09-26 19:38:07 UTC
Thanks. Pasting inline for searchability:

#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007f1eb1ca86d3 in __pthread_kill_internal (threadid=<optimized out>, signo=11) at pthread_kill.c:78
#2  0x00007f1eb1c4fc4e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007f1eb48051a2 in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kf6-kcrash-6.6.0-1.fc40.x86_64/src/kcrash.cpp:596
#4  0x00007f1eb1c4fd00 in <signal handler called> () at /lib64/libc.so.6
#5  0x00007f1eb471aa00 in std::__atomic_base<int>::load (this=0x2e00000004, __m=std::memory_order::relaxed, this=<optimized out>, __m=<optimized out>) at /usr/include/c++/14/bits/atomic_base.h:501
#6  QAtomicOps<int>::loadRelaxed<int> (_q_value=<error reading variable: Cannot access memory at address 0x2e00000004>, _q_value=<optimized out>) at /usr/include/qt6/QtCore/qatomic_cxx11.h:202
#7  QBasicAtomicInteger<int>::loadRelaxed (this=0x2e00000004, this=<optimized out>) at /usr/include/qt6/QtCore/qbasicatomic.h:36
#8  QWeakPointer<QObject>::internalData (this=0x55a51f7f5be0) at /usr/include/qt6/QtCore/qsharedpointer_impl.h:752
#9  QPointer<Solid::Ifaces::Device>::data (this=0x55a51f7f5be0) at /usr/include/qt6/QtCore/qpointer.h:74
#10 Solid::DevicePrivate::backendObject (this=0x55a51f7f5bb0) at /usr/src/debug/kf6-solid-6.6.0-1.fc40.x86_64/src/solid/devices/frontend/device_p.h:37
#11 Solid::Device::isValid (this=this@entry=0x7ffe21d7d258) at /usr/src/debug/kf6-solid-6.6.0-1.fc40.x86_64/src/solid/devices/frontend/device.cpp:65
#12 0x00007f1eb4d26439 in KFilePlacesItem::deviceData (this=0x55a51f7972a0, role=110940459) at /usr/src/debug/kf6-kio-6.6.0-1.fc40.x86_64/src/filewidgets/kfileplacesitem.cpp:321
#13 0x00007f1eb4d2e32d in KFilePlacesItem::data (this=0x55a51f7972a0, role=110940459) at /usr/src/debug/kf6-kio-6.6.0-1.fc40.x86_64/src/filewidgets/kfileplacesitem.cpp:222
#14 KFilePlacesModel::data (this=this@entry=0x55a51f0652e0, index=..., role=role@entry=110940459) at /usr/src/debug/kf6-kio-6.6.0-1.fc40.x86_64/src/filewidgets/kfileplacesmodel.cpp:622
#15 0x000055a50395250c in DolphinPlacesModel::data (this=0x55a51f0652e0, index=..., role=110940459) at /usr/src/debug/dolphin-24.08.0-1.fc40.x86_64/src/dolphinplacesmodelsingleton.cpp:94
#16 0x00007f1eb4d2dafe in KFilePlacesModel::url (this=this@entry=0x55a51f0652e0, index=...) at /usr/src/debug/kf6-kio-6.6.0-1.fc40.x86_64/src/filewidgets/kfileplacesmodel.cpp:468
#17 0x000055a50394ca91 in DolphinPlacesModel::isTrash (this=this@entry=0x55a51f0652e0, index=...) at /usr/src/debug/dolphin-24.08.0-1.fc40.x86_64/src/dolphinplacesmodelsingleton.cpp:117
#18 0x000055a50395257b in DolphinPlacesModel::data (this=0x55a51f0652e0, index=..., role=1) at /usr/src/debug/dolphin-24.08.0-1.fc40.x86_64/src/dolphinplacesmodelsingleton.cpp:73
#19 0x00007f1eb4d3e2c6 in KFilePlacesViewDelegate::paint (this=0x55a51ef8a830, painter=0x7ffe21d7d920, option=<optimized out>, index=...) at /usr/src/debug/kf6-kio-6.6.0-1.fc40.x86_64/src/filewidgets/kfileplacesview.cpp:182
#20 0x00007f1eb38cf376 in QListView::paintEvent (this=this@entry=0x55a51f2565f0, e=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/itemviews/qlistview.cpp:1075
#21 0x00007f1eb4d444fd in KFilePlacesView::paintEvent (this=0x55a51f2565f0, event=<optimized out>) at /usr/src/debug/kf6-kio-6.6.0-1.fc40.x86_64/src/filewidgets/kfileplacesview.cpp:1579
#22 0x00007f1eb35ed278 in QWidget::event (this=this@entry=0x55a51f2565f0, event=event@entry=0x7ffe21d7df30) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:9405
#23 0x00007f1eb3689d08 in QFrame::event (this=0x55a51f2565f0, e=0x7ffe21d7df30) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/widgets/qframe.cpp:521
#24 0x00007f1eb2396b8e in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x55a51f253820, event=event@entry=0x7ffe21d7df30) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1281
#25 0x00007f1eb358b208 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55a51f253820, e=0x7ffe21d7df30) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3281
#26 0x00007f1eb2396e88 in QCoreApplication::notifyInternal2 (receiver=0x55a51f253820, event=0x7ffe21d7df30) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1142
#27 0x00007f1eb23970fd in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1597
#28 0x00007f1eb35e39ec in QWidgetPrivate::sendPaintEvent (this=this@entry=0x55a51f256d10, toBePainted=...) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:5650
#29 0x00007f1eb35e43d1 in QWidgetPrivate::drawWidget (this=this@entry=0x55a51f256d10, pdev=pdev@entry=0x55a51f558bd8, rgn=..., offset=..., flags=flags@entry=..., sharedPainter=sharedPainter@entry=0x0, repaintManager=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:5600
#30 0x00007f1eb35e58b1 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x55a51f256670, pdev=pdev@entry=0x55a51f558bd8, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x55a51f2c30e0) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:5779
#31 0x00007f1eb35e3fcd in QWidgetPrivate::drawWidget (this=this@entry=0x55a51f256670, pdev=pdev@entry=0x55a51f558bd8, rgn=..., offset=..., flags=..., flags@entry=..., sharedPainter=sharedPainter@entry=0x0, repaintManager=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:5641
#32 0x00007f1eb35e58b1 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x55a51f08d380, pdev=pdev@entry=0x55a51f558bd8, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x55a51f2c30e0) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:5779
#33 0x00007f1eb35e3fcd in QWidgetPrivate::drawWidget (this=this@entry=0x55a51f08d380, pdev=pdev@entry=0x55a51f558bd8, rgn=..., offset=..., flags=..., flags@entry=..., sharedPainter=sharedPainter@entry=0x0, repaintManager=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:5641
#34 0x00007f1eb35e58b1 in QWidgetPrivate::paintSiblingsRecursive (this=0x55a51eec0a60, pdev=0x55a51f558bd8, siblings=<optimized out>, index=<optimized out>, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x55a51f2c30e0) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:5779
#35 0x00007f1eb35e56f1 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x55a51eec0a60, pdev=pdev@entry=0x55a51f558bd8, siblings=..., index=48, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x55a51f2c30e0) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:5765
#36 0x00007f1eb35e3fcd in QWidgetPrivate::drawWidget (this=this@entry=0x55a51eec0a60, pdev=0x55a51f558bd8, rgn=..., offset=..., flags=..., flags@entry=..., sharedPainter=sharedPainter@entry=0x0, repaintManager=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:5641
#37 0x00007f1eb35f9a75 in QWidgetRepaintManager::paintAndFlush (this=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidgetrepaintmanager.cpp:907
#38 0x00007f1eb35ed44a in QWidget::event (this=0x55a51ef34680, event=0x55a51f5babd0) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:9350
#39 0x00007f1eb46209c0 in KXmlGuiWindow::event (this=0x55a51ef34680, ev=0x55a51f5babd0) at /usr/src/debug/kf6-kxmlgui-6.6.0-1.fc40.x86_64/src/kxmlguiwindow.cpp:221
#40 0x00007f1eb358b218 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55a51ef34680, e=0x55a51f5babd0) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3287
#41 0x00007f1eb2396e88 in QCoreApplication::notifyInternal2 (receiver=0x55a51ef34680, event=0x55a51f5babd0) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1142
#42 0x00007f1eb23970ed in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1583
#43 0x00007f1eb239ac51 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55a51ebd0040) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1940
#44 0x00007f1eb239aefd in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1797
#45 0x00007f1eb26859ef in postEventSourceDispatch (s=0x55a51ebd1910) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:244
#46 0x00007f1eaf30ee8c in g_main_dispatch (context=0x7f1e98000f00) at ../glib/gmain.c:3344
#47 g_main_context_dispatch_unlocked (context=0x7f1e98000f00) at ../glib/gmain.c:4152
#48 0x00007f1eaf370c98 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7f1e98000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4217
#49 0x00007f1eaf310383 in g_main_context_iteration (context=0x7f1e98000f00, may_block=1) at ../glib/gmain.c:4282
#50 0x00007f1eb26851a3 in QEventDispatcherGlib::processEvents (this=0x55a51ebe79b0, flags=...) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#51 0x00007f1eb23a3bc3 in QEventLoop::exec (this=this@entry=0x7ffe21d7f340, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/global/qflags.h:34
#52 0x00007f1eb239fa7c in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/global/qflags.h:74
#53 0x00007f1eb2bd66ed in QGuiApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/kernel/qguiapplication.cpp:1926
#54 0x00007f1eb358b189 in QApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qapplication.cpp:2555
#55 0x000055a50391e85d in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin-24.08.0-1.fc40.x86_64/src/main.cpp:273
Comment 4 Nate Graham 2024-09-26 19:43:21 UTC
The backtrace is for Dolphin, not Plasma. This is probably a separate issue we should debug separately after the Plasma one. As for the Plasma issue, it looks like Plasma isn't crashing but rather exiting. This makes me suspect it's a manifestation of Bug 493572.

To verify that, can you run `plasmashell --replace` in a terminal window, then reproduce the bug by letting the system go to sleep and waking it up. If all goes well (or rather — badly), the plasmashell process will not be running anymore. Once that happens, please copy and paste the text that it pasted to the terminal window.

Thanks!
Comment 5 gabriel 2024-09-30 21:29:01 UTC
I haven't been able to recreate the plasma shell from crashing, but looks like Dolphin continues to crash. I attached a screenshot of the most recent crashes. 
Are we thinking plasmashell crashing could be related to Dolphin crashing?
Comment 6 gabriel 2024-09-30 21:29:46 UTC
Created attachment 174244 [details]
Most recent system crashes
Comment 7 Nate Graham 2024-10-03 21:47:32 UTC
In general, Plasma can't make apps crash. KWin can, though, but it doesn't look like that's happening.

Can you attach symbolicated backtraces for fortitray, krunner, kde connect, and wireplumber? We already have a Dolphin one. Maybe they will have clues in them that point to a common root cause.
Comment 8 gabriel 2024-10-07 00:23:17 UTC
Do the details from bug: 
https://bugs.kde.org/show_bug.cgi?id=494224
Provide appropriate details?
Comment 9 Nate Graham 2024-10-16 17:10:33 UTC
Aha indeed, looks like the same underlying crash. Can you answer Akseli's question in Bug 494224? Thanks!

*** This bug has been marked as a duplicate of bug 494224 ***