I have never seen any exception in the simulator or on any Android device while drawing these polygons.
This is why I find it very suspicious that this is now happening on my iPad mini.
No build flags are defined, so the iOS build does not use unsafe mode.
Some more details:
The control fills half the Form, and when it crashes it shows a vertically repeating pattern of the screen part above the component. (The title bar and a text field with some space in between.)
When I rotate the screen after the crash, the component is replaced by background and the screen is a stretched version of the previous screen.
This is an example of a "bad" polygon that caused a crash: (576,382), (576,195), (579,195), (582,195), (585,195), (589,195), (589,195)
When I skip the fillPolygon call for this specific set of points, the crash does not take place anymore.
I now suspect something goes wrong inside the fillPolygon function, although I have not seen any reports of this api failing before.
Any suggestions what else I could do to help find the cause?