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.

Instant crash when accessing navigator.getUserMedia

See original GitHub issue

Attempting to access the camera or microphone either through code or the console will result in the chrome instance crashing

  • VS Code Version: 1.43.0
  • Chrome Version 80
  • Log file (set "trace": true in launch config):

Steps to reproduce:

  1. Start a Chrome instance using VS Code Chrome Debug
  2. Open console and paste in this line: navigator.getUserMedia({video:true},devices=>{console.log(‘hello’)},err=>{console.log(err)})
  3. Allow access to the camera
  4. Chrome will crash without a trace

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:31 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
connor4312commented, Jun 10, 2020

We’re still waiting on work from the Chromium team for this

2reactions
isometriqcommented, Jan 5, 2021

I was able by allowing vscode permissions for camera and microphone, but I had to create these entitled permissions in first place.

Have a look at this: https://github.com/microsoft/vscode/issues/95062#issuecomment-751241372

Now all works for me when started directly from vscode!

MacOS Catalina (10.15.7)

Read more comments on GitHub >

github_iconTop Results From Across the Web

navigator.getUserMedia keeps crashing my browser without fail
When I try to get a webpage to display my webcam, the tab crashes 100% of the time. Crashed report ID: b9b6fdd9dd5fac8a. How...
Read more >
getusermedia freezes in mobile browsers - Stack Overflow
{// Standard navigator. getUserMedia(videoObj, function(stream) { video. src = stream; video.
Read more >
AbortError Starting video failed returned from getUserMedia ...
In Firefox, open a webpage that calls navigator.mediaDevices.getUserMedia({video: true}) with a video element (see attached HTML for basic example).
Read more >
getUserMedia() is crashing the app - Capacitor - Ionic Forum
When we call navigator.mediaDevices.getUserMedia({audio: true, video: {facingMode: 'user'} to get a stream from the camera our app crashes ...
Read more >
WebKit | Apple Developer Forums
I can't access to "http://~~" URL after update ios16.2 ... Crash when requesting permissions for getUserMedia in WKWebView ... getUserMedia);navigator.
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