Skip to content

Commit 6a5a947

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

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ jobs:
471471
472472
$env:RUST_LOG = "debug"
473473
$env:RUST_BACKTRACE = "1"
474+
$env:ANGLE_DEFAULT_PLATFORM = "swiftshader"
474475
475476
# No additional environment variables needed - Chrome flags handle everything
476477

plotly_static/src/lib.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,16 +306,26 @@ const CHROME_DEFAULT_CAPS: [&str; 23] = [
306306
];
307307

308308
#[cfg(all(feature = "chromedriver", target_os = "windows"))]
309-
const CHROME_DEFAULT_CAPS: [&str; 8] = [
310-
"--headless",
309+
const CHROME_DEFAULT_CAPS: [&str; 17] = [
310+
"--headless=new",
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",
327+
"--use-angle=swiftshader",
328+
"--disable-software-rasterizer",
319329
];
320330

321331
#[cfg(feature = "geckodriver")]

0 commit comments

Comments
 (0)