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.

Chromium crashes at npm start

See original GitHub issue

When I try to run the program, chromium crashes like this: image

Here’s what the command prompt looks like:

C:\destreamer-master>npm start https://web.microsoftstream.com/video/745f450f-7454-4399-83bf-460ba2b6956f

> destreamer-node@1.0.0 start C:\destreamer-master
> node ./destreamer.js "https://web.microsoftstream.com/video/745f450f-7454-4399-83bf-460ba2b6956f"


Using youtube-dl version 2019.08.13
Launching headless Chrome to perform the OpenID Connect dance...
(node:4524) UnhandledPromiseRejectionWarning: Error: Protocol error (Performance.enable): Target closed.
    at C:\destreamer-master\node_modules\puppeteer\lib\Connection.js:183:56
    at new Promise (<anonymous>)
    at CDPSession.send (C:\destreamer-master\node_modules\puppeteer\lib\Connection.js:182:12)
    at Page._initialize (C:\destreamer-master\node_modules\puppeteer\lib\Page.js:137:20)
    at Function.create (C:\destreamer-master\node_modules\puppeteer\lib\Page.js:47:16)
    at C:\destreamer-master\node_modules\puppeteer\lib\Target.js:74:32
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
    at async Browser._createPageInContext (C:\destreamer-master\node_modules\puppeteer\lib\Browser.js:177:18)
    at async rentVideoForLater (C:\destreamer-master\destreamer.js:45:18)
  -- ASYNC --
    at Target.<anonymous> (C:\destreamer-master\node_modules\puppeteer\lib\helper.js:111:15)
    at Browser._createPageInContext (C:\destreamer-master\node_modules\puppeteer\lib\Browser.js:177:31)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
    at async rentVideoForLater (C:\destreamer-master\destreamer.js:45:18)
  -- ASYNC --
    at Browser.<anonymous> (C:\destreamer-master\node_modules\puppeteer\lib\helper.js:111:15)
    at rentVideoForLater (C:\destreamer-master\destreamer.js:45:32)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
(node:4524) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4524) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Any help is much appreciated.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wpitallocommented, Jan 8, 2020

I am getting this same issue using puppeteer 2.0.0

0reactions
bigbob55555commented, Jan 11, 2020

@snobu thanks. I tried this and it did not work. I ended up installing the latest chromium distribution (think it was 81) and and then added the path manually to .launch() and and that seems to work.

Did you download the latest version from here (https://download-chromium.appspot.com/)? I tried doing that and it’s still giving the same error from before. I just downloaded it and replaced the old directory: C:\destreamer-dev\node_modules\puppeteer.local-chromium\win64-706915\chrome-win

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chromium won't load any websites and keeps crashing
When I run node index.js, Chromium launches, however, it is all white, then my mouse turns into the little rainbow spinning circle (Mac)...
Read more >
Chrome crashes with "Fatal error in , line 0 # Check failed ...
The machine has 64GB of RAM and it crashes when it's only using 11GB or so. ... by Chrome (again, according to free...
Read more >
Puppeteer crashes Chromium while scrolling Whatsapp : r/node
Hello guys, I'm trying to use Puppeteer to scroll to the last message of a Whatsapp chat so I can get the HTML...
Read more >
Troubleshooting - Puppeteer
Make sure all the necessary dependencies are installed. You can run ldd chrome | grep not on a Linux machine to check which...
Read more >
Visual Studio Crashes Due to NPM | Matt Ferderer
My assumption is that the issue is a result of NPM's deeply nested directory structure and Microsoft's software typically having limits on the ......
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