Bug 790810 - Nested layer groups lead to a deadlock with multithreading

Temporarily disable multithreading for GimpOperationLayerMode, to
avoid the deadlock.  The environment variable
GIMP_MULTITHREADED_COMPOSITING can be set to reenable it, for the
sake of debugging.
This commit is contained in:
Ell 2017-11-26 10:45:33 -05:00
parent d228e76ebe
commit 2ff52af5a9
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ gimp_operation_layer_mode_class_init (GimpOperationLayerModeClass *klass)
klass->process = gimp_operation_layer_mode_real_process;
klass->get_affected_region = NULL;
/* XXX: temporarily disable multithreaded compositing. see bug #790810. */
if (! g_getenv ("GIMP_MULTITHREADED_COMPOSITING"))
operation_class->threaded = FALSE;
g_object_class_install_property (object_class, PROP_LAYER_MODE,
g_param_spec_enum ("layer-mode",
NULL, NULL,