Summary: | systemsettings crashes on close while DeviceAutoMounter KCM is open | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Nicolas Fella <nicolas.fella> |
Component: | kcm_deviceautomounter | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | nate, tdfischer |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-desktop/-/commit/19bae96a8c51118bad5c60ad976eacf4c0e5b7fb | Version Fixed In: | 6.2.0 |
Sentry Crash Report: |
Description
Nicolas Fella
2024-03-29 00:20:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2539 Git commit 9828adfbbf779ed8d55747dd50c8d5211a4a6479 by Nate Graham, on behalf of Nicolas Fella. Committed on 25/09/2024 at 17:25. Pushed by ngraham into branch 'master'. [kcms/automounter] Fix crash on close The KCM widget and its children are destroyed before the KCModule. Therefore by the time we call saveLayout the widget is already deleted and accessing it crashes. Instead save the layout right before the widget is deleted SENTRY: SYSTEMSETTINGS-2D3 M +1 -5 solid-device-automounter/kcm/DeviceAutomounterKCM.cpp M +0 -1 solid-device-automounter/kcm/DeviceAutomounterKCM.h https://invent.kde.org/plasma/plasma-desktop/-/commit/9828adfbbf779ed8d55747dd50c8d5211a4a6479 Git commit 19bae96a8c51118bad5c60ad976eacf4c0e5b7fb by Nate Graham. Committed on 25/09/2024 at 17:39. Pushed by ngraham into branch 'Plasma/6.2'. [kcms/automounter] Fix crash on close The KCM widget and its children are destroyed before the KCModule. Therefore by the time we call saveLayout the widget is already deleted and accessing it crashes. Instead save the layout right before the widget is deleted SENTRY: SYSTEMSETTINGS-2D3 (cherry picked from commit 9828adfbbf779ed8d55747dd50c8d5211a4a6479) Co-authored-by: Nicolas Fella <nicolas.fella@gmx.de> M +1 -5 solid-device-automounter/kcm/DeviceAutomounterKCM.cpp M +0 -1 solid-device-automounter/kcm/DeviceAutomounterKCM.h https://invent.kde.org/plasma/plasma-desktop/-/commit/19bae96a8c51118bad5c60ad976eacf4c0e5b7fb |