• DepthAI-v2
  • OAK-D Device crashed, but no crash dump could be extracted.

Hi, I have an OAK-D Camera and want to connect it using Depth-AI Viewer v3.5 on Windows. I was using the Installer.
Whenever I want to select the port following error gets thrown:

Selecting device:
Selecting device: 18443010714442F500
[18443010714442F500] [1.1] [1717843051.061] [host] [warning] Device crashed, but no crash dump could be extracted.
Failed to select device: Device already closed or disconnected: io error
[2024-06-08T10:37:32Z ERROR re_viewer::depthai::depthai] Error: Device already closed or disconnected: io error, Try to connect the device to a different port.

I made shure my cable and ports are both USB3.0. I even tried providing a 5V power supply to the camera, in case my PC is not providing enough power.

I even went as far as o test it on a different notebook. Unexpectedly it worked there. Unfortunately I can not use that Notebook for my project.

I do not have any more ideas here.

If it helps after a certain time i get this message:

[2024-06-08 12:45:50] ERROR [websockets.server.handler:238] connection handler failed
Traceback (most recent call last):
File "D:\DepthAI\venv\lib\site-packages\depthai_viewer\venv-0.2.0\Lib\site-packages\websockets\legacy\protocol.py", line 974, in transfer_data
await asyncio.shield(self._put_message_waiter)
asyncio.exceptions.CancelledError

Help is appreciated

    Hi Kygra
    And the power supply you used is rated for more than 2A?

    Could you try running some example scripts from luxonis/depthai-python (cam_test, rgb_preview)? Just so we can see if the viewer is perhaps the issue.

    Thanks,
    Jaka

      Hi jakaskerl

      The externel power supply is rated for 5V 2.4A.
      I tried running your suggested test python files but they all got caught on dai.device(*dai_device_args) .
      Throwing the same error: RuntimeError: Device already closed or disconnected: io error .

      To be more specific: Error gets thrown on line 252 in cam_test.py

      I also had a look at my hardware management and it certainly recognizes the Movidius MyriadX Chip.

      Edit: Somehow after hitting the retry button a few times out of frustration the cam magically decides to work. But this is not consistant and/or reproducable.

      Kind Regards

      Hi @Kygra
      Have you tried swapping the USB cable? A different port on the PC? Looks like a connection error. Is the firewall blocking USB connections?

      Thanks,
      Jaka

        7 days later

        Hi jakaskerl

        Sorry for the late reply. It actually seems to be a problem with my firewall (I tried connecting with disabled firewall and it worked). Do i have to add some firewall rule? I dont want to run around with disabled firewall ^^.

        Hi @Kygra
        USB devices should be affected by firewall rules, unless it was python or depthai-viewer, that was blocked, which I doubt is the case.
        luxonis/depthai981 - similar case where the issue was power delivery. Strange that it always seems to happen on Windows.

        Thanks,
        Jaka