Page 1 of 1

Crash on various operation with very large clouds

Posted: Wed Nov 23, 2011 9:29 am
by Dimitri
Hi Daniel,

I've been trying to use CC to subsample (with a space constraint) large point clouds (55 millions points, even 22 millions points), but I systematically get a crash (after the octree was built and before the phase of sub-sampling).
Meanwhile, it's easy to randomly subsample to get the cloud down to ~ 10 millions points, and then the spatial resampling is working.

Cheers

Dimitri

PS: Now Cloudcompare has got a few users in New-Zealand ! It's the beggining of world domination...

Re: Crash on various operation with very large clouds

Posted: Wed Nov 23, 2011 1:21 pm
by daniel
Ok, I'll investigate this asap!

Re: Crash on various operation with very large clouds

Posted: Mon Nov 28, 2011 8:42 pm
by daniel
Ok Dimitri, here are some news:

indeed there was a general limitation due to the extensive use of a standard structure (std::vector) that seems to be limited (at least on Windows) around ~20 M. values. As we were using it very often, it explains that a lot of algorithms couldn't handle much more points.

So I replaced this structure as much as possible (by the special CC "chunked" array that is a little bit slower than a standard array, but that can fill almost all available memory). I have also updated the spatial sampling algorithm to be a little more efficient (but of course, with 90 M. points, it won't make a lot of differences... it will still be very slow!). I've also tried to make CC more robust to "out of memory" errors. A lot of things have been changed in the code during this few days, so for once I'll try to make intensive tests before releasing this new version of CC. I'll keep you informed (maybe you have already signed up to the CC update mailing list?).

Anyway, as a general consideration, the actual version of CC is best suited for clouds up to 30M. points (depending on their spatial distribution). This is mainly due to the actual octree implementation (which is limited to 10 levels of subdivision, and which doesn't like big density variations).I'll try to test new implementations of the octree or even a K-D tree structure to see if we could go farther. For the moment, as you suggested a while ago, I'll try to make the resampling algorithms available from the command line.

Re: Crash on various operation with very large clouds

Posted: Sun Dec 11, 2011 9:01 pm
by daniel
I've released a new version today (11 dec. 2012) that should fix this issue (and various others!). It is also possible to apply subsampling algorithms in command line mode (wiki: http://www.cloudcompare.org/doc/wiki/in ... ommandLine).