<?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: Memory leak persists in CreateDepthImageMappedToColor of the latest SDK in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402820#M2287</link>
    <description>&lt;P&gt;Helllo MartyG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thank you for your comment, we appreciate your contribution.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;Andres V.</description>
    <pubDate>Wed, 22 Mar 2017 17:37:37 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2017-03-22T17:37:37Z</dc:date>
    <item>
      <title>Memory leak persists in CreateDepthImageMappedToColor of the latest SDK</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402813#M2280</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have found the memory leak still persists in newest version of RealSense SDK (intel_rs_sdk_mw_core_offline_11.0.27.1384)."&lt;/P&gt;&lt;P&gt;My OS is Windows 10.&lt;/P&gt;&lt;P&gt;DCM version is intel_rs_dcm_r200_2.1.27.2853&lt;/P&gt;&lt;P&gt;Is there any previous release that does not have this memory leak?&lt;/P&gt;&lt;P&gt;I did release the memory but it does not have effect. Is my code has anything wrong?&lt;/P&gt;&lt;P&gt;void PXCImage2CVMat(PXCImage *pxcImage, PXCImage::PixelFormat format, cv::Mat *output)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;  PXCImage::ImageData data;&lt;/P&gt;&lt;P&gt;  pxcImage-&amp;gt;AcquireAccess(PXCImage::ACCESS_READ, format, &amp;amp;data);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  int width = pxcImage-&amp;gt;QueryInfo().width;&lt;/P&gt;&lt;P&gt;  int height = pxcImage-&amp;gt;QueryInfo().height;&lt;/P&gt;&lt;P&gt;  if (!format)&lt;/P&gt;&lt;P&gt;  format = pxcImage-&amp;gt;QueryInfo().format;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  int type;&lt;/P&gt;&lt;P&gt;  if (format == PXCImage::PIXEL_FORMAT_Y8)&lt;/P&gt;&lt;P&gt;  type = CV_8UC1;&lt;/P&gt;&lt;P&gt;  else if (format == PXCImage::PIXEL_FORMAT_RGB24)&lt;/P&gt;&lt;P&gt;  type = CV_8UC3;&lt;/P&gt;&lt;P&gt;  else if (format == PXCImage::PIXEL_FORMAT_DEPTH_F32)&lt;/P&gt;&lt;P&gt;  type = CV_32FC1;&lt;/P&gt;&lt;P&gt;  else if (format == PXCImage::PIXEL_FORMAT_DEPTH)&lt;/P&gt;&lt;P&gt;  type = CV_16UC1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  *output = cv::Mat(cv::Size(width, height), type, data.planes[0]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  pxcImage-&amp;gt;ReleaseAccess(&amp;amp;data);&lt;/P&gt;&lt;P&gt;  return;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// inside main function&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;AcquireFrame(true);&lt;/P&gt;&lt;P&gt;  PXCCapture::Sample *sample = sm-&amp;gt;QuerySample();&lt;/P&gt;&lt;P&gt;  PXCImage2CVMat(sample-&amp;gt;color, PXCImage::PIXEL_FORMAT_RGB24, &amp;amp;colorImage);&lt;/P&gt;&lt;P&gt;  PXCImage2CVMat(projection-&amp;gt;CreateDepthImageMappedToColor(sample-&amp;gt;depth, sample-&amp;gt;color), PXCImage::PIXEL_FORMAT_DEPTH, &amp;amp;depthImage);&lt;/P&gt;&lt;P&gt;  cv::cvtColor(colorImage, curImage, CV_BGR2GRAY);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sm-&amp;gt;ReleaseFrame();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance, I really appreciate the help.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Williem&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:07:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402813#M2280</guid>
      <dc:creator>WWill7</dc:creator>
      <dc:date>2017-02-09T10:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak persists in CreateDepthImageMappedToColor of the latest SDK</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402814#M2281</link>
      <description>&lt;P&gt;User feedback suggests that the memory leak is present for both R2 and R3 SDK versions for CreateDepthImageMappedToColor and CreateDepthImageMappedToDepth.  As you found, releasing does not fix the leak.  Leak reports - for CreateDepthImageMappedToDepth, at least -  date back to the original SDK in 2014, so using an earlier SDK version may not solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One user found that updating the DCM when they updated their SDK version (instead of only updating the SDK) fixed the leak for them.  That was the only instance I found in which someone had been able to fix the leak though.  It is not clear if the others had tried updating their DCM when changing SDK version - they did not mention that they had done so when reporting their issue.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:34:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402814#M2281</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-09T10:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak persists in CreateDepthImageMappedToColor of the latest SDK</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402815#M2282</link>
      <description>&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;I have also updated the DCM with the newest version but it does not solve the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 11:19:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402815#M2282</guid>
      <dc:creator>WWill7</dc:creator>
      <dc:date>2017-02-10T11:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak persists in CreateDepthImageMappedToColor of the latest SDK</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402816#M2283</link>
      <description>&lt;P&gt;Given that memory leaks have been occurring with CreateDepthImageMappedToColor / CreateDepthImageMappedToDepth since 2014, I assume that it is a known issue to the RealSense development team but they have not yet been able to find a solution.  It probably falls within the 'will be fixed in a future SDK release' category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of reported cases of leaks in these functions is very low.  This may be because most developers do not realize that a leak is occurring though.  The low number of reports would probably make a fix a lower development priority.   The best way for RealSense users to draw attention to the issue if they are affected by it is to continue to post about it on this forum.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 11:48:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402816#M2283</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-10T11:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak persists in CreateDepthImageMappedToColor of the latest SDK</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402817#M2284</link>
      <description>&lt;P&gt;Hello Williem,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I wanted to let you know that Intel is trying to troubleshoot this memory leak. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Could you please tell us how you found this memory leak so that we may reproduce your issue? &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;How did you find the memory leak and how big of a leak is it?&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I'll be waiting for your response.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;Andres V.</description>
      <pubDate>Wed, 22 Mar 2017 17:10:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402817#M2284</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-03-22T17:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak persists in CreateDepthImageMappedToColor of the latest SDK</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402818#M2285</link>
      <description>&lt;P&gt;I just wanted to add, Andres, that some developers have found in recent times that the memory leak seemed to be as a result of not doing a Release() at the end of their script, and if they Released the memory then the leak disappeared.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 17:27:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402818#M2285</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-03-22T17:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak persists in CreateDepthImageMappedToColor of the latest SDK</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402819#M2286</link>
      <description>&lt;P&gt;Hello Andres,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As MartyG said, that the problem is about I did not release the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of&lt;/P&gt;&lt;P&gt;PXCImage2CVMat(projection-&amp;gt;CreateDepthImageMappedToColor(sample-&amp;gt;depth, sample-&amp;gt;color), PXCImage::PIXEL_FORMAT_DEPTH, &amp;amp;depthImage);  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code should be&lt;/P&gt;&lt;P&gt;PXCImage image = projection-&amp;gt;CreateDepthImageMappedToColor(sample-&amp;gt;depth, sample-&amp;gt;color);&lt;/P&gt;&lt;P&gt;PXCImage2CVMat(image, PXCImage::PIXEL_FORMAT_DEPTH, &amp;amp;depthImage);  &lt;/P&gt;&lt;P&gt;image-&amp;gt;Release();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all of your consideration.&lt;/P&gt;&lt;P&gt;I think this problem is solved now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Williem&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 17:35:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402819#M2286</guid>
      <dc:creator>WWill7</dc:creator>
      <dc:date>2017-03-22T17:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak persists in CreateDepthImageMappedToColor of the latest SDK</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402820#M2287</link>
      <description>&lt;P&gt;Helllo MartyG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thank you for your comment, we appreciate your contribution.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;Andres V.</description>
      <pubDate>Wed, 22 Mar 2017 17:37:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402820#M2287</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-03-22T17:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak persists in CreateDepthImageMappedToColor of the latest SDK</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402821#M2288</link>
      <description>&lt;P&gt;Hello Williem, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thank you for sharing how you solved the issue.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I'll inform the corresponding team of your experience.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Have a nice day.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;Andres V.</description>
      <pubDate>Mon, 27 Mar 2017 16:09:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Memory-leak-persists-in-CreateDepthImageMappedToColor-of-the/m-p/402821#M2288</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-03-27T16:09:06Z</dc:date>
    </item>
  </channel>
</rss>

