-
Notifications
You must be signed in to change notification settings - Fork 51
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
NSData creation from bytes segfaults on MacOSX 10.15 beta #271
Comments
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). Is this something you can reproduce using the latest release on PyPI? The version of PyObjC shipped with macOS is ancient, and is not something I’m involved in. |
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). BTW. I cannot test on the latest Catalina beta myself, I’m running the beta’s in a VMware Fusion VM and that’s not compatible with recente beta releases. |
Original comment by rndblnch (Bitbucket: rndblnch, GitHub: rndblnch). I just managed to test with the system python +pyobjc installed from pip in a virtualenv and get the same behaviour:
|
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). I can reproduce this issue with python3.8 and the pyobjc 6.x branch on macOS 10.15 (current beta). |
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). This appears to be a bug in macOS, the crash happens when PyObjC tries to introspect a placeholder class in Foundation:
|
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). Issue #271: Crash when creating NSData objects on macOS 10.15 This fixes #271. |
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). changes 540efd23070f fixes this on the 5.x branch. |
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). Thanks for the report. This is now fixed in the repository, both for the production and development branch. |
Original report by rndblnch (Bitbucket: rndblnch, GitHub: rndblnch).
various ways of creating NSData from python bytes segfaults on MacOSX 10.15 beta.
steps to reproduce with default system python on a fresh Catalina install:
here is the report:
the initWith* variants all leads to the same result, but when invoking NSData.dataWith* (instead of NSData.alloc().initWith*), it works.
The text was updated successfully, but these errors were encountered: