test-pipeline.binimport time
import gc
import depthai as dai
from typing import Optional
# ------------ Select device ------------
Error previewing file. It may have been deleted, or the provided file ID is invalid.
Issue: After connecting to my DepthAI camera and creating a pipeline, if I stop the pipeline and try to create a new one without closing the device connection, I get a segmentation fault. The error happens when DepthAI tries to query camera features during the second pipeline build. I tried giving some timeout also.
The error occurs in getConnectedCameraFeatures() during the second pipeline build. If I completely close the connection and reconnect fresh, it works fine. But I need to rebuild pipelines without reconnecting.
I am using OAK 4S camera with depthAi V3
Error :
#3 Object ".../libdepthaicore...", in dai::node::Camera::build(...)
#2 Object ".../libdepthaicore...", in dai::DeviceBase::getConnectedCameraFeatures()
Segmentation fault (Address not mapped to object [0x10])
Thanks,
Akshay Kumar