Bug 492634 - plasmashell freezes
Summary: plasmashell freezes
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.4
Platform: Other Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-04 06:27 UTC by Ondřej Niesner
Modified: 2024-10-08 15:35 UTC (History)
5 users (show)

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


Attachments
gdb (39.18 KB, text/plain)
2024-09-05 15:22 UTC, Ondřej Niesner
Details
drkonqi (112.03 KB, text/vnd.kde.kcrash-report)
2024-09-05 15:22 UTC, Ondřej Niesner
Details
media player freezing plasmashell (2.01 MB, video/mp4)
2024-09-06 11:44 UTC, Ondřej Niesner
Details
backtrace (529.75 KB, text/plain)
2024-10-04 16:52 UTC, walmartshopper
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondřej Niesner 2024-09-04 06:27:51 UTC
I got a issue that my desktop freezes randomly. I don’t know how to reproduce it but it’s really annoying. I am not able click on anything, all completly frozen. Both monitors are affected. Right click, left on desktop doesn't work, panel, all widgets on desktop or on panel are frozen. It’s really annoying when you realize your clock widget is frozen.
Alt tabbing, krunner works normally.

Restarting plasmashell using systemctl --user restart plasma-plasmashell.service, takes few minutes. Quicker is just to kill the process.

Also when that happens the plasmashell process is using 100% one core of  my cpu. There's noting in logs at the time when it happens. I can tell by time of my clock widget when it's frozen.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6700 XT
Comment 1 David Redondo 2024-09-04 08:20:33 UTC
This is not actionable. 

We need a backtrace of plasmashell when it hangs:
- attach gdb 
- crash it manually and paste it via drkonqi
Comment 2 Ondřej Niesner 2024-09-05 15:22:13 UTC
Created attachment 173346 [details]
gdb
Comment 3 Ondřej Niesner 2024-09-05 15:22:54 UTC
Created attachment 173347 [details]
drkonqi
Comment 4 Ondřej Niesner 2024-09-06 11:38:10 UTC
I managed to reproduce the issue. It has to do something with media player that I am using on my panel. Playing some specific songs on spotify freezes the plasmashell. I listen to spotify a lot so that why it happened randomly.  I managed to reproduce it with this exact song https://open.spotify.com/track/4GFpaMQrDhrrOQ7CUzNTiU?si=2d576fdadb4043c8

It only happens when the media player is on the panel. On desktop it's fine.
I  recorded a video of that happening.
Comment 5 Ondřej Niesner 2024-09-06 11:44:15 UTC
Created attachment 173379 [details]
media player freezing plasmashell
Comment 6 Bug Janitor Service 2024-09-21 03:46:48 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 TraceyC 2024-09-26 22:49:17 UTC
Searchable trace

Thread 1 (Thread 0x72ec81761a00 (LWP 233627)):
[KCrash Handler]
#5  __GI___fstatat64 (fd=-100, file=0x72ec87fc0437 "/etc/localtime", buf=0x7ffe09d9d1d0, flag=0) at ../sysdeps/unix/sysv/linux/fstatat64.c:159
#6  0x000072ec87ee54b3 in __tzfile_read (file=file@entry=0x72ec87fc0437 "/etc/localtime", extra=extra@entry=0, extrap=extrap@entry=0x0) at tzfile.c:161
#7  0x000072ec87ee5011 in tzset_internal (always=always@entry=1) at tzset.c:405
#8  0x000072ec87ee5153 in __tzset () at tzset.c:551
#9  0x000072ec87ee3de5 in __GI_mktime (tp=0x7ffe09d9d410) at mktime.c:541
#10 0x000072ec87a4a573 in qMkTime (when=0x7ffe09d9d410) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qtenvironmentvariables.cpp:360
#11 (anonymous namespace)::MkTimeResult::MkTimeResult (this=0x7ffe09d9d410, prior=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/time/qlocaltime.cpp:69
#12 (anonymous namespace)::resolveLocalTime (local=<optimized out>, resolve=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/time/qlocaltime.cpp:369
#13 0x000072ec87a47b23 in QLocalTime::mapLocalTime (local=1725556125993, resolve=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/time/qlocaltime.cpp:576
#14 QDateTimePrivate::localStateAtMillis (millis=1725556125993, resolve=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/time/qdatetime.cpp:3000
#15 0x000072ec87a4c0a7 in QDateTime::toMSecsSinceEpoch (this=this@entry=0x7ffe09d9d6e0) at /usr/src/debug/qt6-base/qtbase/src/corelib/time/qdatetime.cpp:4460
#16 0x000072ec87a4c1ed in QDateTime::toSecsSinceEpoch (this=this@entry=0x7ffe09d9d6e0) at /usr/src/debug/qt6-base/qtbase/src/corelib/time/qdatetime.cpp:4495
#17 0x000072ec899bd0f0 in KSvg::ImageSetPrivate::findInCache (this=0x72ec6c001b30, key=..., pix=..., lastModified=1723016298) at /usr/src/debug/ksvg/ksvg-6.5.0/src/ksvg/private/imageset_p.cpp:614
#18 0x000072ec899aec4c in KSvg::SvgPrivate::findInCache (this=<optimized out>, elementId=..., ratio=1, s=...) at /usr/src/debug/ksvg/ksvg-6.5.0/src/ksvg/svg.cpp:599
#19 0x000072ec899af3bd in KSvg::Svg::image (this=<optimized out>, size=..., elementID=...) at /usr/src/debug/ksvg/ksvg-6.5.0/src/ksvg/svg.cpp:901
#20 0x000072ec7345884d in KSvg::SvgItem::updatePolish (this=0x5ff8a28ba4d0) at /usr/src/debug/ksvg/ksvg-6.5.0/src/declarativeimports/svgitem.cpp:253
#21 0x000072ec892469ca in QQuickWindowPrivate::polishItems (this=0x5ff8a1ab3640) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickwindow.cpp:369
#22 0x000072ec89416491 in QSGThreadedRenderLoop::polishAndSync (this=0x5ff8a0f28b70, w=0x5ff8a5b64c00, inExpose=false) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1616
#23 0x000072ec8924e130 in QQuickWindow::event (this=this@entry=0x5ff8a190f930, event=event@entry=0x7ffe09d9e200) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickwindow.cpp:1600
#24 0x00005ff86381ec2c in PanelView::event (this=0x5ff8a190f930, e=0x7ffe09d9e200) at /usr/src/debug/plasma-workspace/plasma-workspace-6.1.4/shell/panelview.cpp:1233
#25 0x000072ec89afc8cc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5ff8a190f930, e=0x7ffe09d9e200) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3287
#26 0x000072ec87945aa8 in QCoreApplication::notifyInternal2 (receiver=0x5ff8a190f930, event=0x7ffe09d9e200) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1142
#27 0x000072ec87945aed in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1583
#28 0x000072ec881be0fc in QPlatformWindow::deliverUpdateRequest (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qplatformwindow.cpp:792
#29 0x000072ec8798d89f in QObject::event (this=0x5ff8a1ab26e0, e=0x5ff8a4b70ac0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1452
#30 0x000072ec89afc8cc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5ff8a1ab26e0, e=0x5ff8a4b70ac0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3287
#31 0x000072ec87945aa8 in QCoreApplication::notifyInternal2 (receiver=0x5ff8a1ab26e0, event=event@entry=0x5ff8a4b70ac0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1142
#32 0x000072ec87945e6b in QCoreApplication::sendEvent (receiver=<optimized out>, event=0x5ff8a4b70ac0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1583
#33 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5ff8a0459ba0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1940
#34 0x000072ec87baa00c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1797
#35 postEventSourceDispatch (s=0x5ff8a0488c60) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:244
#36 0x000072ec865fe299 in g_main_dispatch (context=0x72ec7c000f00) at ../glib/glib/gmain.c:3344
#37 0x000072ec86660ec7 in g_main_context_dispatch_unlocked (context=0x72ec7c000f00) at ../glib/glib/gmain.c:4152
#38 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x72ec7c000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#39 0x000072ec865fd795 in g_main_context_iteration (context=0x72ec7c000f00, may_block=1) at ../glib/glib/gmain.c:4282
#40 0x000072ec87ba82bd in QEventDispatcherGlib::processEvents (this=0x5ff8a049dc70, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#41 0x000072ec8794ff66 in QEventLoop::processEvents (this=0x7ffe09d9e6c0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100
#42 QEventLoop::exec (this=0x7ffe09d9e6c0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:182
#43 0x000072ec8794a11d in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#44 0x000072ec89af86aa in QApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2555
#45 0x00005ff8637fad86 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-6.1.4/shell/main.cpp:188
Comment 8 walmartshopper 2024-10-02 16:39:00 UTC
Also affected.  I have the media player widget on my panel and have spotify playing all day, and plasma has been hanging several times a day while I'm working.  Will remove media player from the panel for now.

Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.1-1-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 24 × 13th Gen Intel® Core™ i7-13700KF
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: ASUS
Comment 9 TraceyC 2024-10-03 19:33:18 UTC
(In reply to walmartshopper from comment #8)
> Also affected. 

Different crashes might have different causes, even if the symptoms look similar. To determine if you're affected by the same crash, we need more information. 

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](https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl)?

Thanks!
Comment 10 walmartshopper 2024-10-04 16:52:45 UTC
Created attachment 174428 [details]
backtrace
Comment 11 walmartshopper 2024-10-04 16:57:34 UTC
gdb.txt attached.  It was my first time doing a backtrace, and I followed the directions but my backtrace looks different than Ondrej's, so I'm not sure if I did it correctly.

I will say that plasmashell stopped crashing after I removed the media player widget from the panel, and when trying to generate a backtrace it crashed within a minute or two of adding the media player widget back to the panel.
Comment 12 TraceyC 2024-10-04 18:55:42 UTC
(In reply to walmartshopper from comment #11)
> gdb.txt attached.  It was my first time doing a backtrace, and I followed
> the directions but my backtrace looks different than Ondrej's, so I'm not
> sure if I did it correctly.
> 
> I will say that plasmashell stopped crashing after I removed the media
> player widget from the panel, and when trying to generate a backtrace it
> crashed within a minute or two of adding the media player widget back to the
> panel.

Yep, the freeze you're seeing is a different issue. I don't see an open bug report about the same thing. Could I ask you to open a new bug report and attach your backtrace to it?  
Product - Plasmashell
Component - Media Player

Thanks!