This commit is contained in:
Aurora Capital 2026-07-14 19:16:50 -07:00 committed by GitHub
commit d6570961f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -451,6 +451,17 @@ export class BrowserManager {
// Chromium too.
...buildGStackLaunchArgs(),
];
// Headless virtual displays (Xvnc/Xvfb on EC2) have no real GPU; Playwright's
// bundled Chromium crashes (SIGTRAP) during GPU process init. Disabling the
// GPU process keeps headed mode alive on VNC. Opt-in via GSTACK_HEADED_NOGPU.
if (process.env.GSTACK_HEADED_NOGPU === '1') {
launchArgs.push(
'--disable-gpu',
'--disable-gpu-compositing',
'--disable-software-rasterizer',
'--disable-dev-shm-usage',
);
}
if (extensionPath) {
// Skip --load-extension when running against a custom Chromium build
// that already bakes the extension in as a component extension