New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 821378 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Chrome tabs freeze while WebRTC camera is active

Reported by aleksand...@gvocom.com, Mar 13 2018

Issue description

Chrome Version       : 65.0.3325.146
URLs (if applicable) :
OS version               : 10.13.3, 10.11.6  
Behavior in Safari (if applicable): no problem
Behavior in Firefox (if applicable): no problem

What steps will reproduce the problem?
(1) Open tab with websockets and launch webrtc camera
(2) switch to another tab
(3) sometimes first tab freezes, chrome://webrtc-internals freezes

What is the expected result?
No freezes, tabs and background tabs work as expected

What happens instead?
Tabs freeze, background tab with websocket and webrtc stops to receive data into websocket, JS timers stopped, but webrtc still works. chrome://webrtc-internals is frozen, see attached screenshot, notice time stamps

Similar behavior on Chrome 64. How to debug it further ?
 
Screen Shot 2018-03-13 at 1.23.54 PM.png
461 KB View Download

Comment 1 by guidou@chromium.org, Mar 13 2018

Components: Blink>WebRTC
Labels: Needs-Feedback
alksandr.v@: Can you provide a URL for easier testing?
https://77485303.myownmeeting.net
MODBC7DBE2D 1L6R3R5H
MODD81827C5 3R1H5I5M
guest login is also possible

I note again, it's hard to trigger a bug. The more camera bitrate and client load the easier to trigger it. webrtc-internals stops to draw graphs just in foreground, background myownmeeting tab stops to receive data in websockets according to devtools network tab, no JS timers are running and so on, the only working thing on background myownmeeting tab is webrtc. As soon as I switch back to myownmeeting tab - JS starts to respond, websockets receive some data and disconnect due to timeout.
Project Member

Comment 3 by sheriffbot@chromium.org, Mar 13 2018

Cc: guidou@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Triage-M65

Comment 5 by hbos@chromium.org, Mar 15 2018

Does this only happen on Mac? I'm working with a different freeze bug relating to unmuting the camera in a webrtc call and it only happens on OSX and only in release builds.

Comment 6 by hbos@chromium.org, Mar 15 2018

This one: https://crbug.com/813574
>Does this only happen on Mac?
We still not able to reproduce this issue on Win
Cc: sindhu.chelamcherla@chromium.org
Labels: Needs-Feedback Triaged-ET
Unable to test this issue with test file given as we are seeing "OOPS 500 error" on signing to https://77485303.myownmeeting.net with credentials given in comment#2. Attaching screencast for reference.

@Reporter: Could you please give us alternate URL or credentials to test this issue from TE end.

Thanks!
821378.mp4
3.9 MB View Download
@sindhu.chelamcherla
We fixed OOPS 500, sorry about it. Can you pls test now?
Project Member

Comment 10 by sheriffbot@chromium.org, Mar 19 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Here is screen capture 2 min video with bug https://vimeo.com/260930832 . MacOS 10.13.3, Chrome Version 65.0.3325.146 (Official Build) (64-bit)
Owner: hbos@chromium.org
Status: Assigned (was: Unconfirmed)
hbos@: Can you take a look and see if this could be a duplicate of bug 813574?

Comment 13 by hbos@chromium.org, Mar 20 2018

Labels: -Pri-3 Pri-2
#11: Thanks for the video.

#12: I'm guessing it's not a duplicate because the tab unfreezes when you return to it and "Similar behavior on Chrome 64". Bug 813574 is more recent and does not unfreeze or involve multiple tabs.

How hard is this to repro? Is it possible to repro on a small testpage like a jsfiddle.net/ ?
>How hard is this to repro?
It's easier to reproduce under heavy load, like high bitrate camera and high resolution screen sharing. We cannot reproduce it with appr.tc.
 
> Is it possible to repro on a small testpage like a jsfiddle.net/ ?
I don't think so

Comment 15 by hbos@chromium.org, Mar 28 2018

NextAction: 2018-04-03
NextAction Reminder to myself to check back if this is fixed in canary after https://crbug.com/813574 is fixed (change in commit queue)
The NextAction date has arrived: 2018-04-03

Comment 17 by hbos@chromium.org, Apr 17 2018

Labels: Needs-Feedback
There has been similar issues where the tab is freezing for a long time (e.g. 86s) and then unfreezes, like  https://crbug.com/829831 , which I can't repro and looks unrelated to code I am familiar with. I will try to reassign these.

aleksandr.v@ can you go to chrome://tracing and record a trace while you repro the problem, then attach the file here?

Comment 18 by hbos@chromium.org, Apr 17 2018

Cc: hbos@chromium.org
Components: Blink>Network>WebSockets
Owner: ----
Status: Available (was: Assigned)

Comment 19 by hbos@chromium.org, Apr 17 2018

Status: Untriaged (was: Available)

Comment 20 by hbos@chromium.org, Apr 17 2018

Components: -Blink>WebRTC Blink>WebRTC>Network

Comment 21 by hbos@chromium.org, Apr 17 2018

NextAction: ----
>can you go to chrome://tracing and record a trace while you repro the problem, then attach the file here?
Will do it as soon as reproduce the bug
Web developer trace  attached, had to re-compress with XZ, as default gz doesn't fit 10MB limit
trace_bug.json.xz
6.9 MB Download

Comment 24 by hbos@chromium.org, Apr 17 2018

Thanks. Hmm... I don't see any obvious culprit.
Should I recreate trace with some specific options?

Comment 26 by hbos@chromium.org, Apr 19 2018

Are you able to create a dump for when it is stuck and attach it here?
https://www.chromium.org/for-testers/bug-reporting-guidelines/hanging-tabs
Cannot find crash file under  ~/Library/Application Support/Google/Chrome/, no Crash report directory. Crash uploaded as crash/5da7c32c048e0f38 crbug.com/837249 , Chrome 66 is still affected. Do you able to access it ?
Issue 837249 has been merged into this issue.
The crash is showing thread 34 is doing h264 encoding and thread 0 crashes inside a mach_msg call (essentially idle). So my guess here is some type of memory corruption by the H264 encoder? Seems to still be a WebRTC issue.

Comment 30 by hbos@chromium.org, May 4 2018

Owner: sprang@chromium.org
Status: Assigned (was: Untriaged)
Original description said it was just frozen. Did you crash the browser while it was frozen or is this a different issue?

The crash (crash/5da7c32c048e0f38) is in the OpenH264 encoder, assigning to sprang@.

> Did you crash the browser while it was frozen?
Yes, as noted on https://www.chromium.org/for-testers/bug-reporting-guidelines/hanging-tabs ,  kill -ABRT , it produces crash dump. 

Comment 32 by hbos@chromium.org, May 4 2018

Ok great :)
Cc: sprang@chromium.org
Owner: ssilkin@chromium.org
ssilkin@ could you triage?
aleksandr.v, is the issue still reproducible in later chrome versions (e.g. 67)?
yes, we still can reproduce this bug
Components: -Blink>WebRTC>Network Blink>WebRTC>Video
aleksandr.v, would it be possible to restore the access to myownmeeting.net (#2)?
yes, you can test it at our test account
https://38915599.myownmeeting.net
login: MODFDB44133, password: P2H4B6B2
login: MOD37D137A9, password: 1P5H3J1P
I successfully logged in. How can I run video capturing and streaming?
click "Talk Now" please
or go to Desktop tab and click "Start Sharing"
It seems it only allows one-way video. I get 'Speakers limit reached' message on attempt to send video from the second client. How do I send video from both clients simultaneously?
updated - now you can use several speakers in one time
I got video floating in both ways. I joint the meeting from Linux machine and from Mac. I couldn't repro the issue on Mac with Chrome 68.0.3440.84. I managed to get 1mbps received video bitrate. Also, tried to apply packet loss (you had some according to your recordings in #11).

Is H264 only supported codec in your conferencing? If not, then could you please try VP8/9 and see if you still get the issue?
Screen Shot 2018-08-02 at 5.24.28 PM.png
985 KB View Download

Sign in to add a comment