Closed rmartin16 closed 2 weeks ago
I've done a little poking around on this; from my initial investigation, it looks like the issue isn't the binary merging or signing. If you reduce the signing to only the app bundle (not suitable for notarisation, but enough to get the app to start), and you remove all the strip/merge behavior from Briefcase (so the binary wheels are used as-is), the same error occurs. If you use the packaged app code and fully signed/merged binaries, but use the system Python to execute them (i.e., set the PYTHONPATH to include the app and app_packages folders, then run python -m testapp
), that also works fine.
My current theory is one of two things:
Tagging @cmaureir after a conversation at PyCon US.
I think this has been resolved:
- [PYSIDE-2676] A crash with Python 3.12 when creating classes from meta classes has been fixed.
I guess we could mark some of these versions as forbidden....but....probably overkill
It is interesting, though, that PYSIDE-2676 says they ~could~ couldn't reproduce the error on macOS....
Agreed this appears to be fixed - the most recent builds on the briefcase-macOS-app-template for Pyside6 and Py3.12 show the "successful startup" message.
Since a new project will pick up the most recent release of PySide, and existing projects wouldn't pick up any change that we made, I agree it's probably not worth marking the "bad" releases.
Describe the bug
CI for
briefcase-macOS-app-template
reported a failure for PySide on 3.12 today. While importingshiboken6
, the app seg faults.Found originally in https://github.com/beeware/briefcase-macOS-app-template/pull/55#issuecomment-2106440930.
Trackback on Sonoma x86:
Steps to reproduce
Using Python 3.12, run
briefcase run macos app
orbriefcase run macos xcode
for a PySide6 app. While there is a new 6.7.0 release, the previous release triggers the same seg fault.Expected behavior
PySide apps run properly.
Screenshots
No response
Environment
0.3.19.dev26+g96734be6
6.7.0
and6.6.3.1
Logs
briefcase.2024_05_12-23_38_21.run.log pyside_macos_x86.dump.txt
Additional context
A related issue is Briefcase failed to report the app did not run properly. That issue is being tracked in #1795.