depthai-python
depthai-python copied to clipboard
Queue failure
I am using raspberry pi as development platform and the operation system is raspbian os
After finish running sudo curl -fL https://docs.luxonis.com/install_dependencies.sh | bash, I also install python3 -m pip install depthai
Then, run git clone https://github.com/luxonis/depthai-python.git and try to execute spatial_tiny_yolo.py with python3
However, it cannot run for a long time because of the queue failure such as RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'rgb' (X_LINK_ERROR)' and RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'depth' (X_LINK_ERROR)'.
After many time, it seems all the queue used in the program may have chance to cause the program to stop.
How can I solve the problem?
@laitathei did you check troubleshooting: https://docs.luxonis.com/en/latest/pages/troubleshooting/#forcing-usb2-communication & rpi pages: https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/raspberrypi.html
Most prominently the power parts - do you have adequate power supply to power both RPi and OAK device? Did you try forcing USB2 connectivity?
Yes, I tested with forcing USB2 via https://docs.luxonis.com/en/latest/pages/troubleshooting/#forcing-usb2-communication mentioned method, but it still happen the error.
Also, I have provided adequate power supply to power RPI 4 8gb and OAK device
I have the same problem with my OAK D Lite. Seems to be running the mobilenet model pretty well. But when running the Yolo v4 tiny, I'm getting the same error. However, when I force, usb-2, it's not crashing. However, I need USB 3 for higher frame rate and better performance. Any way to get around this? I'm powering my Raspberry Pi 4B, 4GB RAM, via the official Raspberry Pi 3A power supply. The OAK D Lite is connected to the Pi via USB3 SS10 cable to one of the blue USB3.0 ports of the Pi.
Edit: Yolov3 is running fine though.
@pulsar666 Do you mind sending back the logs with DEPTHAI_DEBUG=1 env var set?
@themarpe Please find the attached log depth_ai_yolo_v4_spatial_log.txt
Any updates on this?
@ghbn8 it's a generic error. Please submit full MRE: https://docs.luxonis.com/en/latest/pages/support/#depthai-issue
I had this same issue on a raspberry pi, it was resolved by using external power to the Oak D power jack. Thanks