question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS: Chromium crashes on launch

See original GitHub issue
deno 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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
LukeChanningscommented, Feb 18, 2021

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:

chmod 755 ~/Library/Caches/deno/deno_puppeteer/chromium/*/chrome-mac/Chromium.app/Contents/Frameworks/Chromium\ Framework.framework/Versions/*/Helpers/*.app/Contents/MacOS/*
0reactions
caperavencommented, Apr 8, 2022

I am also getting this issue on windows. Is there a solution for this yet.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found