macOS: Chromium crashes on launch
See original GitHub issuedeno 1.7.0 (release, x86_64-apple-darwin)
v8 8.9.255.3
typescript 4.1.3
I ran:
PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@5.5.1/install.ts
Which completed successfully.
I then tested the example:
import puppeteer from "https://deno.land/x/puppeteer@5.5.1/mod.ts";
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto("https://example.com");
await page.screenshot({ path: "example.png" });
await browser.close();
But it throws an error:
λ deno run -A --unstable ./example.js
error: Uncaught (in promise) Error: Protocol error (Target.setDiscoverTargets): Target closed.
this._callbacks.set(id, { resolve, reject, error: new Error(), method });
^
at https://deno.land/x/puppeteer@5.5.1/vendor/puppeteer-core/puppeteer/common/Connection.js:69:57
at new Promise (<anonymous>)
at Connection.send (https://deno.land/x/puppeteer@5.5.1/vendor/puppeteer-core/puppeteer/common/Connection.js:68:12)
at Function.create (https://deno.land/x/puppeteer@5.5.1/vendor/puppeteer-core/puppeteer/common/Browser.js:127:22)
at ChromeLauncher.launch (Launcher.ts:113:37)
at async file:///Users/luke/Desktop/example.js:3:17
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to Troubleshoot Chrome Crashes on Mac - macReports
Chrome crashing basic steps · Restart your Mac. · Update everything. · Restart your Mac in Safe Mode and see if Chrome is...
Read more >11 Fix Google Chrome Crashing on Mac Ventura M1 & Intel ...
Google Chrome Quit Itself & Crashing On Mac M1/T2 or Intel · 1. Inspect Memory Outage · 2. Clear Chrome Data · 3....
Read more >Chrome crashes immediately on startup. Every. Time.
Hi all,. Chrome dies about 10 seconds after being opened. Have tried reinstalling, deleting Keychain sync and most other solutions online ...
Read more >How to Fix Crashes for Google Chrome on a Mac - Support.com
1. Quit Chrome Normally
Quitting and restarting Chrome can quickly and easily fix many problems it may have:
Select Chrome on your Dock.
Select the Chrome...
Read more >82812 - chrome crashes on startup, Mac OSX 10.6 - Monorail
Your crash is happening on the sync thread - could you try running Chrome manually with --disable-sync? In Terminal, you'd run something like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good call @pmc-a,
I thought this was something to do with codesign or quarantine, but it turned out to be simpler than that.
Chromium has various helper apps in
Chromium.app/Contents/Frameworks/Chromium\ Framework.framework/Versions/<Current Version>/Helpers
, each of which need to be marked executable too.I’m making a PR. In the meantime, you can fix this with:
I am also getting this issue on windows. Is there a solution for this yet.