Page 1 of 1

CC crashes when performing certain rasterize operations

Posted: Fri Jan 22, 2016 9:48 pm
by dmbrubac
I've found that when you:
1. perform a rasterize operation with resample input loud checked (e.g. maximum height on a 0.25m grid) and create a cloud,
2. then rasterize the new cloud again but with an average calculation (e.g. average height on a 1.00m grid), the resample input loud check is disabled but remains checked.

CC will crash if you attempt to make a cloud at this point.

I'm reasonably certain this is the cause and extent of the problem, but I could have missed some combinations. Regardless, I think when resample input loud gets disabled it also needs to be cleared.

On a related topic, I had previously asked about using resample input loud with average, where CC chooses the XY of the point closest to the average Z and creates a new point with the discovered XY and the average Z. I've been able to work around this by pulling my points into Manifold GIS and using a SQL query to create the points I want. I will post the SQL if you want, though it's unlikely to be useful without Manifold and I've now gone a bit further with it to snap those points onto a line. The SQL is also quite long to handle certain degenerate conditions.

Re: CC crashes when performing certain rasterize operations

Posted: Sat Jan 23, 2016 1:14 pm
by daniel
Have you tried this with the latest beta version 2.6.3? Because I think it has been fixed already.

And for you other request, it has been added to the TODO list. But you'll see that there are many other things in this list! (https://github.com/cloudcompare/trunk/b ... C/TODO.txt)

Re: CC crashes when performing certain rasterize operations

Posted: Sat Jan 23, 2016 4:17 pm
by dmbrubac
Yes, I'm doing this with 2.6.3 beta. I've found it to be more susceptible to crashes doing raster operations than 2.6.2. Sorry :-(

Glad to see the request on the list!

Re: CC crashes when performing certain rasterize operations

Posted: Sat Jan 23, 2016 5:34 pm
by dmbrubac
I've tried some more permutations. It looks like if you create a cloud as a result of rasterization process with OR WITHOUT resample input loud checked, and then try to do another rasterization on the resultant cloud with resample input loud checked, CC will crash every time. The second and subsequent rasterization without resample input loud will not cause a crash.

In other words, you can only create a cloud with resample input loud as the first process and then once you create a cloud with resample input loud checked, you cannot process the resultant cloud with resample input loud without crashing.

This also seems to be true only if the resultant and parent clouds are still loaded in the DB Tree. If I save the resultant cloud, clear the tree and then load the resultant cloud back in, I can process using resample input loud. If I only remove the parent cloud and try to process the resultant without saving and reloading, CC crashes.

Hopefully this will help you find the issue and give a work-around to those trying to do multiple rasterizations with resample input loud checked.

Re: CC crashes when performing certain rasterize operations

Posted: Mon Jan 25, 2016 9:46 pm
by daniel
Yes, that's the way to reproduce the bug! Nice catch.

I've fixed it (it was indeed occurring when generating a new grid from a cloud already generated with the Rasterize tool).

And as a special retribution for spending time on tracking this bug, I've added the possibility to resample the input cloud in the plane while using the cell average height.

You can download the latest beta version online (2.6.3).

Re: CC crashes when performing certain rasterize operations

Posted: Fri Jan 29, 2016 8:11 pm
by daniel
Oups I just realized the update of the online version was not completed! Now it's ok ;)

Re: CC crashes when performing certain rasterize operations

Posted: Mon Feb 01, 2016 7:47 pm
by dmbrubac
Thanks Daniel!

That's why it's worth it to make a complete bug report!