Forum Replies Created
-
AuthorPosts
-
8 June 2019 at 16:04 in reply to: Calibre DRC crashes: Failure to read input file stdin.gds at record offset 282. #5579
Andreas
MemberThat seems to do the trick for now. Thanks!
7 June 2019 at 23:18 in reply to: Calibre DRC crashes: Failure to read input file stdin.gds at record offset 282. #5577Andreas
MemberDear Ronald,
The code you provided indeed behaves the same as before: it runs when instantiate is false, it does not when instantiate is true.
When I put wg.put(flip is true), calibre runs, even when instantiate is true.
When I open a crashing gds in klayout and do a “save as”, Calibre does not seem to crash any longer.I’ll run calibre on the re-saved gds files. Hopefully you can track down the problem, so I do not need to insert too many manual steps
Thank you for looking into this problem! I’ll keep you posted should the problem re-occur.
Andreas7 June 2019 at 20:51 in reply to: Calibre DRC crashes: Failure to read input file stdin.gds at record offset 282. #5570Andreas
MemberDear Ronald,
I changed line 777 as recommended.
The resulting ascii files are below:
- stdin is when the waveguide was added as demofab.deep.strt
https://drive.google.com/open?id=1hg02GvdNSm-6MMicQHQEhp3Q1LewA1At - stdin2 was when the waveguide was in a class of its own
https://drive.google.com/open?id=1GW-azep2VLyemiMA2a0BmRevNdr1e8eb
I do not see major difference between these files, but perhaps you can see more to it?
7 June 2019 at 14:50 in reply to: Calibre DRC crashes: Failure to read input file stdin.gds at record offset 282. #5567Andreas
MemberDear Ronald,
I forced to write the ascii file in ‘utf-8’ by opening the file as
with open(filename, ‘w’, encoding=’utf-8′) as f:The resulting ascii files are below:
- stdin is when the waveguide was added as demofab.deep.strt
https://drive.google.com/open?id=1hg02GvdNSm-6MMicQHQEhp3Q1LewA1At - stdin2 was when the waveguide was in a class of its own
https://drive.google.com/open?id=1GW-azep2VLyemiMA2a0BmRevNdr1e8eb
7 June 2019 at 10:51 in reply to: Calibre DRC crashes: Failure to read input file stdin.gds at record offset 282. #5565Andreas
MemberDear Ronald,
When I exchange the WaveguideInClass by demofab.deep.strt calibre does not crash.
When I turn on the ascii boolean, the export_gds method crashes, even when there is only demofab.deep.strt objects being used. The error given is:
nd.export_gds(filename=’GDS_test\\stdin.gds’, ascii=True)
File “C:\ProgramData\Anaconda3\lib\site-packages\nazca\layout.py”, line 1656, in export_gds
info=True, flat=flat, clear=clear, bb=bb, **kwargs)
File “C:\ProgramData\Anaconda3\lib\site-packages\nazca\layout.py”, line 1596, in export
export.generate_layout(topcells)
File “C:\ProgramData\Anaconda3\lib\site-packages\nazca\layout.py”, line 1407, in generate_layout
self.export_topcells(topcells)
File “C:\ProgramData\Anaconda3\lib\site-packages\nazca\layout.py”, line 1348, in export_topcells
ga.ASCII_write(GDS.filename+’.asc’)
File “C:\ProgramData\Anaconda3\lib\site-packages\nazca\gds_import.py”, line 778, in ASCII_write
f.write(buf.getvalue())
File “C:\ProgramData\Anaconda3\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u250c’ in position 316: character maps to <undefined>
Process terminated with an exit code of 1 - stdin is when the waveguide was added as demofab.deep.strt
-
AuthorPosts