klayout icon indicating copy to clipboard operation
klayout copied to clipboard

KLayout MacOS - The operation couldn’t be completed. (OSStatus error 99999.)

Open lukasc-ubc opened this issue 7 years ago • 16 comments

Can't start the application.

The operation couldn’t be completed. (OSStatus error 99999.)

This is running MacOS High Sierra, 10.13.4, and klayout-0.25.3-macOS-HighSierra-1-Qt5101brew-Py364-9708d35.dmg

lukasc-ubc avatar Jun 25 '18 16:06 lukasc-ubc

I think this is the version I compiled. Did this just happen out of nowhere? Can you launch from terminal to try to check what is generating the error?

thomaslima avatar Jun 25 '18 17:06 thomaslima

From terminal, it works. Probably it breaks in the GUI because of the errors, which should be caught by the Log…

iMac-Hickup:klayout-25-3-Qt51brew-Py3.app lukasc$ cd Contents/MacOS/ iMac-Hickup:MacOS lukasc$ ./klayout ERROR: Reading zoom_animate.lym in /Users/lukasc/.klayout/macros: XML parser error: error occurred while parsing element in line 47, column 16 ERROR: Reading zoom_animate.lym in /Users/lukasc/.klayout/macros: XML parser error: error occurred while parsing element in line 47, column 16 KLayout 0.25.3 loading Lumerical_INTC_CMLs.txt resetting Lumerical INTERCONNECT Python integration resetting Lumerical FDTD Python integration resetting Lumerical Python integration loading SiEPIC.github Initializing 'SiEPIC General' Library. ERROR: /Users/lukasc/.klayout/pymacros/SiQL_PCells/SiQL_PCells.lym:531: No module named 'numpy' /Users/lukasc/.klayout/pymacros/SiQL_PCells/SiQL_PCells.lym:531 /Users/lukasc/.klayout/pymacros/SiQL_PCells/SiQL_PCells.lym:527 (class ModuleNotFoundError) Initializing 'EBeam' Library. Initializing 'EBeam' Library. reading: /Users/lukasc/SiEPIC_EBeam_PDK/klayout_dot_config/tech/EBeam/pymacros/SiEPIC-EBeam.gds Initializing 'EBeam-dev' Library. ERROR: /Users/lukasc/.klayout/tech/EBeam/pymacros/photonic_crystals/photonic_crystals.py:528: No module named 'numpy' /Users/lukasc/.klayout/tech/EBeam/pymacros/photonic_crystals/photonic_crystals.py:528 /Users/lukasc/.klayout/tech/EBeam/pymacros/photonic_crystals/photonic_crystals.py:524 /Users/lukasc/.klayout/tech/EBeam/pymacros/SiEPIC_EBeam-dev Library.lym:3385 /Users/lukasc/.klayout/tech/EBeam/pymacros/SiEPIC_EBeam-dev Library.lym:3430 (class ModuleNotFoundError) Initializing 'GSiP' Library. Initializing 'SiEPIC_IME' Library. ERROR: /Users/lukasc/.klayout/python/SiEPIC/utils/geometry.py:8: No module named 'numpy' /Users/lukasc/.klayout/python/SiEPIC/utils/geometry.py:8 /Users/lukasc/Documents/GitHub/SiEPIC_IME_Library/SiEPIC_IME_KLayout_Library/tech/SiEPIC_IME/pymacros/SiEPIC_IME_Lightwave.py:5 /Users/lukasc/.klayout/tech/SiEPIC_IME/pymacros/0_Load_Libraries.lym:7 (class ModuleNotFoundError)

lukasc-ubc avatar Jun 25 '18 23:06 lukasc-ubc

@lukasc-ubc i need to compile a version with the python ssl module embedded, otherwise pip 10 is going to fail to install these modules automatically, but this is a discussion to be had in siepic-tools. i don't know why python errors are causing this OS error 99999. my klayout doesn't crash. wish i could reproduce this right now.

thomaslima avatar Jun 25 '18 23:06 thomaslima

In the older versions, I get the same list of errors in the File | Log Viewer.

Can you create an error in one of the lyp libraries, e.g., replace import numpy with import numpyxxx?

lukasc-ubc avatar Jun 26 '18 04:06 lukasc-ubc

Errors are treated normally over here. screen shot 2018-06-26 at 00 07 52 Maybe try reinstalling from the .dmg?

thomaslima avatar Jun 26 '18 04:06 thomaslima

  1. Log viewer: doesn’t let me resize.

  2. I fixed all the SiEPIC errors so that from Terminal it loads error free. Note that I added a MessageBox query for all the places you had auto-pip-install.

It still doesn't start for me. Here is the output of the Console.App:

image

I will run an OS update and see if that fixes it.

lukasc-ubc avatar Jun 26 '18 05:06 lukasc-ubc

interesting. have you tried right-click -> open? security assessment... I am not quite a Mac developer, but I know launching third party apps require a manual authorization from contents downloaded from the internet.

thomaslima avatar Jun 26 '18 05:06 thomaslima

hmm. didn't help. Yes, I did right-click open... it did a check for a while, then asks if I want to open. then waits for a while, then the error.

lukasc-ubc avatar Jun 26 '18 05:06 lukasc-ubc

Can you show me the result of xattr -l /Applications/klayout.app/ from terminal?

thomaslima avatar Jun 26 '18 05:06 thomaslima

On another MacOS computer, I was able to get it working. So something specific with my desktop or user account.

iMac-Hickup:~ lukasc$ xattr -l /Applications/klayout.app/ com.apple.quarantine: 0181;5b311c9b;Chrome;B495252B-B98B-4C48-832C-4F9206493D0D

on the working computer, I downloaded it using Safari...

lukasc-ubc avatar Jun 26 '18 05:06 lukasc-ubc

There it says that this file was downloaded using Chrome. If you trust the source, maybe try removing these special quarantine attributes? xattr -dr com.apple.quarantine /Applications/klayout.app

thomaslima avatar Jun 26 '18 05:06 thomaslima

wow, that fixed it!

prior to that, I tried on a different user account, but that didn't help.

lukasc-ubc avatar Jun 26 '18 05:06 lukasc-ubc

Great! I have no idea how you got there though. I think the bug might be in the OS itself.

I am working on compiling a new version with Qt5.11, which fixes the resizing issue.

thomaslima avatar Jun 26 '18 05:06 thomaslima

Done in #138 .

thomaslima avatar Jun 26 '18 07:06 thomaslima

@klayoutmatthias I believe this issue can be closed.

thomaslima avatar Sep 21 '18 00:09 thomaslima

this issue should be closed, no ?

stefanottili avatar Jan 31 '24 21:01 stefanottili