The statistics bundle does not verify if the planar figure chosen for masking has a non-zero area and this leads to a complete crash of the application.
How to reproduce:
- Load an image
- Open the Measurement View
- Draw a polygon ( i.e. a triangle ) and malform it by moving ALL polygon vertices toward a boundary of the image -> all vertices then lie on a single line
- Activate the statistics view and use the malformed figure as mask -> CRASH
Activating statistics view before malforming the figure, the crash occurs as soon as the last vertex of the polygon figure is placed on the boundary ( it is because the statistics is immediately updating after changes in the figure )