<?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 Hi, in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999653#M317</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Embree version used is 2.6.0 64 bit, but latest one (2.6.2) has the same issue.&lt;/P&gt;

&lt;P&gt;using Visual Studio 2013 on Win8.1 64 bit&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2015 07:49:50 GMT</pubDate>
    <dc:creator>Zviadi_V_</dc:creator>
    <dc:date>2015-08-27T07:49:50Z</dc:date>
    <item>
      <title>Memory leak in dynamic_scene sample?</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999651#M315</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;dynamic_scene sample seems to be leaking memory after each rtcCommit call. I tried to track down the issue and it seems that a call to recurse() from&amp;nbsp;operator() in bvh_builder_sah.h, results in 0,4MB of memory leaking. Our project uses Embree with over a hundred of triangle meshes and every time we update the geometry buffers and call rtcCommit, we end up with a 4MB of memory leaking. Could you please suggest a possible fix or some workaround for this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 00:05:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999651#M315</guid>
      <dc:creator>Zviadi_V_</dc:creator>
      <dc:date>2015-08-27T00:05:59Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999652#M316</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sounds like a bug in the memory allocation for dynamic scenes, I'll have a look at it.&lt;/P&gt;

&lt;P&gt;Could give us some more information on the Embree, OS, &amp;nbsp;and compiler version you are using?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 07:30:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999652#M316</guid>
      <dc:creator>BenthinC_Intel</dc:creator>
      <dc:date>2015-08-27T07:30:19Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999653#M317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Embree version used is 2.6.0 64 bit, but latest one (2.6.2) has the same issue.&lt;/P&gt;

&lt;P&gt;using Visual Studio 2013 on Win8.1 64 bit&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 07:49:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999653#M317</guid>
      <dc:creator>Zviadi_V_</dc:creator>
      <dc:date>2015-08-27T07:49:50Z</dc:date>
    </item>
    <item>
      <title>OK, this seems to be a</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999654#M318</link>
      <description>&lt;P&gt;OK,&amp;nbsp;this seems to be a problem with the fast two-level BVH builder:&lt;/P&gt;

&lt;P&gt;As a quick workaround please add the following line to bvh4_builder_twolevel.cpp (Embree 2.6.2) at line 50:&lt;/P&gt;

&lt;P&gt;bvh-&amp;gt;alloc.clear();&lt;/P&gt;

&lt;P&gt;If this fixes the problem on your side please let me know.&lt;/P&gt;

&lt;P&gt;We'll look into a more elegant/efficient solution&amp;nbsp;as the current&amp;nbsp;workaround and update 2.6.2&amp;nbsp;asap.&lt;/P&gt;

&lt;P&gt;Thanks a lot for reporting this issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 09:50:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999654#M318</guid>
      <dc:creator>BenthinC_Intel</dc:creator>
      <dc:date>2015-08-27T09:50:53Z</dc:date>
    </item>
    <item>
      <title>Thanks for the quick feedback</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999655#M319</link>
      <description>&lt;P&gt;Thanks for the quick reply. I tested the suggested workaround in Embree 2.6.0 and this seem to fix the memory leak issue. Now the memory usage of dynamic_scene sample never goes above 150MB, but oscillates between 150.4 and 150 (debug build). I'll try to update Embree lib in our project to see if the huge memory leak issue we had is also fixed there. Will let you know how it goes&lt;/P&gt;

&lt;P&gt;Thanks for you help!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:43:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999655#M319</guid>
      <dc:creator>Zviadi_V_</dc:creator>
      <dc:date>2015-08-27T11:43:00Z</dc:date>
    </item>
    <item>
      <title>This indeed fixed our issue.</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999656#M320</link>
      <description>&lt;P&gt;This indeed fixed our issue. Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:13:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Memory-leak-in-dynamic-scene-sample/m-p/999656#M320</guid>
      <dc:creator>Zviadi_V_</dc:creator>
      <dc:date>2015-08-27T16:13:29Z</dc:date>
    </item>
  </channel>
</rss>

