app: initialize GimpBacktrace earlier on

Initialize GimpBacktrace earlier on in the startup process, so that
the Windows backend installs the thread-name exception handler
early enough to catch threads created before app_run() (in
particular, the GEGL worker threads).

(cherry picked from commit 853d91b8e4)
This commit is contained in:
Ell
2019-05-19 10:46:52 -04:00
parent b0f6996e61
commit 0fdf6c2289
2 changed files with 7 additions and 7 deletions

View File

@ -56,7 +56,6 @@
#include "core/gimp.h"
#include "core/gimp-batch.h"
#include "core/gimp-user-install.h"
#include "core/gimpbacktrace.h"
#include "core/gimpimage.h"
#include "file/file-open.h"
@ -213,12 +212,6 @@ app_run (const gchar *full_prog_name,
filenames = NULL;
}
/* Initialize GimpBacktrace early on. In particular, we want the
* Windows backend to catch the SET_THREAD_NAME exceptions of newly
* created threads.
*/
gimp_backtrace_init ();
/* Language needs to be determined first, before any GimpContext is
* instantiated (which happens when the Gimp object is created)
* because its properties need to be properly localized in the