Hi there,
My team has been working on various projects with OAK 1s and OAK 1 Maxs with success for a long time; however, unfortunately, there are some X_LINK errors that we consistently encounter and most of our efforts to mitigate these issues have proved ineffective. Some of the specific issues we are currently running into are detailed below:
1. Programs will hang on the line where it tries to get a frame from the camera. No exception is thrown/nothing is printed, the program just stays stuck. Program has to be rerun. Can’t tell what the error is.
2. Immediately upon trying to start up the camera, the error “failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND” is thrown. Upon checking lsusb, can tell that the camera is still plugged in. Must be solved through unplugging and replugging in the camera.
3. Will receive “failed to find device, error message: X_LINK_DEVICE_NOT_FOUND”, not necessarily with “after booting”, after a longer period of time like a week. Thought this was solved through periodically restarting the program but unfortunately, camera still has to be unplugged and replugged in.
4. Program crashes seemingly randomly, sometimes after a few days, a few hours, or a few minutes. The error occurs when trying to get a frame from the camera and says “RuntimeError: Communication exception – possible device error/misconfiguration. Original message ‘Couldn’t read data from stream: ‘rgb’ (X_LINK_ERROR)”. Trying to then close the device in order to recreate it and restart the pipeline leads to “failed to find device after booting”. On lsusb, can see the camera remains plugged in. Restarting the program doesn’t necessarily help, but strangely enough, after leaving the camera alone for a length of time and then retrying with changing nothing else, it works.
Cameras have been on 5m USB extenders and longer, externally powered ones. Our environment experiences some vibration and dust. We are using DepthAI 2.29 in Python. Camera pipelines are being made in both main threads and others. Rebooting computing unit doesn’t help.
Any information at all around the cause of these issues or suggestions for solutions would be hugely appreciated. Unsure if it is a hardware change we have to make or if there is a software solution to avoid having to unplug and replug in the camera.
Thank you.