Page 1 of 1

2.6.2 Bug when saving/ loading large .bin files

Posted: Thu Nov 05, 2015 10:16 pm
by Aarie
Hey Daniel,
when saving larger .bin files (>300m points) with 2.6.2., the file crashes CC when I try to reopen it. Opening the .bin file with earlier versions is also not possible, I get the "file corrupted" or something like that.
The same dataset can be saved and reopened without a problem using the 2.6.1 version. Trying to open the 2.6.1. file with 2.6.2 leads to the same message "file corrupted".

This is on Windows 7 64bit. Nvidia GPU (6GB vram).
Cheers.
Arie

Re: 2.6.2 Bug when saving/ loading large .bin files

Posted: Fri Nov 06, 2015 8:51 am
by daniel
Hi,

This is a bit strange because there were only minor changes in the BIN import/export mechanism. What kind of entity are you saving in this file? A single point cloud?

Can you maybe share the file with me? (the one saved with the 2.6.1 version).

Re: 2.6.2 Bug when saving/ loading large .bin files

Posted: Fri Nov 06, 2015 9:09 am
by daniel
Oups, no need to send me the file, I finally found a way to reproduce the bug (you have to put 300 M. in a single cloud - 3 clouds of 100M. won't make CC crash ;)

Re: 2.6.2 Bug when saving/ loading large .bin files

Posted: Fri Nov 06, 2015 1:03 pm
by daniel
Okay the bug is fixed.

It is a strange limit that appears when loading a lot of bytes from a file in a single row (in previous versions we were always reading the files in very small chunks so it wouldn't happen). The aim was to go faster ;).

Now CC will continue to load the files in several chunks (but bigger ones). This seems to fix the bug at least.

The fixed beta version is here: http://www.cloudcompare.org/release

Re: 2.6.2 Bug when saving/ loading large .bin files

Posted: Fri Nov 06, 2015 7:49 pm
by Aarie
Hey Daniel,
once again, I'm very impressed by the speed of your reaction. Thank you!
I can confirm, that it works fine now!

Really amazing what you are doing with CC!
Cheers,
Arie

Re: 2.6.2 Bug when saving/ loading large .bin files

Posted: Fri Nov 06, 2015 8:05 pm
by daniel
I really hate bugs ;)