From f2ea774ca26141ed3bb5e22d51429de506dad6fa Mon Sep 17 00:00:00 2001 From: Nils <> Date: Sat, 20 Jun 2020 15:34:47 +0200 Subject: [PATCH] Install faulthandler in the hope of catching more Qt segfaults --- engine/start.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/start.py b/engine/start.py index c16d87b..0cff81f 100644 --- a/engine/start.py +++ b/engine/start.py @@ -27,6 +27,12 @@ We don't want to use all the libraries, including the big Qt one, only to end up Same with the tests if jack or nsm are running. """ +#Give at least some feedback when C libs crash. +#Will still not work for the common case that PyQt crashes and ends Python. +#But every bit helps when hunting bugs. +import faulthandler; faulthandler.enable() + + from engine.config import * #includes METADATA only. No other environmental setup is executed. from qtgui.helper import setPaletteAndFont #our error boxes shall look like the rest of the program