<?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>topic Re: glTexDirectVIVMap memory leak issue in imx6-imx_3.0.35_4.1.0    in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-memory-leak-issue-in-imx6-imx-3-0-35-4-1-0/m-p/550984#M86181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L3.0.35_4.1.0 has memory leak issues as answered by experts on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/323018"&gt;Long running vpu task with memory leak bug on imx6&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one can try L3.0.101&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/webapp/Download?colCode=L3.0.101_4.1.1_SOURCE_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product" title="http://www.nxp.com/webapp/Download?colCode=L3.0.101_4.1.1_SOURCE_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product"&gt;http://www.nxp.com/webapp/Download?colCode=L3.0.101_4.1.1_SOURCE_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however highly recommended to migrate to new kernels where this is fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2016 05:53:24 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-08-24T05:53:24Z</dc:date>
    <item>
      <title>glTexDirectVIVMap memory leak issue in imx6-imx_3.0.35_4.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-memory-leak-issue-in-imx6-imx-3-0-35-4-1-0/m-p/550983#M86180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RT.&lt;/P&gt;&lt;P&gt;In our project, we used glTexDirectVIVMap to reduce CPU load, but we found it caused memory leak issue,&lt;/P&gt;&lt;P&gt;how to fix it?&amp;nbsp; is there the existed patch to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source code as follow:&lt;/P&gt;&lt;P&gt;=============================================&lt;/P&gt;&lt;P&gt;v4l2_buffer &amp;nbsp; &amp;nbsp;v4l2buf;&lt;/P&gt;&lt;P&gt;/* v4l2 setup: MMAP memory mode */&lt;/P&gt;&lt;P&gt;if (ioctl(fd_v4l, VIDIOC_DQBUF, &amp;amp;v4l2buf) &amp;lt; 0)&lt;BR /&gt; {&lt;BR /&gt; printf("line=%d, fd_v4l, VIDIOC_DQBUF error!!!\n", __LINE__);&lt;BR /&gt; return -1;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;GLuint physical = ~0U;&lt;/P&gt;&lt;P&gt;/* m_pvirtualaddr: mmap(xxx) from V4L2 DMA address, just do mmap one time when v4l2 setup */&lt;/P&gt;&lt;P&gt;glTexDirectVIVMap(GL_TEXTURE_2D, g_cap_width, g_cap_height,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GL_VIV_UYVY, (GLvoid**)&amp;amp;(m_pvirtualaddr), &amp;amp;physical);&amp;nbsp;&lt;/P&gt;&lt;P&gt;=============================================&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 10:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-memory-leak-issue-in-imx6-imx-3-0-35-4-1-0/m-p/550983#M86180</guid>
      <dc:creator>jasonchenchen</dc:creator>
      <dc:date>2016-08-23T10:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: glTexDirectVIVMap memory leak issue in imx6-imx_3.0.35_4.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-memory-leak-issue-in-imx6-imx-3-0-35-4-1-0/m-p/550984#M86181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L3.0.35_4.1.0 has memory leak issues as answered by experts on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/323018"&gt;Long running vpu task with memory leak bug on imx6&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one can try L3.0.101&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/webapp/Download?colCode=L3.0.101_4.1.1_SOURCE_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product" title="http://www.nxp.com/webapp/Download?colCode=L3.0.101_4.1.1_SOURCE_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product"&gt;http://www.nxp.com/webapp/Download?colCode=L3.0.101_4.1.1_SOURCE_BSP&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however highly recommended to migrate to new kernels where this is fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-memory-leak-issue-in-imx6-imx-3-0-35-4-1-0/m-p/550984#M86181</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-08-24T05:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: glTexDirectVIVMap memory leak issue in imx6-imx_3.0.35_4.1.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-memory-leak-issue-in-imx6-imx-3-0-35-4-1-0/m-p/550985#M86182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can confirm this memory leak on Kernel 4.1.15-1.1.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We stumbled upon the problem when displaying analog camera video with QtGStreamer. The workaround is to pass the actual physical address to glTexDirectVIVMap(), instead of ~0U. I've created a patch for QtGStreamer here: &lt;A class="link-titled" href="https://bugzilla.gnome.org/show_bug.cgi?id=730863" title="https://bugzilla.gnome.org/show_bug.cgi?id=730863"&gt;Bug 730863 – qtvideosink: add i.MX6 zero-copy rendering implementation&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this is just a workaround, and seems to work fine - however the real issue is clearly a Kernel bug, since the memory isn't even freed when the process exits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 09:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/glTexDirectVIVMap-memory-leak-issue-in-imx6-imx-3-0-35-4-1-0/m-p/550985#M86182</guid>
      <dc:creator>thomasmcguire</dc:creator>
      <dc:date>2016-12-20T09:38:39Z</dc:date>
    </item>
  </channel>
</rss>

