[frameworks-solid] [Bug 464149] New: SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. 2. 3. OBSERVED RESULT
Christoph Cullmann
bugzilla_noreply at kde.org
Wed Jan 11 13:30:10 GMT 2023
https://bugs.kde.org/show_bug.cgi?id=464149
Bug ID: 464149
Summary: SUMMARY *** NOTE: If you are reporting a crash, please
try to attach a backtrace with debug symbols. See
https://community.kde.org/Guidelines_and_HOWTOs/Debugg
ing/How_to_create_useful_crash_reports *** STEPS TO
REPRODUCE 1. 2. 3. OBSERVED RESULT
Classification: Frameworks and Libraries
Product: frameworks-solid
Version: 5.101.0
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: cullmann at kde.org
CC: kdelibs-bugs at kde.org, lukas at kde.org
Target Milestone: ---
On ejecting a DVD I got
Error getting props: "org.freedesktop.DBus.Error.InvalidArgs" "No such
interface “org.freedesktop.UDisks2.Filesystem”" for
"/org/freedesktop/UDisks2/block_devices/sr0"
ASSERT: "dev->backendObject() != nullptr" in file
/local/hdd/gebhard/kde/src/frameworks/solid/src/solid/devices/frontend/devicemanager.cpp,
line 234
I would propose to relax the code
void Solid::DeviceManagerPrivate::_k_deviceRemoved(const QString &udi)
{
if (m_devicesMap.contains(udi)) {
DevicePrivate *dev = m_devicesMap[udi].data();
// Ok, this one was requested somewhere was valid
// and now becomes magically invalid!
if (dev) {
Q_ASSERT(dev->backendObject() != nullptr);
dev->setBackendObject(nullptr);
Q_ASSERT(dev->backendObject() == nullptr);
}
}
Q_EMIT deviceRemoved(udi);
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list