From cd681861bdb3e4be8019a6cd317fc31de258ea1c Mon Sep 17 00:00:00 2001 From: ciregenz Date: Thu, 11 Jun 2026 15:44:38 -0700 Subject: [PATCH] [eric] electron: lift GPU-process crash limit so a GPU hiccup recovers, not kills the app --- electron/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/electron/main.js b/electron/main.js index 2c7c1de3..41cf9735 100644 --- a/electron/main.js +++ b/electron/main.js @@ -371,6 +371,11 @@ app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required'); // timeout the moment the user looked away. Same lever VS Code ships with. app.commandLine.appendSwitch('disable-renderer-backgrounding'); app.commandLine.appendSwitch('disable-background-timer-throttling'); +// Heavy WebGL/webview churn (spam-switching apps, busy dashboards) can crash the +// shared GPU process; Chromium kills the whole app after a few GPU crashes. Lift +// that cap so a GPU hiccup recovers by restarting the GPU process instead of +// taking the app down with it. Fails quiet: at worst a brief compositor blip. +app.commandLine.appendSwitch('disable-gpu-process-crash-limit'); let mainWindow = null; let backendProcess = null;