Skip to content

Commit 6f20790

Browse files
committed
try also other flags
Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent c7e999e commit 6f20790

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

plotly_static/src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,21 @@ const CHROME_DEFAULT_CAPS: [&str; 23] = [
306306
];
307307

308308
#[cfg(all(feature = "chromedriver", target_os = "windows"))]
309-
const CHROME_DEFAULT_CAPS: [&str; 8] = [
309+
const CHROME_DEFAULT_CAPS: [&str; 15] = [
310310
"--headless",
311311
"--no-sandbox",
312312
"--disable-dev-shm-usage",
313313
"--disable-breakpad",
314314
"--no-first-run",
315315
"--no-default-browser-check",
316+
// Stability flags to prevent renderer crashes
317+
"--disable-background-networking",
318+
"--disable-sync",
319+
"--disable-translate",
320+
"--disable-background-timer-throttling",
321+
"--disable-renderer-backgrounding",
322+
"--disable-backgrounding-occluded-windows",
323+
"--disable-ipc-flooding-protection",
316324
// Minimal flags for Windows headless operation without disabling GPU
317325
"--hide-scrollbars",
318326
"--mute-audio",

0 commit comments

Comments
 (0)