luxonis / depthai

DepthAI Python API utilities, examples, and tutorials.
https://docs.luxonis.com
MIT License
937 stars 232 forks source link

Camera RuntimeError: Failed to boot device! - [X_LINK_UNBOOTED] #1177

Open jprodriguezg opened 5 months ago

jprodriguezg commented 5 months ago

Hello there,

I am having issues by starting the OAK-D PRO WIDE. After using the camera (e.g., running depthai_demo.py), stopping the process and starting again the camera remains UNBOOTED (sometimes).

Check if issue already exists

There are similar errors but not exactly the same https://github.com/luxonis/depthai/issues/753 ,https://github.com/luxonis/depthai/issues/886 , https://github.com/luxonis/depthai-ros-examples/issues/57 , https://discuss.luxonis.com/d/1172-device-recognized-but-will-not-boot

Describe the bug When trying to re-open the camera (e.g., running depthai_demo.py), I sometimes got the following error:

[0] 19443010B1C7992E00 [X_LINK_UNBOOTED]
  File "/home/XXX/Software/luxonis/depthai-main/depthai_demo.py", line 657, in run
    self.instance.run_all(self.conf)
  File "/home/XXX/Software/luxonis/depthai-main/depthai_demo.py", line 132, in run_all
    self.setup(conf)
  File "/home/XXX/Software/luxonis/depthai-main/depthai_demo.py", line 210, in setup
    self._device = da.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, maxUsbSpeed)
RuntimeError: Failed to boot device!

Hardware OAK-D PRO WIDE

Host OS (clean installation) Pop!_OS 22.04

Minimal Reproducible Example

  1. Install DepthAI SDK
  2. Try depthai_demo.py several times or any other script that starts the camera

Expected behavior I am testing the camera and trying to get images from the device. For instance, by running the demo I expect to visualize the demo.

Screenshots luxonis_error

Additional comments So far I have tried these following:

Temporal solution So far the only solution that works is to reboot the host pc. However, the solution is not suitable for my application as I should not reboot anytime I need to use the camera.

MartinMotycka commented 4 months ago

@themarpe ^^

themarpe commented 4 months ago

@jprodriguezg thanks for the report - have you tested a different host as well? Some hosts have odd USB controllers onboard, that causes issues with OAK devices. Do you mind letting us know what system is this reproducible on, for us to give it a go?