<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックSubject: Application crashes after &amp;quot;mxc_v4l_dqueue timeout enc_counter 0&amp;quot; on i.MX6 (kernel 4.9.88)</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Subject-Application-crashes-after-quot-mxc-v4l-dqueue-timeout/m-p/2104475#M237601</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on an NXP i.MX6-based system running Linux kernel 4.9.88. I'm using a custom camera application that interfaces with V4L2 and the IPU (CSI/IC).&lt;/P&gt;&lt;P&gt;After running for some time, the application crashes, and I see the following messages in the kernel log:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;[ &lt;SPAN class=""&gt;265.260910&lt;/SPAN&gt;] &lt;SPAN class=""&gt;imx-ipuv3 2400000.ipu:&lt;/SPAN&gt; &lt;SPAN class=""&gt;IPU&lt;/SPAN&gt; &lt;SPAN class=""&gt;Warning&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;IPU_INT_STAT_5&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;0x00800000&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;[ &lt;SPAN class=""&gt;265.260923&lt;/SPAN&gt;] &lt;SPAN class=""&gt;imx-ipuv3 2400000.ipu:&lt;/SPAN&gt; &lt;SPAN class=""&gt;IPU&lt;/SPAN&gt; &lt;SPAN class=""&gt;Warning&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;IPU_INT_STAT_10&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;0x00080000&lt;/SPAN&gt; [&lt;SPAN class=""&gt;12461.922418&lt;/SPAN&gt;] &lt;SPAN class=""&gt;ERROR: v4l2 capture:&lt;/SPAN&gt; &lt;SPAN class=""&gt;mxc_v4l_dqueue&lt;/SPAN&gt; &lt;SPAN class=""&gt;timeout&lt;/SPAN&gt; &lt;SPAN class=""&gt;enc_counter&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;[12610.379560] send_sig_info error&lt;BR /&gt;[12610.396334] send_sig_info error&lt;BR /&gt;[12610.413113] send_sig_info error&lt;BR /&gt;[12610.429887] send_sig_info error&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Shortly after this, the application exits with code 255&amp;nbsp;(checked with "echo $?"). Also, in some cases, the message send_sig_info error appears in dmesg.&lt;/P&gt;&lt;P&gt;From what I can tell:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The camera pipeline works for a while (changed between 2 and 7.5 hours) and then stops.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The mxc_v4l_dqueue() function appears to timeout, likely due to no frames being dequeued from the IPU buffer.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;This eventually leads to the application terminating.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;What exactly does enc_counter 0 indicate in this context?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;What could cause the mxc_v4l_dqueue() timeout — sensor failure, IPU issue, or buffer mismanagement?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there known stability issues in the IPU or V4L2 stack in kernel 4.9.88?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there any recommended workaround or patch for this issue?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any guidance or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 26 May 2025 12:33:00 GMT</pubDate>
    <dc:creator>hasisb</dc:creator>
    <dc:date>2025-05-26T12:33:00Z</dc:date>
    <item>
      <title>Subject: Application crashes after "mxc_v4l_dqueue timeout enc_counter 0" on i.MX6 (kernel 4.9.88)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Subject-Application-crashes-after-quot-mxc-v4l-dqueue-timeout/m-p/2104475#M237601</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on an NXP i.MX6-based system running Linux kernel 4.9.88. I'm using a custom camera application that interfaces with V4L2 and the IPU (CSI/IC).&lt;/P&gt;&lt;P&gt;After running for some time, the application crashes, and I see the following messages in the kernel log:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;[ &lt;SPAN class=""&gt;265.260910&lt;/SPAN&gt;] &lt;SPAN class=""&gt;imx-ipuv3 2400000.ipu:&lt;/SPAN&gt; &lt;SPAN class=""&gt;IPU&lt;/SPAN&gt; &lt;SPAN class=""&gt;Warning&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;IPU_INT_STAT_5&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;0x00800000&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;[ &lt;SPAN class=""&gt;265.260923&lt;/SPAN&gt;] &lt;SPAN class=""&gt;imx-ipuv3 2400000.ipu:&lt;/SPAN&gt; &lt;SPAN class=""&gt;IPU&lt;/SPAN&gt; &lt;SPAN class=""&gt;Warning&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;IPU_INT_STAT_10&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;0x00080000&lt;/SPAN&gt; [&lt;SPAN class=""&gt;12461.922418&lt;/SPAN&gt;] &lt;SPAN class=""&gt;ERROR: v4l2 capture:&lt;/SPAN&gt; &lt;SPAN class=""&gt;mxc_v4l_dqueue&lt;/SPAN&gt; &lt;SPAN class=""&gt;timeout&lt;/SPAN&gt; &lt;SPAN class=""&gt;enc_counter&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;[12610.379560] send_sig_info error&lt;BR /&gt;[12610.396334] send_sig_info error&lt;BR /&gt;[12610.413113] send_sig_info error&lt;BR /&gt;[12610.429887] send_sig_info error&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Shortly after this, the application exits with code 255&amp;nbsp;(checked with "echo $?"). Also, in some cases, the message send_sig_info error appears in dmesg.&lt;/P&gt;&lt;P&gt;From what I can tell:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The camera pipeline works for a while (changed between 2 and 7.5 hours) and then stops.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The mxc_v4l_dqueue() function appears to timeout, likely due to no frames being dequeued from the IPU buffer.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;This eventually leads to the application terminating.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;What exactly does enc_counter 0 indicate in this context?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;What could cause the mxc_v4l_dqueue() timeout — sensor failure, IPU issue, or buffer mismanagement?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there known stability issues in the IPU or V4L2 stack in kernel 4.9.88?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there any recommended workaround or patch for this issue?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any guidance or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 12:33:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Subject-Application-crashes-after-quot-mxc-v4l-dqueue-timeout/m-p/2104475#M237601</guid>
      <dc:creator>hasisb</dc:creator>
      <dc:date>2025-05-26T12:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Subject: Application crashes after "mxc_v4l_dqueue timeout enc_counter 0" on i.MX6 (ke</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Subject-Application-crashes-after-quot-mxc-v4l-dqueue-timeout/m-p/2104520#M237611</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;DIV id="bodyDisplay_0" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A1.&lt;/P&gt;
&lt;P&gt;IPU_INT_STAT_10&amp;nbsp; means AXI read access error, one can check programming requirements provided for AXIR units in sect.37.4.2.4.1 Handling real time channels,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;37.4.2.5, Table 37-15 i.MX6DQ Reference Manual&lt;/P&gt;
&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Freference-manual%2FIMX6DQRM.pdf" target="_blank" rel="noopener"&gt;http://www.nxp.com/docs/en/reference-manual/IMX6DQRM.pdf&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;A2. The que wait to much for buffer fullfil check your camera and check the dtb &lt;/P&gt;
&lt;P&gt;A3. No&lt;/P&gt;
&lt;P&gt;A4.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to add the following line when defining your capture device:&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE class="codeblock-buttons"&gt;&lt;CODE&gt;VideoCapture cap("imxv4l2videosrc device=\"/dev/video0\" ! videoconvert ! appsink")
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This worked with the Analogue Camera Adapter. For you webcam, you may need different videosources. The different video sources can be found with the command &lt;CODE&gt;gst-inspect-1.0 | grep v4l2&lt;/CODE&gt; on the EVK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 14:49:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Subject-Application-crashes-after-quot-mxc-v4l-dqueue-timeout/m-p/2104520#M237611</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-05-26T14:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Subject: Application crashes after "mxc_v4l_dqueue timeout enc_counter 0" on i.MX6 (ke</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Subject-Application-crashes-after-quot-mxc-v4l-dqueue-timeout/m-p/2105121#M237662</link>
      <description>A have already checked camera and DTB (since everthing works fine for hours i assume DTB is valid). BT1120 video comes through FPGA (cyclone5). imx6 board record and saves it into ssd using Gstreamer framework. What could be the problem?&lt;BR /&gt;&lt;BR /&gt;Actually my system worked fine until last week.&lt;BR /&gt;&lt;BR /&gt;Also i have disabled (by adding a register into FPGA) video and no error is encountered. just video stopped recording.&amp;nbsp;</description>
      <pubDate>Tue, 27 May 2025 09:17:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Subject-Application-crashes-after-quot-mxc-v4l-dqueue-timeout/m-p/2105121#M237662</guid>
      <dc:creator>hasisb</dc:creator>
      <dc:date>2025-05-27T09:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Subject: Application crashes after "mxc_v4l_dqueue timeout enc_counter 0" on i.MX6 (ke</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Subject-Application-crashes-after-quot-mxc-v4l-dqueue-timeout/m-p/2106784#M237756</link>
      <description>I have also found following issue. very similar to my case&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/ERROR-v4l2-capture-mxc-v4l-dqueue-interrupt-received/td-p/575901" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/ERROR-v4l2-capture-mxc-v4l-dqueue-interrupt-received/td-p/575901&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Is it a problem playback and video capture at the same time. Actually i dont playback video but Terminal screen keep playback all the time. If it a problem because in some cases it throws ERROR: v4l2 capture: mxc_v4l_dqueue() interrutpt recieved.&lt;BR /&gt;1. How to disable it?</description>
      <pubDate>Thu, 29 May 2025 05:49:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Subject-Application-crashes-after-quot-mxc-v4l-dqueue-timeout/m-p/2106784#M237756</guid>
      <dc:creator>hasisb</dc:creator>
      <dc:date>2025-05-29T05:49:23Z</dc:date>
    </item>
  </channel>
</rss>

