Skip to content

Skip single-process flag on macOS to prevent Chromium crashes - #45

Open
flgusto wants to merge 1 commit into
simonw:mainfrom
flgusto:main
Open

Skip single-process flag on macOS to prevent Chromium crashes#45
flgusto wants to merge 1 commit into
simonw:mainfrom
flgusto:main

Conversation

@flgusto

@flgusto flgusto commented Mar 18, 2026

Copy link
Copy Markdown

The --single-process Chrome flag, required for screenshots in gVisor/container environments, causes Chromium to crash on macOS when navigating to complex sites (e.g. pages with Keycloak SSO, media permission checks). Simple sites and local dev servers work fine.

In single-process mode, all Chromium subsystems share one process. When any subsystem hits a fatal condition — such as a macOS TCC permission check (e.g. microphone) that can't display a prompt — it takes down the entire browser. In multi-process mode these crashes are isolated and recoverable.

Evidence from crash reports:

  • EXC_BREAKPOINT/SIGTRAP on a thread queued for com.apple.tcc.preflight.kTCCServiceMicrophone
  • SIGABRT in CFBundleGetInfoDictionary on CrBrowserMain
  • Chromium 128.0.6568.0 (go-rod bundled revision 1321438)

This change only skips the flag on Darwin. Linux and Windows behavior is unchanged.

The --single-process Chrome flag, required for screenshots in
gVisor/container environments, causes Chromium to crash on macOS
when navigating to complex sites. Only set the flag on non-Darwin
platforms.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@flgusto

flgusto commented Mar 18, 2026

Copy link
Copy Markdown
Author

Related to: #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant