Camoufox crashes immediately on Windows with Playwright -juggler-pipe (exit code 3221225781)
Problem
Camoufox.exe (v152.0.4.beta.28) crashes immediately when launched with Playwright's Firefox launcher on Windows. Exit code: 3221225781 (0xC0000005 - access violation).
Environment
- OS: Windows 11
- Camoufox version: 152.0.4.beta.28
- camoufox-browser: @askjo/[email protected]
- playwright-core: latest (v1.53.0)
- Node.js: v22.23.2
- Python: 3.11.16
Error Log
<launching> camoufox.exe -no-remote -headless -profile C:\Users\ADMINI~1\AppData\Local\Temp\playwright_firefoxdev_profile-XXXX -juggler-pipe -silent
<launched> pid=XXXX
[pid=XXXX] <process did exit: exitCode=3221225781, signal=null>Console errors:
JavaScript error: chrome://juggler/content/Helper.js, line 82: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebProgress.removeProgressListener]Root Cause Analysis
Playwright's Firefox launcher hardcodes the -juggler-pipe argument in playwright-core/lib/coreBundle.js (line ~45678):
firefoxArguments.push("-juggler-pipe");This appears to be incompatible with Camoufox's modified Juggler implementation, causing an access violation on startup.
Standard Firefox works fine with this flag, suggesting Camoufox's C++ level modifications may have broken something in the Juggler protocol handling.
Reproduction Steps
- Install camoufox-browser:
npm install -g @askjo/camofox-browser - Download Camoufox bundle to
D:/ProgramData/camoufox-bin - Set environment variable:
export CAMOUFOX_EXECUTABLE="D:/ProgramData/camoufox-bin/camoufox.exe" - Start server and attempt to create a tab
Expected Behavior
Camoufox should launch successfully in headless mode, similar to standard Firefox.
Actual Behavior
Browser crashes immediately after launch with exit code 3221225781.
Workaround
Currently using Chrome engine instead of Camoufox in Hermes Agent configuration.
Questions
- Is there a configuration option to disable the juggler-pipe argument?
- Does Camoufox support the Juggler protocol version used by Playwright?
- Any known fixes or patches for this compatibility issue?
Labels
bug, windows, firefox, compatibility
Source: jo-inc/camofox-browser