Summary: | Crashing when creating multiple windows of same app. | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | OrakMoya <orakmoyaofficial> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | kde, sitter |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.27.10 | ||
Target Milestone: | 1.0 | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
OrakMoya
2024-02-26 08:59:48 UTC
Edited title as I seem to have found the cause. Plasmashell crashes when trying to group a newly created window of an app with an already existing window in the task manager. The easiest way for me to reproduce is to detach a tab from firefox, which causes a crash. After staring at the code for a bit I am of the opinion that this takeAt is unsafe https://invent.kde.org/plasma/plasma-workspace/-/blob/5de0f7f4599dbcc294ecd1f5a4bbfa122db7e518/libtaskmanager/taskgroupingproxymodel.cpp#L148 We are forward iterating, so if j is not at the end we'll break the offset of j. After that a crash may manifest at any time. Trouble is I can't quite reproduce the crash because for me j is always at the end so things don't actually get corrupted. *** This bug has been marked as a duplicate of bug 474768 *** |