<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 9 Nov 2021 at 10:26, Naushir Patuck <<a href="mailto:naush@raspberrypi.com">naush@raspberrypi.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Roman,<div><br></div><div>Not sure if the email thread is the best place to discuss your issue, so perhaps create a bug report at <a href="http://bugs.libcamera.org" target="_blank">bugs.libcamera.org</a>.</div><div>Onto the actual issue - it seems like the ISP gets starved of request buffers and fails to produce output and the pipeline handler stalls.</div><div>The reason it gets starved is likely to be due to the following errors in the log:</div><div><br></div><div>10-07 14:37:46.726 Â  360 Â  442 D libcamera: DEBUG RPISTREAM rpi_stream.cpp:226 Queuing buffer 1048579 for ISP Output1<br>10-07 14:37:46.727 Â  360 Â  442 E libcamera: ERROR RPISTREAM rpi_stream.cpp:231 Failed to queue buffer for ISP Output1<br>10-07 14:37:46.727 Â  360 Â  442 D libcamera: DEBUG RPISTREAM rpi_stream.cpp:226 Queuing buffer 1048580 for ISP Output1<br>10-07 14:37:46.727 Â  360 Â  442 E libcamera: ERROR RPISTREAM rpi_stream.cpp:231 Failed to queue buffer for ISP Output1<br>10-07 14:37:46.727 Â  360 Â  442 D libcamera: DEBUG RPISTREAM rpi_stream.cpp:226 Queuing buffer 1048581 for ISP Output1<br>10-07 14:37:46.728 Â  360 Â  442 E libcamera: ERROR RPISTREAM rpi_stream.cpp:231 Failed to queue buffer for ISP Output1<br></div><div><br></div><div>I cannot tell further why the qbuf ioctl has failed.  Perhaps something in dmesg would tell us?  Could you expand on how your request</div><div>buffers have been allocated?</div></div></blockquote><div><br></div><div>Just a pointer for you to investigate... The logs suggest that V4L2VideoDevice::queueBuffer() fails at:</div><div><br></div>ret = cache_->get(*buffer);<br>if (ret < 0)<br>  Â  Â  Â  return ret;</div><div class="gmail_quote"><br></div><div class="gmail_quote">as all other error paths through that function log a message, and we see none.  So it may not necessarily be the ioctl that fails.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Naush<br><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks,</div><div>Naush</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 8 Nov 2021 at 20:20, Roman Stratiienko <<a href="mailto:r.stratiienko@gmail.com" target="_blank">r.stratiienko@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Yes, I am on the very latest rpi branch without any custom patches. I had to upgrade it because of new media control used in mainline libcamera.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 8 Ð½Ð¾ÑÐ±. 2021 Ð³., 22:12 Kieran Bingham <<a href="mailto:kieran.bingham@ideasonboard.com" target="_blank">kieran.bingham@ideasonboard.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Roman,<br>
<br>
Quoting Roman Stratiienko (2021-11-08 17:46:56)<br>
> Hi guys,<br>
> <br>
> I have stuck with camera bring-up for Android. Could somebody who has<br>
> experience in it help me to find a right way to solve this. Logs are<br>
> available here:<br>
> <a href="https://github.com/kbingham/libcamera/issues/31" rel="noreferrer noreferrer" target="_blank">https://github.com/kbingham/libcamera/issues/31</a><br>
<br>
The RPi kernel, and pipeline handler have had a large change recently to<br>
convert to using MediaController. It may require ensuring you have the<br>
latest kernel from RPi, along with the latest libcamera.<br>
<br>
You mentioned that you have " rpi-kernel v5.10.y", do you know if this<br>
contains the commits that update to the new MediaController drivers?<br>
<br>
I assume you are building your own kernel, so you'll want to make sure<br>
you're on the (very, very) latest branch, and it might be something to<br>
check on the RPi forums otherwise.<br>
<br>
--<br>
Kieran<br>
<br>
<br>
> <br>
> Thanks in advance,<br>
> Roman<br>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>