In KLayout 0.25.4, MacOS:
-
I created a layout in GDS
-
ran a script to do an inversion
-
Saved the GDS, and received the above error
-
Saved the file as a DXF, and that works
-
Closed and opened the DXF
-
Tried saving again as a GDS, and same error
-
I also tried to clean up the polygons by doing "Merge Shapes", and that didn't help.
wg_loss_zep2.DXF.zip
Edit: It would be nice if there was a utility that checked for strange polygon things, such as in the above layout. By doing a "Size Shape" 0.001 and -0.001, I was able to get it to save.