Summary: | Q_ASSERT(dev->backendObject() != nullptr); | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-solid | Reporter: | Christoph Cullmann <christoph> |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | christoph, isma.af, jjm, kdelibs-bugs, lukas, nate |
Priority: | NOR | ||
Version: | 5.101.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/solid/-/commit/f099efda7a38e7f3651a802a44cd7e125b065dc1 | Version Fixed In: | 6.8 |
Sentry Crash Report: |
Description
Christoph Cullmann
2023-01-11 13:30:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/solid/-/merge_requests/165 *** Bug 458609 has been marked as a duplicate of this bug. *** Git commit f099efda7a38e7f3651a802a44cd7e125b065dc1 by Christoph Cullmann. Committed on 03/05/2024 at 10:23. Pushed by cullmann into branch 'master'. remove too aggressive assert can happen during runtime, we set it to nullptr anyways, just remove the assert M +0 -1 src/solid/devices/frontend/devicemanager.cpp https://invent.kde.org/frameworks/solid/-/commit/f099efda7a38e7f3651a802a44cd7e125b065dc1 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/solid/-/merge_requests/172 Git commit 99510948944ecda04f9cec6b3bd94b140d191a1c by Christoph Cullmann, on behalf of Nicolas Fella. Committed on 19/10/2024 at 10:27. Pushed by cullmann into branch 'master'. [udisks] Don't add/remove devices in slotMediaChanged We get notified when devices are added via InterfacesAdded/InterfacesRemoved. When ejecting from a CD drive we first get slotMediaChanged, where we remove the device from m_deviceCache. Then we get InterfacesRemoved for org.freedesktop.UDisks2.Filesystem. Because the org.freedesktop.UDisks2.Block interface is still there we remove and immediately readd the device. Then in DeviceManagerPrivate::_k_deviceAdded we call createBackendObject, which fails to create a backend because the uid is not in m_deviceCache any more. Then we assert because the backend is empty. SENTRY: KIO-6S SENTRY: KONTACT-FM SENTRY: KDED-P SENTRY: PLASMA-WORKSPACE-SMH SENTRY: ARK-5T SENTRY: DOLPHIN-218 M +0 -13 src/solid/devices/backends/udisks2/udisksmanager.cpp https://invent.kde.org/frameworks/solid/-/commit/99510948944ecda04f9cec6b3bd94b140d191a1c |