-
Notifications
You must be signed in to change notification settings - Fork 84
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
libv4l2: error dequeuing buf: Broken pipe #16
Comments
hi @surajshanbhag, do u solve this preblem? thanks |
Yep. Seems silly. But I was not giving it enough time to initialize at boot. I added a wait for 60s and after that saw it rarely. |
hi @surajshanbhag, how do solve it? |
hi @surajshanbhag, i just sleep 60 seconds, but it dpes not work. |
|
@zimenglan-sysu-512 Did you solve the problem? |
Getting the same error here. I'll debug further but if anyone has found a solution please update this thread, thanks! |
I am encountering this error as well. After some digging, I've found the point at which the exception is logged on line 271 of this file, and again on line 1,068 of the same file. In both cases, the error is only logged when
I wonder if perhaps the camera is not being loaded properly, and as such the device driver can't see it? Further investigation is necessary. |
Hey @AechPro I've pretty good success getting the camera out of a bad state using this usb reset code: This simulates a USB unplug/reconnect and is pretty reliable. You can also try calling this from within python while the app is running. Once the pipe is broken, the camera ends up in a bad state and is not accessible using V4L. Based on the weird nature of the error, it could be possibly related to the temperature. The raspberry pi overheats almost to 80C when the video stream is running (you can check with /opt/vc/bin/vcgencmd measure_temp). In any event, I'd suggest getting a heatsink for the Broadcom IC. |
@deganii I'm currently in the process of trying to use this library instead of v4l2. If I can't get it to work, I'll try that USB reset code. Thanks! |
any fix it ? who can help me :) I also meet this problem:libv4l2: error dequeuing buf: Broken pipe |
Any update on the reason of this error? I am trying to save images with the code provided in the examples within a loop. The first iteration works fine but on the second one I get libv4l2: error dequeuing buf: Broken pipe and then the device is busy... |
I was able to fix this problem on my system. This isn't an issue with python-v4l2capture, but with the underlying v4l2 library. Problem: From the v4l documentation:
It looks like once the first run is complete, this flag is being set, and doesn't get unset when starting subsequent runs. Solution: I'm using a raspberry pi 3, so I used rpi-source to pull the needed kernel source code. I saved a copy of videobuf2-core.ko in case something goes wrong. After updating the code in |
@renan-campos hello,could you provide some detail tutorial? |
faced this issue too after 2 days of googling found this article https://www.raspberrypi.org/forums/viewtopic.php?p=675658#p675658 steps i've made (and it started works)
After this steps USB webcam started working (tested with |
Hi,
Thank you for the amazing code . I am using it to stream stereo feeds from 2 webcams (logitech c930e) to my laptop from a raspberry pi. It works most times and when it does it rarely stops. However sometimes i get the following error.
libv4l2: error dequeuing buf: Broken pipe
The quick fix is to disconnect the webcams and reconnect them. From debugging i have narrowed it to the following line:
image_data = video.read_and_queue()
Have you encountered this error before ?
Raspberry pi uses Ubuntu Mate 16.0.4 and is connected to my laptop via wifi on a private dedicated network.
The text was updated successfully, but these errors were encountered: