getusermedia takes more than 10 s
Categories
(Core :: WebRTC, defect, P3)
Tracking
()
People
(Reporter: pmenzel+bugzilla.mozilla.org, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: webcompat:platform-bug)
User Story
user-impact-score:40
Attachments
(1 file)
|
52.85 KB,
text/plain
|
Details |
Steps to reproduce:
Access https://webrtc.github.io/samples/src/content/getusermedia/gum/ and click on Open camera.
Actual results:
It takes more than ten seconds until the browser permission dialog is shown.
Expected results:
The dialog should be shown instantly like in Brave for example.
This results in a bad user experience with video conferencing systems like BigBlueButton – related comment.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Paul, thank you for your report!
On what platform are you seeing the slow repsonse time? I notice you marked this as Firefox 130, which is Nightly. Have you also seen the same behavior on Release (currently 128)?
Updated•1 year ago
|
| Reporter | ||
Comment 3•1 year ago
|
||
Michael, thank you for your reply.
(In reply to Michael Froman [:mjf] from comment #2)
On what platform are you seeing the slow repsonse time?
Debian sid/unstable with GNOME and X.Org. I attach the output of about:support.
I notice you marked this as Firefox 130, which is Nightly. Have you also seen the same behavior on Release (currently 128)?
Yes, it has been happening since several releases, including current release 128.0.2.
Comment 4•1 year ago
•
|
||
Paul, since you say it has regressed, would you mind running mozregression to find a commit range? See: https://mozilla.github.io/mozregression/install.html
Having a commit range for the regression will be super valuable to help track down what caused the issue.
Also, following the instructions here, to get a profile of the issue would help us diagnose the issue.
Running with a fresh profile temporarily to see if that improves the issue would also give us useful data.
| Reporter | ||
Comment 5•1 year ago
|
||
(In reply to Michael Froman [:mjf] from comment #4)
Paul, since you say it has regressed, would you mind running mozregression to find a commit range? See: https://mozilla.github.io/mozregression/install.html
Having a commit range for the regression will be super valuable to help track down what caused the issue.
I’ll see, if I find time.
Also, following the instructions here, to get a profile of the issue would help us diagnose the issue.
https://share.firefox.dev/3Lzv2Mx
Running with a fresh profile temporarily to see if that improves the issue would also give us useful data.
I’ll see what I can do.
Comment 6•1 year ago
|
||
The severity field is not set for this bug.
:mjf, could you have a look please?
For more information, please visit BugBot documentation.
Comment 7•1 year ago
|
||
Paul, thank you for the profile. We can see that the 10s is spent mostly in querying the camera capabilities. This is likely slower for us because of Bug 1286945.
| Reporter | ||
Comment 8•1 year ago
|
||
Michael, thank you for the analysis. Excuse my ignorance, but what does querying more resolutions have to do with it?
Comment 9•1 year ago
|
||
Looking at the profile, on your machine, each of these queries spends a lot of time in the ioctl system call (see here), and we're making that call 195 times (once for each resolution across each of the supported video formats). What we don't have visibility into is why this call is taking so long for your particular setup.
This code was updated in May of 2023, going from 5 to 15 supported video formats, which explains the regression you've noticed. With all other things equal, on your machine that would mean going from roughly 3 seconds to 10 seconds. This is code imported from libwebrtc, so we are exploring options to patch this and/or contribute a fix back to the upstream project that would improve how the query is done.
| Reporter | ||
Comment 10•1 year ago
|
||
Thank you very much for the detailed feedback. I understand the problem now. I am going to look into strace, if that can support the analysis.
| Reporter | ||
Comment 11•1 year ago
|
||
Just for my understanding, you have not found a system where you can reproduce this, is that correct?
Comment 12•1 year ago
|
||
(In reply to Paul Menzel from comment #11)
Just for my understanding, you have not found a system where you can reproduce this, is that correct?
Sorry for the delay in responding. No, we haven't been able to reproduce, but that doesn't mean it we're not interested in improving the situation. For comparison, below I've included a profile from my linux box where the same enumeration completes in just under 3s.
https://share.firefox.dev/46TVES1
Updated•1 year ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Description
•