It looks like you're new here. If you want to get involved, click one of these buttons!
I just started to write my own script for a Pcell for KLayout. If I have a bug that is not present when I run the script in the IDE, but causes the script to crash when run when adding the Pcell to a layout, KLayout crashes in a bad way. I get an error message that I cannot get rid. The pointer turns to a red crossed circle and I cannot click anything in KLayout:
Please let me know if I can provide any additional information to resolve the issue. I run on Windows 10 with the latest KLayour binary downloaded from klayout.org.
One subtle issue that can cause the above situation is if I try to access a file in the current working directory from my script. But the current working directory is different in the two contexts, and thus if the file is missing in one of those directories, I get the above error.