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.

Failed to launch chrome! Reason: image not found Mac OS X

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 1.14.0
  • Platform / OS version: Mac OS X 10.11.6
  • URLs (if applicable):
  • Node.js version: v10.11.0
  • yarn: 1.9.4

What steps will reproduce the problem?

git clone https://github.com/stereobooster/reactSnapshotTest.git
cd reactSnapshotTest
yarn
yarn build
$ react-snap
Error: Failed to launch chrome!
dlopen node_modules/puppeteer/.local-chromium/mac-641577/chrome-mac/Chromium.app/Contents/MacOS/../Versions/75.0.3738.0/Chromium Framework.framework/Chromium Framework: dlopen(node_modules/puppeteer/.local-chromium/mac-641577/chrome-mac/Chromium.app/Contents/MacOS/../Versions/75.0.3738.0/Chromium Framework.framework/Chromium Framework, 261): Library not loaded: /System/Library/Frameworks/MediaPlayer.framework/Versions/A/MediaPlayer
  Referenced from: node_modules/puppeteer/.local-chromium/mac-641577/chrome-mac/Chromium.app/Contents/Versions/75.0.3738.0/Chromium Framework.framework/Versions/A/Chromium Framework
  Reason: image not found


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

    at onClose (node_modules/puppeteer/lib/Launcher.js:342:14)
    at Interface.helper.addEventListener (node_modules/puppeteer/lib/Launcher.js:331:50)
    at Interface.emit (events.js:187:15)
    at Interface.close (readline.js:379:8)
    at Socket.onend (readline.js:157:10)
    at Socket.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1092:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
error Command failed with exit code 1.

What is the expected result?

What happens instead?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
lukaszfiszercommented, Apr 15, 2019

I have the same issue on Mac OS X 10.10.5.

Downgrading to puppeteer 1.13 (chromium rev mac-637110) fixes it.

3reactions
tzohpilotlcommented, Apr 27, 2019

@aslushnikov I installed puppeteer@next and I’m getting the same error while trying to test using Jest + Puppeteer:

Error: Failed to launch chrome!
dlopen /Users/mariogil/Developer/designers-in-vietnam/node_modules/puppeteer/.local-chromium/mac-650583/chrome-mac/Chromium.app/Contents/MacOS/../Versions/75.0.3765.0/Chromium Framework.framework/Chromium Framework: dlopen(/Users/mariogil/Developer/designers-in-vietnam/node_modules/puppeteer/.local-chromium/mac-650583/chrome-mac/Chromium.app/Contents/MacOS/../Versions/75.0.3765.0/Chromium Framework.framework/Chromium Framework, 261): no suitable image found.  Did find:
	/Users/mariogil/Developer/designers-in-vietnam/node_modules/puppeteer/.local-chromium/mac-650583/chrome-mac/Chromium.app/Contents/MacOS/../Versions/75.0.3765.0/Chromium Framework.framework/Chromium Framework: mmap() errno=5 at address=0x10D3BE000, size=0x0813D000 segment=__TEXT in Segment::map() mapping /Users/mariogil/Developer/designers-in-vietnam/node_modules/puppeteer/.local-chromium/mac-650583/chrome-mac/Chromium.app/Contents/MacOS/../Versions/75.0.3765.0/Chromium Framework.framework/Chromium Framework
	/Users/mariogil/Developer/designers-in-vietnam/node_modules/puppeteer/.local-chromium/mac-650583/chrome-mac/Chromium.app/Contents/Versions/75.0.3765.0/Chromium Framework.framework/Versions/A/Chromium Framework: mmap() errno=5 at address=0x115E4E000, size=0x0813D000 segment=__TEXT in Segment::map() mapping /Users/mariogil/Developer/designers-in-vietnam/node_modules/puppeteer/.local-chromium/mac-650583/chrome-mac/Chromium.app/Contents/Versions/75.0.3765.0/Chromium Framework.framework/Versions/A/Chromium Framework


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


    at onClose (/Users/mariogil/Developer/designers-in-vietnam/node_modules/puppeteer/lib/Launcher.js:342:14)
    at Interface.helper.addEventListener (/Users/mariogil/Developer/designers-in-vietnam/node_modules/puppeteer/lib/Launcher.js:331:50)
    at Interface.emit (events.js:202:15)
    at Interface.close (readline.js:395:8)
    at Socket.onend (readline.js:173:10)
    at Socket.emit (events.js:202:15)
    at endReadableNT (_stream_readable.js:1132:12)
    at processTicksAndRejections (internal/process/next_tick.js:76:17)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to launch chrome! Reason: image not found Mac OS X
Node.js version: v10.11.0; yarn: 1.9.4. What steps will reproduce the problem? git clone https://github.com/stereobooster/reactSnapshotTest.git ...
Read more >
OS X Framework Library not loaded: 'Image not found'
The error in the original post is: dyld: Library not loaded: /Library/Frameworks/TestMacFramework.framework/Versions/A/TestMacFramework Referenced from: ...
Read more >
6 Ways to Fix Google Chrome Issues on macOS 10.15 Catalina
Start by checking the internet connection speed and ensure it is okay. Ensure that system requirements and permissions to do the update are...
Read more >
How to Fix Images Not Loading in Chrome - Online Tech Tips
Launch Chrome, select the three dots at the top-right corner, and choose Settings. Select Privacy and security on the left and Site Settings...
Read more >
Chromium build on Mac OSX fails - Google Groups
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
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