Open magcsaba opened 2 years ago
Yes, looks like the APIEvent
should be holding an std::weak_ptr<Device>
rather than a Device*
. We'll take a closer look at this, I suspect we want to address it in libicsneo directly or we will see more of this same class of bug.
Is your use case able to work around the issue for a short while we fix this more permanently?
I have already modified the code locally to not log device details for any Event. I know this is not a solution, but for me temporary it is good enough to be able to use the software.
Thank you for looking into it!
Daemon crashes with Segmentation Fault on disconnecting ValueCan on Linux.
It seems that on
DeviceDisconnected
event wants to log the device properties but the device object is already destroyed.This is the GDB stack trace: