Bug 497440

Summary: Task Manager freezes
Product: [Plasma] plasmashell Reporter: Andrew Chan <andrew.minchan>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: andrew.minchan, kdedev, nate, qydwhotmail
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andrew Chan 2024-12-14 01:12:32 UTC
SUMMARY
The Icon-Only Task Manager freezes randomly (clicking on the icons has no effect). 
Killing and restarting the plasma shell solves the problem, but this is a non-ideal solution.


STEPS TO REPRODUCE
This happens randomly, and I have no idea how to reproduce it.

OBSERVED RESULT
Icon-Only Task Manager freezes -- clicking on the icons has no effect.

EXPECTED RESULT
Clicking on the icons should allow me to switch between apps.

SOFTWARE/OS VERSIONS
OS: openSUSE Tumbleweed 20241210
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
I was just browsing the Internet when I noticed the problem. The freeze might have occurred earlier but I did not notice that.

Following are the logs I got from `journalctl -xe | grep plasmashell`. From the logs, it seems that the problem might be screen-related?  I have two monitors connected to my desktop. One is a regular monitor and the other is a headless HDMI monitor (a display emulator). When the freeze happened, I was only using the regular monitor with the headless one disabled. 

Dec 13 16:27:15 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:27:15 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:27:15 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:27:15 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:27:37 homecomputer plasmashell[3314]: QQmlVMEMetaObject: Internal error - attempted to evaluate a function in an invalid context
Dec 13 16:27:37 homecomputer plasmashell[3314]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:240: TypeError: Property 'modelIndex' of object Task_QMLTYPE_240(0x55f278590430) is not a function
Dec 13 16:27:37 homecomputer plasmashell[3314]: QQmlVMEMetaObject: Internal error - attempted to evaluate a function in an invalid context
Dec 13 16:27:37 homecomputer plasmashell[3314]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:240: TypeError: Property 'modelIndex' of object Task_QMLTYPE_240(0x55f277322150) is not a function
Dec 13 16:27:37 homecomputer plasmashell[3314]: QQmlVMEMetaObject: Internal error - attempted to evaluate a function in an invalid context
Dec 13 16:27:37 homecomputer plasmashell[3314]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:240: TypeError: Property 'modelIndex' of object Task_QMLTYPE_240(0x55f2787fd280) is not a function
Dec 13 16:27:37 homecomputer plasmashell[3314]: QQmlVMEMetaObject: Internal error - attempted to evaluate a function in an invalid context
Dec 13 16:27:37 homecomputer plasmashell[3314]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:240: TypeError: Property 'modelIndex' of object Task_QMLTYPE_240(0x55f272b41030) is not a function
Dec 13 16:27:37 homecomputer plasmashell[3314]: QQmlVMEMetaObject: Internal error - attempted to evaluate a function in an invalid context
Dec 13 16:27:37 homecomputer plasmashell[3314]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:240: TypeError: Property 'modelIndex' of object Task_QMLTYPE_240(0x55f2785c32b0) is not a function
Dec 13 16:27:37 homecomputer plasmashell[3314]: QQmlVMEMetaObject: Internal error - attempted to evaluate a function in an invalid context
Dec 13 16:27:37 homecomputer plasmashell[3314]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:240: TypeError: Property 'modelIndex' of object Task_QMLTYPE_240(0x55f27736d2a0) is not a function
Dec 13 16:27:37 homecomputer plasmashell[3314]: QQmlVMEMetaObject: Internal error - attempted to evaluate a function in an invalid context
Dec 13 16:27:37 homecomputer plasmashell[3314]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:240: TypeError: Property 'modelIndex' of object Task_QMLTYPE_240(0x55f276004e90) is not a function
Dec 13 16:27:37 homecomputer plasmashell[3314]: QQmlVMEMetaObject: Internal error - attempted to evaluate a function in an invalid context
Dec 13 16:27:37 homecomputer plasmashell[3314]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:240: TypeError: Property 'modelIndex' of object Task_QMLTYPE_240(0x55f273abdd90) is not a function
Dec 13 16:28:03 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:28:03 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:28:03 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:28:03 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:28:10 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:28:10 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:28:10 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Dec 13 16:28:10 homecomputer plasmashell[3314]: kde.plasmashell: requesting unexisting screen available rect -1
Comment 1 TraceyC 2025-01-13 22:31:39 UTC
Can you get a backtrace of what it's doing when it's hung?



Run gdb attach -p $(pidof XXXX_THE_APP_XXXX) in a terminal window while it's hung (Use `plasmashell` as the app)
If it says "--Type  for more, q to quit, c to continue without paging--" at the bottom of the terminal window, press the "c" key.
When you see a prompt that says "(gdb)", type "bt" and press the enter key.
If it says "--Type  for more, q to quit, c to continue without paging--" at the bottom of the terminal window, press the "c" key.
Copy-and-paste the contents of the terminal window into a comment here.

Thanks!
Comment 2 Bug Janitor Service 2025-01-28 03:47:20 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 3 Bug Janitor Service 2025-02-12 03:46:51 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.