-
Notifications
You must be signed in to change notification settings - Fork 26
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
Cockpit once again reliably crashing on exit. #891
Comments
Running from the command line give a freetype error so I think this might just be a new freetype install that needs fixing again with the python upgrade. I will investigate |
I think there is no release of freetype with the fix we sent them. You may need to install freetype from dev sources. |
Actually, here it is from you a few months ago :)
Originally posted by @iandobbie in #684 (comment) on 11 Jan, 2024 (but maybe there is a new bug?) |
Ok, installed the freetype from my src directory and appear to have stopped the freetype crash however the code still crashes every time I exit on 3.12, whereas exactly the same code closes cleanly on 3.11. On 3.12 I am using a venv because python complained about me installing it globally, which is probably actually brew complaining. I will try to run the same code under 3.11 in a venv. The other strange thing is that when I run from the repl (eg python; import cockpit; cockpit.main(["cockpit'])). Cockpit closes cleaning but the crash happens when a close the python repl. |
A bit more info, when setup a separate venv with 3.11.8 it does not segfault. I ran it in a loop and of 20 repeats cockpit crashed once in a wxtimer so presumably there is still a lingering issue with one of the timers. In 3.12.2 it crashes every time, as in the output below (the
(the FALLBACK lines are always there and I ought to work out a way to supress them) but it alwasy ends in a segfault, however when a loop it with a tiny shell script
it does not report the segfault. I guess the segfault is reported to the subshell that runs cockpit and that is just swallowed somewhere. |
We have tracked this down to wxWidgets/Phoenix#2455 . The problem is limited to the wxPython 4.2.1 binary build for Python 3.12 and MacOS. The issue is already fixed in wxPython but no release has been made yet. Possible workarounds:
Anyway, it seems there is nothing we can do in Cockpit other than wait for wxPython to be re-released. |
On my mac cockpit now crashes regularly (maybe every time) on exit. It is a crash in thread 0, is a segv and appears to be trying to free some unallocated memory.
I have upgraded to python 3.12.2 and not sure if this is a python upgrade issue or something in cockpit.
The text was updated successfully, but these errors were encountered: