[gnome-builder] workaround GObject #799199
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workaround GObject #799199
- Date: Fri, 24 Feb 2017 22:14:15 +0000 (UTC)
commit 14597ebe1802adf7f94afcbbcb56775dc3dfd03a
Author: Christian Hergert <chergert redhat com>
Date: Fri Feb 24 14:14:04 2017 -0800
workaround GObject #799199
src/main.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 416abeb..00f09aa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -99,6 +99,21 @@ main (int argc,
gtk_get_minor_version (),
gtk_get_micro_version ());
+ /*
+ * FIXME: Work around type registration deadlocks in GObject.
+ *
+ * There seems to be a deadlock in GObject type registration from
+ * different threads based on some different parts of the type system.
+ * This is problematic because we occasionally race during startup in
+ * GZlibDecopmressor's get_type() registration.
+ *
+ * Instead, we'll just deal with this early by registering the type
+ * as soon as possible.
+ *
+ * https://bugzilla.gnome.org/show_bug.cgi?id=779199
+ */
+ g_type_ensure (G_TYPE_ZLIB_DECOMPRESSOR);
+
app = ide_application_new ();
ret = g_application_run (G_APPLICATION (app), argc, argv);
g_clear_object (&app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]