Hey all, I’m running an Arducam PiNSIGHT 12MP Vision AI Mate on a Raspberry Pi 5 and I can’t get it to work at all. It crashes the terminal whenever I try to operate it. I’ve already reflashed and reinstalled the device a few times with no luck. Can someone help me figure out what’s going on?
Sorry you’re hitting this. To narrow it down, could you post the exact command that crashes and the full terminal output? Also give us the step-by-step sequence that leads up to the crash. For context, every PiNSIGHT kit is tested before it leaves the factory, so this is likely something environment-specific rather than a dead unit.
Here’s my setup:
- Host device: Raspberry Pi 5
- DepthAI SDK version: 2.29.0.0
- depthai-sdk version: 1.15.1
- Python: 3.11.x
The main symptom is that I frequently get X_LINK_ERROR when running scripts, including depthai_demo.py. The device is connected and shows up, but it crashes as soon as it tries to actually start the camera. depthai_demo.py also reports no cameras available, and during init I see ‘Calibration Data on device is empty’.
Here’s the full output from running it:
python3 depthai_demo.py
Using depthai module from: /home/user/.local/lib/python3.11/site-packages/depthai.cpython-311-aarch64-linux-gnu.so
Depthai version installed: 2.29.0.0
Setting up demo…
Available devices:
[0] 14442C105110E3D600 [X_LINK_UNBOOTED]
[14442C105110E3D600] [1.1] [6.880] [system] [warning] Calibration Data on device is empty
USB Connection speed: UsbSpeed.HIGH
Disabling depth…
No previews available, adding defaults…
Enabling low-bandwidth mode due to low USB speed… (speed: UsbSpeed.HIGH)
qt.qpa.plugin: Could not find the Qt platform plugin “wayland” in “/home/user/.local/lib/python3.11/site-packages/cv2/qt/plugins”
Traceback (most recent call last):
File “/home/user/depthai/depthai_demo.py”, line 1054, in
runOpenCv()
File “/home/user/depthai/depthai_demo.py”, line 1044, in runOpenCv
demo.run_all(confManager)
File “/home/user/depthai/depthai_demo.py”, line 133, in run_all
self.run()
File “/home/user/depthai/depthai_demo.py”, line 304, in run
self._pv.createQueues(self._device, self._createQueueCallback)
File “/home/user/.local/lib/python3.11/site-packages/depthai_sdk/managers/preview_manager.py”, line 88, in createQueues
self.outputQueues.append(device.getOutputQueue(name=name, maxSize=1, blocking=False))
RuntimeError: Communication exception - possible device error/misconfiguration. Original message ‘Couldn’t read data from stream: ‘color’ (X_LINK_ERROR)’
Stopping demo…
[14442C105110E3D600] [1.1] [1735552938.987] [host] [warning] Device crashed, but no crash dump could be extracted.
Thanks, that log is helpful. A few things stand out:
- The device is showing as X_LINK_UNBOOTED, meaning it isn’t fully booted when the host talks to it.
- USB speed is negotiating at HIGH (USB 2.0), which triggers the low-bandwidth mode path.
- ‘Calibration Data on device is empty’ is showing up right at init.
- Then it dies trying to read the ‘color’ stream with X_LINK_ERROR and no crash dump gets extracted.
Before I go further, have you tried the DepthAI recovery/flash path? If so, what exactly happened?
I did try recovery. Both of these failed:
- depthai.recovery → ModuleNotFoundError: No module named ‘depthai.recovery’
- Device.flashBootloader() → AttributeError: type object ‘depthai.Device’ has no attribute ‘flashBootloader’
Beyond that, I’ve already tried:
- Reinstalling the DepthAI SDK and its dependencies
- Reflashing the firmware using the available DepthAI tools
- Different USB ports and different cables
- Confirmed the power supply is 5V/3A
- Tried running it on another computer as well
- Checked dmesg, which shows the device repeatedly disconnecting and reconnecting
Okay, thanks for the details. A couple of things:
- The X_LINK_ERROR combined with the repeated disconnect/reconnect pattern in dmesg points to an unstable camera connection between the PiNSIGHT and the Pi. The X_LINK_UNBOOTED state and empty calibration data also fit that picture.
- The recovery API names you used aren’t part of the SDK versions you’re on, so those errors are expected — that’s not the main problem though.
- Important: the PiNSIGHT is not calibrated at the factory, and it sounds like you’re also using the wrong API for it.
Quick question before anything else: has the unit ever been taken apart or had the camera board reseated? An unstable internal connection would explain a lot of this.
To summarize where this stands:
- The logs point to an unstable camera connection (X_LINK_UNBOOTED, X_LINK_ERROR on the ‘color’ stream, and repeated USB disconnects in dmesg).
- ‘Calibration Data on device is empty’ is expected because these units aren’t calibrated at the factory.
- The API you’re calling is the wrong one for this device.
Please follow the DepthAI official tutorial for calibration and use the correct API from that same tutorial, then report back with the results. Also, let me know whether the unit has ever been taken apart — if the internal camera connection is loose, that needs to be ruled out first.