depthai-python icon indicating copy to clipboard operation
depthai-python copied to clipboard

Queue failure

Open laitathei opened this issue 3 years ago • 2 comments

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 avatar Aug 25 '22 17:08 laitathei

@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?

themarpe avatar Aug 25 '22 18:08 themarpe

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

laitathei avatar Aug 26 '22 15:08 laitathei

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 avatar Jan 31 '23 14:01 pulsar666

@pulsar666 Do you mind sending back the logs with DEPTHAI_DEBUG=1 env var set?

themarpe avatar Feb 01 '23 12:02 themarpe

@themarpe Please find the attached log depth_ai_yolo_v4_spatial_log.txt

pulsar666 avatar Feb 02 '23 11:02 pulsar666

Any updates on this?

ghbn8 avatar Jul 18 '23 02:07 ghbn8

@ghbn8 it's a generic error. Please submit full MRE: https://docs.luxonis.com/en/latest/pages/support/#depthai-issue

Erol444 avatar Jul 18 '23 08:07 Erol444

I had this same issue on a raspberry pi, it was resolved by using external power to the Oak D power jack. Thanks

ghbn8 avatar Jul 18 '23 18:07 ghbn8