From 113751a4bc2b064847596d9a032fe46a5a24a9b5 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 5 Oct 2018 19:54:13 -0700 Subject: [PATCH] Avoid Qt bug by using onAfterRendering instead of onAfterSynchronizing to display dialogs --- app/gui/main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/gui/main.qml b/app/gui/main.qml index 54c18ca8..a401905a 100644 --- a/app/gui/main.qml +++ b/app/gui/main.qml @@ -82,7 +82,10 @@ ApplicationWindow { property bool initialized: false - onAfterSynchronizing: { + // BUG: Using onAfterSynchronizing: here causes very strange + // failures on Linux. Many shaders fail to compile and we + // eventually segfault deep inside the Qt OpenGL code. + onAfterRendering: { // We use this callback to trigger dialog display because // it only happens once the window is fully constructed. // Doing it earlier can lead to the dialog appearing behind