Home › Forums › Nazca › Questions and Answers › Calibre DRC crashes: Failure to read input file stdin.gds at record offset 282. › Reply To: Calibre DRC crashes: Failure to read input file stdin.gds at record offset 282.
Dear Andreas,
The class structure does not make a difference and to simplify things, the code below should give the exact same output file as your example in the initial question with 180 degrees:
import nazca as nd
import nazca.demofab as demofab
ic = demofab.deep
with nd.Cell(name='WG', instantiate=True) as wg:
ic.strt(length=100, arrow=False).put()
ic.strt(length=20, arrow=False).put(200, 0, 180)
wg.put()
nd.export_gds(filename='stdin.gds', ascii=True)
The problem at the record at offset 282 seems to be the angle record of the sref. If you set instantiate=False in de code above you get the example that you posted as stdin that did not have a Calibre problem. I still do not see why the angle in the sref should be an issue. It is a 8-byte real as it is supposed to be. There is an optional strans record in gds before the angle record. Nazca leaves it out when there is none needed. A wild try is to see if it loads in Calibre in your situation with a strans record added using wg.put(flip=True)
.
Alternatively, see what happens when you load the gds in KLayout and save it there to gds again or save the file to OASIS, load it again, and save to gds. After that try to load in Calibre.