$ 0 0 In the end, I found a workaround which was to draw the polygon in a shapefile. If I come across the correct solution and find out why the crash is occurring I will post here.