Software Archive
Read-only legacy content
17061 Discussions

3DScan Memory Issue

KYOUNGRYOL_K_
Beginner
1,037 Views

Hi, 

Nowadays I've been tested 3DScan module with RealSense F200 sensor which I have. The quality of the constructed model was pretty good so that I expect that we could be doing well in this 3D reconstruction domain (comparing with Kinfu by Microsoft).

BTW, it consume more than 450 MB of memory when I call the function reconstruct(*) - it's okay though - it does not release memory even I call Dispose() method and call GC.collect() in C# wrapper, but I think this occurs even in C++ library which I cannot access to the source code for the modification to release this unmanaged memory.

I, as an Intel Software Engineer, too, think this could be very critical issue. Hope this bug could be fixed asap. Thanks.

0 Kudos
6 Replies
MartyG
Honored Contributor III
1,037 Views

Memory usage was being discussed recently on the post below.  It could be helpful to you.

https://software.intel.com/en-us/forums/topic/545104

0 Kudos
KYOUNGRYOL_K_
Beginner
1,037 Views

Marty,
thanks for your comment.

Actually I'm pretty sure that the function reconstruct(*) in 3DScan module shows memory leak, which I don't think this is my programming issue, but the memory leak bug in the module.

0 Kudos
Timothy_T_
Beginner
1,037 Views

I got the same problem too.....
this only happened after Reconstruct(*)...

Here is my code : 
result = my3DScan->Reconstruct(format, filename, reconstructionOptions);
it caused memory leak, 
but the memory did be released if I didn't do Reconstruct(*).

I think this is an Intel RSSDK bug.

Another issue is when I tried to use System::ComponentModel::backgroundWorker to implement DF_3DScan Sample.
The memory usage grows 
horribly when called function PreviewImageContainsObject(PXCImage* preview_image),
which caused my3DScan->SetMode(PXC3DScan::SCANNING) always equal PXC_STATUS_ITEM_UNAVAILABLE 
that I cannot do scan anymore unless I restart my program.

But this memory issue doesn't occur in the original single thread DF_3DScan sample code.

0 Kudos
Pierre_P_
Beginner
1,037 Views

Hi,

 

I'm getting exactly the same memory leak in the C++ code as well.

0 Kudos
Colleen_C_Intel
Employee
1,037 Views

thanks for reporting this issue. It is being investigated by Intel.

0 Kudos
Pierre_P_
Beginner
1,037 Views

Thanks Colleen. I posted earlier about this as well. By the way I'm getting a memory leak in Reconstruct() in both the V4 and V5 (R3) SDK versions, although the leak is significantly bigger in V4

0 Kudos
Reply