Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: app crash on boot: Python cannot be opened because of a problem #261

Open
wAuner opened this issue Feb 27, 2021 · 6 comments
Open

Comments

@wAuner
Copy link

wAuner commented Feb 27, 2021

Running Big Sur 11.2.2

Whenever I boot my system after I installed the yubikey manager from the yubico website (currently version 1.1.5) I get a crash report report from python, caused by the yubikey manager.
Here is the log:

Process:               Python [1117]
Path:                  /Applications/YubiKey Manager.app/Contents/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.8.2 (3.8.2)
Code Type:             X86-64 (Native)
Parent Process:        mbfloagent [650]
Responsible:           mbfloagent [650]
User ID:               501

Date/Time:             2021-02-27 15:24:28.197 +0100
OS Version:            macOS 11.2.2 (20D80)
Report Version:        12
Bridge OS Version:     5.2 (18P4347)

Time Awake Since Boot: 250 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  dyld: Using shared cache: 77B63435-1866-32DD-98A1-47090B666EFA
Library not loaded: /Library/Frameworks/Python.framework/Versions/3.8/Python
  Referenced from: /Applications/YubiKey Manager.app/Contents/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
  Reason: image not found

Binary Images:
       0x107f80000 -        0x107f80fff +com.yubico.python (3.8.2 - 3.8.2) <A89E016E-52A7-3CC7-A797-C913CA1EADB6> /Applications/YubiKey Manager.app/Contents/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
       0x1105b9000 -        0x110654fff  dyld (832.7.3) <0D4EA85F-7E30-338B-9215-314A5A5539B6> /usr/lib/dyld
    0x7fff204eb000 -     0x7fff20986fff  com.apple.CoreFoundation (6.9 - 1774.101) <2A0E160E-9EE6-3B23-8832-6979A16EC250> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

There seems to be a problem with a dynamic library that can't be found.

@wAuner wAuner changed the title macOS: Python cannot be opened because of a problem macOS: app crash on boot: Python cannot be opened because of a problem Feb 27, 2021
@igorbernstein
Copy link

> ls /Library/Frameworks/Python.framework/Versions/3.8/Python
ls: /Library/Frameworks/Python.framework/Versions/3.8/Python: No such file or directory

It looks like Big Sur moved python3 to developer tools and its no longer shipped with the OS. Which probably breaks this bundling?

- name: Copy over Python.framework to app bundle
run: |
cp -a /Library/Frameworks/Python.framework ykman-gui/ykman-gui.app/Contents/Frameworks/
sudo find ykman-gui/ykman-gui.app/Contents/Frameworks/Python.framework -name '*.pyc' -delete
sudo find ykman-gui/ykman-gui.app/Contents/Frameworks/Python.framework -name '__pycache__' -delete

@fdennis
Copy link
Contributor

fdennis commented Mar 2, 2021

Hi,
Thanks for reporting this.
@igorbernstein thank you for doing some investigation. The log does also mention Referenced from: /Applications/YubiKey Manager.app/Contents/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python which might suggest that the Python framework we are building is causing this. That makes sense since Python 3.9.1 is the first version to support Big Sur and in the latest release of YubiKey Manager GUI we have Python 3.8.3, if I am not mistaken. We will most likely try with Python 3.9.1+ for the next release and see if that solves the issue.

@fdennis
Copy link
Contributor

fdennis commented Mar 16, 2021

Please try updating to the latest version, 1.2.0, and see if that helps. We have a newer version of Python there that will hopefully solve this issue. Reopen if it does not.

@fdennis fdennis closed this as completed Mar 16, 2021
@smaddock
Copy link

smaddock commented Jun 4, 2021

I'm getting this error in version 1.2.3 (Python 3.9.2). It looks like the Python.app is referencing the non-existant OS library instead of the bundled library.

Process:               Python [95978]
Path:                  /Applications/YubiKey Manager.app/Contents/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier:            com.yubico.python
Version:               3.9.2 (3.9.2)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Python [95978]
User ID:               501

Date/Time:             2021-06-04 14:45:01.499 -0600
OS Version:            macOS 11.4 (20F71)
Report Version:        12
Bridge OS Version:     5.4 (18P4663)
Anonymous UUID:        E16D5099-88AE-E296-ED8C-8D7D09E3931B


Time Awake Since Boot: 5500 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  dyld: Using shared cache: 4A889CE9-8D7E-304E-A5F7-84D819B0BF9C
Library not loaded: /Library/Frameworks/Python.framework/Versions/3.9/Python
  Referenced from: /Applications/YubiKey Manager.app/Contents/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
  Reason: image not found

Binary Images:
       0x10ae18000 -        0x10ae1bfff +com.yubico.python (3.9.2 - 3.9.2) <44BCD2F5-7DAE-3729-80BE-9F5587ED0AB3> /Applications/YubiKey Manager.app/Contents/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
       0x11936e000 -        0x119409fff  dyld (852) <1AC76561-4F9A-34B1-BA7C-4516CACEAED7> /usr/lib/dyld
    0x7fff20652000 -     0x7fff20aeffff  com.apple.CoreFoundation (6.9 - 1776.103) <01EFB7F8-BCE6-32DF-A0B8-02F9027F882C> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

@smaddock
Copy link

smaddock commented Jun 4, 2021

Looks like I don't have permission to re-open.

@fdennis fdennis reopened this Jun 7, 2021
@fdennis
Copy link
Contributor

fdennis commented Jun 7, 2021

@smaddock Thanks for letting us know! I have reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants