I have a new OAK-D USB camera connected to an M1 MacBook Pro running macOS Sonoma. I keep hitting this error when using models on the camera:
RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: <varies> (X_LINK_ERROR)'
Things I've tried based on past threads, with no effect:
- Powering OAK-D using the included power adapter
- Changing USB cable (tested with USB 3.0, 3.1 Gen 2, and TB 3 cables)
- Changing USB port
usb2Mode=True
Other info:
- DepthAI Demo reported
USB Connection speed: UsbSpeed.SUPER
with all tested cables. - The issue only occurs when the camera is using NN models, and its likelihood seems to vary with the node/model in use:
- I've not encountered the issue when simply capturing OpenCV frames on a loop without any detection model running.
- It occurs very quickly when using YOLO-based models, e.g. yolo-v3-tiny-tf in the demo. yolo-v3-tf crashes almost instantly.
- mobilenet-ssd often runs quite a while without crashing.
- The issue doesn't consistently surface from one particular stream. In the DepthAI Demo, I've seen "Couldn't read data from stream:" 'color', 'right' etc.
- I set the log level to DEBUG, but I'm not seeing any spikes or patterns in the captured values when the crash occurs.
- All camera tests in
guided_manual_test.py
completed successfully.
Any ideas?