• DepthAI
  • DepthAI not launching with error message "...non-zero exit status 3221226505"

Hi,
Connected the new OakD Lite device, and installed the DepthAI by setup.exe mode in my windows PC. On launching, the program quits with the following error/messages in Python terminal:
"Available devices:
[0] 184430102166071300 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Enable 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... .... depthai_demo.py --noSupervisor ==guiType qt' returned non-zero exit status 3221226505.
waiting 5s for the device to be discoverable again..."

Kindly advise on the remedy/method for successful launching/running of the Demo program. Thanks.

    Not immediately sure what is going on here, but I'm thinking trying to run w/out the QT GUI will likely work around it for now. Will ask how to do so.

    Thanks,
    Brandon

    It's possible this issue is related to the USB connection: high-speed/USB2. On some PCs (or only certain USB ports from a PC), the default firmware configuration (with super-speed/USB3 enabled) is unstable or may crash if the established connection is at USB2 speed. We haven't found a solution for this issue yet, but a workaround exists to disable USB3 in the firmware configuration by running the demo script with the option: -usbs usb2

    karthikeyan1729 Could you try this:

    • Open a terminal in the user home directory, for example on Windows 10 or 11 right-click on Start button and select Windows PowerShell or Windows Terminal, but not the (Admin) option.
    • Paste the command below by pressing right-click inside of terminal and Enter:
      AppData\Local\Programs\DepthAI\venv\Scripts\python AppData\Local\Programs\DepthAI\depthai\depthai_demo.py -usbs usb2

    Let us know if the above helps.

    It did not solve the issue. Screen shot of error messages is given here

    The command was executed properly, but now the issue is different, the device isn't found at all. Could you open Device Manager (for example right-click on Start), and check if there's a Movidius MyriadX under Universal Serial Bus devices. It should appear immediately when the OAK device is connected, before running the DepthAI demo app.

    If it's not possible to get it detected by disconnecting and connecting again, please try rebooting the PC.

    Yes, you were right. I reconnected the device properly, and the demo program ran as expected. THANK YOU.

    Good to know, thanks!

    Now, for some use-cases (for example running the demo), the performance/FPS would be better when running with USB3. But many USB-C cables on the market are designed mainly for charging or low throughput data transfer and lack USB3 (which would need a separate set of wires and pins in the cable/connectors).

    For USB-C cables that have a type-A end, usually it is blue-colored if it supports USB3. Or it can be checked if an array of 5 pins exists deep inside the connector, as in this image from https://en.wikipedia.org/wiki/USB_3.0