Bug 489411 - Plasmashell crashes, possibly after closing a window with children windows
Summary: Plasmashell crashes, possibly after closing a window with children windows
Status: RESOLVED DUPLICATE of bug 488596
Alias: None
Product: plasmashell
Classification: Plasma
Component: Window List (show other bugs)
Version: 6.1.1
Platform: Other Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-28 23:54 UTC by Jonah Brüchert
Modified: 2024-07-03 00:16 UTC (History)
3 users (show)

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


Attachments
Backtrace (15.05 KB, text/plain)
2024-06-28 23:54 UTC, Jonah Brüchert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonah Brüchert 2024-06-28 23:54:23 UTC
Created attachment 171155 [details]
Backtrace

First of all, I didn't experience this bug myself, I just saw it on someone elses computer and debugged it somewhat.

SUMMARY
Plasmashell crashes

The backtrace is the same as this sentry report: https://crash-reports.kde.org/organizations/kde/issues/38215/?project=9&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=90d&stream_index=9

The backtrace is attached below for reference.


My current theory is this:
A window that still has children windows is being closed.

The function in which this crashes is the lambda connected to &PlasmaWindow::parentWindowChanged in waylandtasksmodel.cpp:635.

The lambda is only invoked, because QObject::destroyed is connected to &PlasmaWindow::parentWindowChanged in waylandtasksmodel:320

Qt does a direct connection here, so then parentWindowChanged is invoked as part of the destructor of PlasmaWindow, which is probably not what's wanted here. Possibly a QueuedConnection would fix this.

My theory is that the window that is being deleted is accessed by the code called in the result of the destructor.

I don't have a proper setup to test my theory right now.


STEPS TO REPRODUCE
Currently unknown


SOFTWARE/OS VERSIONS
KDE Plasma Version:  6.1.1
Comment 1 Nate Graham 2024-07-03 00:16:33 UTC

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