From b15befe65a503968a99dfbc8c9bc45a3618135be Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Thu, 11 Aug 2022 15:09:03 +0300 Subject: [PATCH] fix(nim_status_client): Increased JS engine stack size --- src/nim_status_client.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nim_status_client.nim b/src/nim_status_client.nim index 63cb8ca3c3..becb70b568 100644 --- a/src/nim_status_client.nim +++ b/src/nim_status_client.nim @@ -100,6 +100,9 @@ proc mainProc() = installSelfSignedCertificate(imageCert) let app = newQGuiApplication() + # NOTE: https://github.com/status-im/status-desktop/issues/6930 + # We increase js stack size to prevent "Maximum call stack size exceeded" on UI loading. + os.putEnv("QV4_JS_MAX_STACK_SIZE", "10485760") os.putEnv("QT_QUICK_CONTROLS_HOVER_ENABLED", "1") let appController = newAppController(statusFoundation) let singleInstance = newSingleInstance($toMD5(DATADIR), openUri)