CC crashes when performing certain rasterize operations

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
dmbrubac
Posts: 20
Joined: Sun Aug 09, 2015 2:27 pm

CC crashes when performing certain rasterize operations

Post 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.
daniel
Site Admin
Posts: 7660
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: CC crashes when performing certain rasterize operations

Post 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)
Daniel, CloudCompare admin
dmbrubac
Posts: 20
Joined: Sun Aug 09, 2015 2:27 pm

Re: CC crashes when performing certain rasterize operations

Post 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!
dmbrubac
Posts: 20
Joined: Sun Aug 09, 2015 2:27 pm

Re: CC crashes when performing certain rasterize operations

Post 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.
daniel
Site Admin
Posts: 7660
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: CC crashes when performing certain rasterize operations

Post 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).
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7660
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: CC crashes when performing certain rasterize operations

Post by daniel »

Oups I just realized the update of the online version was not completed! Now it's ok ;)
Daniel, CloudCompare admin
dmbrubac
Posts: 20
Joined: Sun Aug 09, 2015 2:27 pm

Re: CC crashes when performing certain rasterize operations

Post by dmbrubac »

Thanks Daniel!

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