GithubHelp home page GithubHelp logo

Chromium crashes at npm start about destreamer HOT 8 CLOSED

snobu avatar snobu commented on May 14, 2024
Chromium crashes at npm start

from destreamer.

Comments (8)

wpitallo avatar wpitallo commented on May 14, 2024 1

I am getting this same issue using puppeteer 2.0.0

from destreamer.

snobu avatar snobu commented on May 14, 2024

Looks like puppeteer (the thing that drives the browser interaction) doesn't work with that particular version of Chromium for whatever reason this error gives us: Error: Protocol error (Performance.enable):. Looking at your screenshot it seems unable to connect to it (URL doesn't point to Microsoft Login page).

Try adding executablePath and point to a different Chromium binary -
https://github.com/snobu/destreamer/blob/dev/destreamer.ts#L50

const browser = await puppeteer.launch({
        executablePath: 'C:\\another\\chromium.exe'
...

The Chromium instance it launches for me on Windows (that works) is this one -
Version 78.0.3882.0 (Developer Build) (64-bit)

I believe if you play with the puppeteer version number in package.json (e.g. "puppeteer": "1.20.0") it should automatically pull a newer/older version for you on npm install. Try that first -
https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md

from destreamer.

bigbob55555 avatar bigbob55555 commented on May 14, 2024

Okay perfect, changing puppeteer version number in package.json ("puppeteer": "1.20.0") solved the problem!

from destreamer.

snobu avatar snobu commented on May 14, 2024

Thanks for reporting this issue. I'll fix the version number in both dev and master branches. Cheers!

from destreamer.

bigbob55555 avatar bigbob55555 commented on May 14, 2024

did something change? it's all of a sudden giving me the same chromium crash screen now again. using "puppeteer": "^1.20.0" which was working previously

from destreamer.

snobu avatar snobu commented on May 14, 2024

Remove node_modules/ and do a fresh npm install. It could be that Microsoft Stream has changed the id tags for the Azure Media Player elements this project is trying to hook to. If that's the case we need better logic than attempting to pick up page elements by hardcoded names.

from destreamer.

wpitallo avatar wpitallo commented on May 14, 2024

@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.

from destreamer.

bigbob55555 avatar bigbob55555 commented on May 14, 2024

@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

from destreamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.