Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] {win 10 - RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND} #790

Open
TheBricktop opened this issue Sep 14, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@TheBricktop
Copy link

Describe the bug
Fresh install of python 3.8.5 virtualenv installed depthai, numpy, opencv-contrib running gives me single lens click in oakd-1 and then it throws aforementioned error

Minimal Reproducible Example
pip install the depthai lib and opencv and run any demo.

Expected behavior
Demo run properly like in the video.

Attach system log

    (venv) PS B:\Github\depthAI_SKAKUN> & b:/Github/depthAI_SKAKUN/venv/Scripts/python.exe b:/Github/depthAI_SKAKUN/stereoview_BW.py
    Traceback (most recent call last):
      File "b:/Github/depthAI_SKAKUN/stereoview_BW.py", line 30, in <module>
        with dai.Device(pipeline) as device:
    RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
@TheBricktop TheBricktop added the bug Something isn't working label Sep 14, 2022
@brmarkus
Copy link

Can you provide more details about how you have set-up your environment, including the HOST, please?

Because the installation requires a UDEF-rule file to be added (because the contained MyriadX-chip changes from HIGHSPEED to SUPERSPEED while loading and starting the firmware, thus UDEF needs to detect the MyriadX device to re-appear as a different device (again), but under a different VENDORID-DEVICEID.

@TheBricktop
Copy link
Author

TheBricktop commented Sep 14, 2022

Ive just used virtualenv under vscode and activated then installed all therequired packages using pip. Win10 latest. Used to work before.

I was using the official Win10 install guide from depthai docs site and it is not mentioning nothing about UDEF under the win10 installation
How should I do this?

@brmarkus
Copy link

You are right... under MS-Win UDEF doesn't make sense, this is for Linux environments only.

Do you use the "original USB3 cables", are you sure they are USB3-capable? Do you have an actively powered USB-hub inbetween? Are you sure you connected the USB3-cable into a USB3-capable port on your machine?

@TheBricktop
Copy link
Author

Yeah this is the original usb3.1 cable that came with the oakd1 but it seem that it stopped working, and im positively sure that it worked with the same port as before when it was working.
EDIT : changed cable and it is working again
EDIT: ive tried this with godot-python extension and it tells me that there is no device attached to the pc
so ive came back and tried the virtualenv that was working like 5 minutes before and it shows the same error
what gives?

@brmarkus
Copy link

Could there be a loose connection?
Could there be an instable power-supply on your machine?
Would you have an USB3-capable actively powered USB-hub, using USB3-cables between computer and hub and between hub and the camera?

@TheBricktop
Copy link
Author

well now,
it is sometwhat obscure but when the godot-python python server starts it initialises for some reason some generic depth ai pipeline effectively blocking the device from being available to another call thus device is unavailable.

@brmarkus
Copy link

Do I understand you right that in your environment there are multiple independent processes actively accessing the OAK-D device concurrently?

@taaneredsov
Copy link

Hello, I faced the same problem. I used USBDeview (https://www.nirsoft.net/utils/usb_devices_view.html) to uninstall/delete the Movidius MyriadX entry. After reconnecting the camera reinstalled and all worked again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants