-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
Mac examples exit with error code 255 #162
Comments
I just ran across this issue and I wanted to note that I was able to fix it by calling cefpython.ShutDown() before destroying the wx window, rather than after. I suspect what is happening is that in a single-window app, window.Destroy() also leads to the app's main loop being destroyed, which IIRC on Mac destroys the app's NSAutoreleasePool as well. Then when cefpython tries to pop the NSAutoreleasePool to trigger garbage collection, it crashes because the NSAutoreleasePool doesn't exist any longer. |
@kollivier I tried your suggestion, but it doesn't work for me in CEF v56.0 when running the new wxpython.py example. For reference, a similar issue was reported on CEF Forum here: |
Fixed it with such code in OnClose in v56:
|
Add comment about tkinter_.py example not working on Mac. Delete deprecated Mac examples.
All examples have such OnClose event:
I don't know any other way to exit wx app on mac. If Exit() call is removed
then there is error: "Segmentation fault: 11".
Original issue reported on code.google.com by
[email protected]
on 13 Jan 2015 at 2:20The text was updated successfully, but these errors were encountered: