Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to launch the browser process #15

Open
Kujo-Jotaro-AAAAA opened this issue Nov 16, 2021 · 1 comment
Open

Failed to launch the browser process #15

Kujo-Jotaro-AAAAA opened this issue Nov 16, 2021 · 1 comment

Comments

@Kujo-Jotaro-AAAAA
Copy link

MAC OS
run:
rrvideo --input ./src/files/rrweb.json

error message:

Failed to transform this session.
Error: Failed to launch the browser process!

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (/usr/local/lib/node_modules/rrvideo/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)
at Interface.<anonymous> (/usr/local/lib/node_modules/rrvideo/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:183:68)
at Interface.emit (events.js:327:22)
at Interface.close (readline.js:424:8)
at Socket.onend (readline.js:202:10)
at Socket.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1218:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
@zyktrcn
Copy link

zyktrcn commented Jul 3, 2023

You can change the path in puppeteer

// xxx(your rrvideo path)/node_modules/puppeteer/lib/cjs/puppteer/node/Launcher.js
// before
let chromeExecutable = executablePath;
if (os.arch() === 'arm64') {
    chromeExecutable = '/usr/bin/chromium-browser';
}

// after
let chromeExecutable = executablePath;
if (os.arch() === 'arm64') {
    chromeExecutable = '/Applications/Chromium.app/Contents/MacOS/Chromium';
}

relation

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

No branches or pull requests

2 participants