mirror of https://github.com/garrytan/gstack.git
Merge 15f079c6a2 into a3259400a3
This commit is contained in:
commit
d6570961f3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue