-
Notifications
You must be signed in to change notification settings - Fork 524
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
WxPython segmentation fault on Python 3.12 with 4.2.1 on macOS #2455
Comments
I think this might have been due to changes needed in sip. Can you try the latest snapshot build to see if the problem still exists? |
There was no segfault with: wxPython-4.2.2a1.dev5626+a1184286-cp312-cp312-macosx_10_10_universal2.whl | 2023-08-31 02:22 So this looks like it may be fixed in the next release. |
Great, it was most likely fixed by: d17fff1 |
@swt2c Thanks for the fix! Is there any timeline for when to expect the next release of the module to PyPI with a new version which contains the fix? As of now running on Python 3.12 with the most current version on PyPI still produces crashes on exit. |
I'm also having the same problem, would love to see the fix on pip. Thanks! |
Unfortunately, this project has a bus factor of 1 and only @RobinD42 can produce releases. :( |
When can I fix this bug in Windows? @RobinD42 |
Any update, @RobinD42? |
As #2547 was closed as duplicated of this: This issue is applicable to Windows as well, not just macOS. Please upddate the issue title. And why is this issue closed? The issue is not yet fixed, is it? |
It's fixed in git. |
OK. Is there a separate issue tracking the deployment of the fix? |
No, but I created one: #2553 |
This issue affects Linux as well. |
On Yocto, with Python 3.12.3 + wxPython 4.2.1. The issuse can be reproduced. |
@muye0503 did you rebuild wxPython with the updated sip (ie, you probably need to remove and regenerate all the sip-generated files)? |
Is there any version in PyPI that I can use in |
@swt2c Thanks |
and Linux. |
This issue has been mentioned on Discuss wxPython. There might be relevant details there: https://discuss.wxpython.org/t/building-wxpython-for-mint/37009/2 |
… fixed in upcoming version of wxPython, not going to mess with it for now: wxWidgets/Phoenix#2455
Operating system: macOS Ventura 13.5.1
wxPython version & source: 4.2.1 osx-cocoa (phoenix) wxWidgets 3.2.2.1
Python version & source: 3.12rc2
Description of the problem:
I know that 3.12 is not fully supported yet, but is in beta (based on the changelog), but with the last RC just released for Python 3.12, it is probably good to make issues known sooner rather than later. I do not know if this issue is a wxPython issue or some issue in Python 3.12. This issue may or may not already be known, but I couldn't find a current issue open on this.
The issue is that if you create a wxPython app on macOS with 3.12, after closing the app, during exit from Python, you get a segfault. This only happens after you've run and closed a wxPython app. The only way I've found to sidestep the segfault is to call
os._exit()
which skips cleanup. It seems wxPython leaves something in a bad state so that during the cleanup step of a traditional exit, a segfault occurs.As mentioned, this only occurs on 3.12 with wxPython 4.2.1. On Python 3.11 with 4.2.1 there is no segfault.
This can be reproduced with the most basic example:
Output:
As a matter of fact, I can reproduce this just by importing wxPython and then exiting.
This does not occur with any other code I've tested in Python 3.12 during its RC releases:
The text was updated successfully, but these errors were encountered: