- Edited
OAK D, Win 10 x64, Python 10, DepthAI 2.29.0.0, OpenCV 4.11.0.86
I'm trying to run the depthai_hand_tracker demo demo code.
But get the following error....
Traceback (most recent call last):
File "D:\Depth_AI\depthai_hand_tracker\demo.py", line 59, in <module>
tracker = HandTracker(
File "D:\Depth_AI\depthai_hand_tracker\HandTracker.py", line 130, in __init__
self.device = dai.Device()
RuntimeError: Device already closed or disconnected: io error
The OAK D, cables & USB port have worked with other projects fine.
When I check for devices using,
import depthai
for device in depthai.Device.getAllAvailableDevices():
print(f"{device.getMxId()} {device.state}")
I get the following,
14442C1031918ED000 XLinkDeviceState.X_LINK_UNBOOTED
Additional::
Just cloned the depthai rep from git & ran the depthai_demo.py code and got the following error,
Error while running demo script... Command '"C:\Users\Bwts\anaconda3\envs\depthai\python.exe" depthai_demo.py --noSupervisor --guiType qt' returned non-zero exit status 3221226505.
Waiting 5s for the device to be discoverable again...
Setting up demo...
Available devices:
[0] 14442C1031918ED000 [X_LINK_UNBOOTED]
[14442C1031918ED000] [1.2] [1741803897.280] [host] [warning] Device crashed, but no crash dump could be extracted.
Related?
EDIT::
I cant get the demo to work with either my OAK-D-Lite or OAK-D. The devices both crash, full traceback for the OAK-D-Lite
Setting up demo...
Available devices:
[0] 18443010717C0C1300 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Creating MJPEG link for MonoCamera node and left xlink stream...
Creating MJPEG link for MonoCamera node and right xlink stream...
Creating MJPEG link for ColorCamera node and color xlink stream...
Error while running demo script... Command '"C:\Users\sengnr3\.conda\envs\depthai\python.exe" depthai_demo.py --noSupervisor --guiType qt' returned non-zero exit status 3221226505.
Waiting 5s for the device to be discoverable again...
Setting up demo...
Available devices:
[0] 18443010717C0C1300 [X_LINK_UNBOOTED]
[18443010717C0C1300] [1.6] [1741869040.206] [host] [warning] Device crashed, but no crash dump could be extracted.