Community
ReCap SDK Forum
Welcome to Autodesk’s ReCap SDK Forum. Share your knowledge, ask questions, get support and explore popular ReCap SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Out-of-Memory Error When Iterating Over Large Point Clouds Using RCPointIterator in RealitySolutionsSDK_v24.0.1

1 REPLY 1
Reply
Message 1 of 2
mark.morrisonHBXQG
92 Views, 1 Reply

Out-of-Memory Error When Iterating Over Large Point Clouds Using RCPointIterator in RealitySolutionsSDK_v24.0.1

I am experiencing an out-of-memory error when using RealitySolutionsSDK_v24.0.1 to read an RCP file that contains unstructured scans of over 7 billion points. The issue occurs during point iteration using the RCPointIterator, even when running the sample code provided in the SDK documentation (RCPReaderSample).

Environment:

SDK Version: RealitySolutionsSDK_v24.0.1
Sample Code: RCPReaderSample from SDK examples
Operating System: Windows 10

Steps to Reproduce:

Load an RCP file containing unstructured scans with over 7 billion points using the RCPReaderSample code. Using the following code snippet to iterate over the points, I removed the write to file from the sample:

RCPointIteratorSettings settings;
settings.setDensity(pointDensity);
settings.setIsVisiblePointsOnly(visiblePointsOnly);

auto totalPoints = 0u;
auto pointIterator = project->createPointIterator(settings);
while (pointIterator->moveToNextPoint())
{
totalPoints++;
}

Run the application and monitor memory usage.

Expected Behavior:

The application should efficiently iterate over all points without exhausting system memory, regardless of the point cloud size.

Actual Behavior:

The application continuously consumes memory during iteration until it eventually runs out of memory and crashes.

Additional Information:

The issue occurs even when using the sample code provided with the SDK, suggesting it is not specific to my implementation. The problem seems to be exacerbated with large, unstructured point clouds. No exceptions or error messages are provided before the crash; the application simply runs out of memory.

Any guidance on workarounds or fixes would be greatly appreciated.

1 REPLY 1
Message 2 of 2

 

I tried setting:

RCProject::setSystemMemoryLimitInMB(64);

An memory still climbed to over 19 gigs before I killed it.  So that does not seem to work.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report