From e6ec236a39a0fdcb5f4e8fe5485502710cd8d20a Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Fri, 26 Feb 2021 00:53:45 -0600 Subject: [PATCH] Fix (workaround) GUI hang on Linux On second display of LV2 effect using an X11UI, Audacity would hang due to the glib class not being in the expected state. Workaround is to not unload the suil wrapper library. The unload was already being bypassed on Windows so I'm unsure why the author didn't do it on the other platforms. --- lib-src/lv2/suil/src/instance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib-src/lv2/suil/src/instance.c b/lib-src/lv2/suil/src/instance.c index 61037fcba..1107534f5 100644 --- a/lib-src/lv2/suil/src/instance.c +++ b/lib-src/lv2/suil/src/instance.c @@ -346,8 +346,8 @@ suil_instance_free(SuilInstance* instance) // Close libraries and free everything if (instance->wrapper) { #ifndef _WIN32 - // Never unload modules on windows, causes mysterious segfaults - dlclose(instance->wrapper->lib); + // Never unload modules, causes mysterious segfaults + // dlclose(instance->wrapper->lib); #endif free(instance->wrapper); }