-
Notifications
You must be signed in to change notification settings - Fork 212
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
RPI stream error: Failed to queue buffer for ISP Input #236
Comments
This seems to be a custom kernel you are running. Can you switch to the Raspberry Pi downstream kernel and try this again? |
I can reproduce this on the RPi kernel as well. Will investigate to see what could be the cause. |
Thank you, I am unaware of having a custom kernel though, I tried motioneyeOS previously, but it would be very silly of me if I flashed wrong file instead of RPi OS (though I have not ruled that out, will investigate once I am back home). |
Looks like this problem exists in the RPi kernel as well, since I am able to reproduce it. I doubt you would get any better results if you try with it as well :-) |
We have identified the cause of this problem, and a fix has been submitted for review/merge here. Hopefully this should be merged very soon. |
That's great news, thank you very much! |
…nput stream The ISP input stream currently only allocates a single slot in the V4L2VideoDevice cache as it follows the number of buffers allocated for use. However, this is wrong as the ISP input stream imports buffers from Unicam image stream. As a consequence of this, only one cache slot was used during runtime for the ISP input stream, and if multiple buffers were to be queued simultaneously, the queue operation would return a failure. Fix this by passing the same number of RAW buffers available from the Unicam image stream. Additionally, double this count in the cases where buffers could be allocated externally from the application. Bug: raspberrypi/rpicam-apps#236 Bug: raspberrypi/rpicam-apps#238 Bug: raspberrypi/rpicam-apps#240 Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
The fixes for this issue have now been merged. You can get the latest libraries by doing:
I'll close this issue down now, please re-open if you still have problems. |
I'm having an issue with libcamera-vid after it runs for a while. I tried several output targets as I started with udp/tcp streaming, saving to nfs and finally tried saving the files locally to eliminate any issues with networking.
I tried multiple resolutions, ended up running it at half of the camera, but it made no difference (camera is Waveshare RPi IR-CUT Camera (B)). It's running without a timeout and at some point (usually within 1-2 minutes), I receive an error
rpi_stream.cpp:242 Failed to queue buffer for ISP Input
at which point it just stops outputting.However, the libcamera-vid command keeps running and I have to kill it manually. I was initially blaming the memory, but it never peaked over a 100mb threshold of 400mb available, so I kinda ruled that out and I'm out of ideas. I can't really find any relevant information, so any suggestions on where to start or how to help debugging this would be very appreciated.
I also tried running the command with
LIBCAMERA_LOG_LEVELS=0
, however it started producing about 4-5 times smaller files that were all about 2.5MB (10s segments at 1292x972) and could not be opened, however I never received the error. So I am unsure of what happened there.Bug report
camera-bug-report
Additional context
I am running a clean install of Raspberry Pi OS Lite that only includes ssh access and wifi connection
The text was updated successfully, but these errors were encountered: