Closed
Bug 1361622
Opened 8 years ago
Closed 7 years ago
MediaDecoder::Invalidate() may block the main thread for up to 8 seconds
Categories
(Core :: Audio/Video: Playback, enhancement, P1)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
WORKSFORME
Performance Impact | high |
People
(Reporter: cpearce, Unassigned)
References
Details
(Keywords: stale-bug, Whiteboard: [bhr])
Attachments
(1 file)
30.30 KB,
text/plain
|
Details |
BHR is reporting that sometimes the main thread is blocked for up to 8 seconds while MediaDecoder::Invalidate() is on the stack.
I'll attach a list of the entry point pseudo stacks.
We have 92 reports in the reports from 29 April: https://people-mozilla.org/~mlayzell/bhr/20170429/hangs.json
I haven't dived into the causes yet.
Updated•8 years ago
|
Whiteboard: [qf:p1] → [qf:p1][bhr]
Updated•8 years ago
|
Blocks: qf-bugs-upforgrabs
Comment 1•8 years ago
|
||
Hi Chris,
Do you know whether the reports are gathered from Nightly users or computers dedicated to tests like Try? Does it exclude the case (false positive) where the computer is busy or CPU cycles are drained by some other programs?
Flags: needinfo?(cpearce)
Reporter | ||
Comment 2•8 years ago
|
||
This comes from telemetry from Nightly users. We capture the main thread stack if it's blocked for more than 8 seconds (actually, the latest reports have the threshold lowered to 125ms).
Yes, if the main thread happens to be busy for 8 seconds because the user's anti virus scanner or whatever is killing performance, we'll get hit here.
I think it would be useful to add telemetry to record how long we spend in this function; that would give us more evidence to back up the claims here.
Flags: needinfo?(cpearce)
Updated•8 years ago
|
No longer blocks: qf-bugs-upforgrabs
Comment 3•8 years ago
|
||
https://telemetry.mozilla.org/new-pipeline/dist.html#!cumulative=0&end_date=2017-06-06&keys=__none__!__none__!__none__&max_channel_version=nightly%252F55&measure=VFC_SETIMAGES_LOCK_HOLD_MS&min_channel_version=null&processType=*&product=Firefox&sanitize=1&sort_keys=submissions&start_date=2017-06-06&table=0&trim=1&use_submission_date=0
The telemetry shows there are some SetCurrentFrames() calls that hold the lock for more than 1s. I will try to remove the use of lock on the main thread to prevent it from being blocked by other threads.
This is a P1 bug without an assignee.
P1 are bugs which are being worked on for the current release cycle/iteration/sprint.
If the bug is not assigned by Monday, 28 August, the bug's priority will be reset to '--'.
Keywords: stale-bug
Updated•7 years ago
|
Flags: needinfo?(ajones)
JW - what is happening with this bug?
Flags: needinfo?(ajones) → needinfo?(jwwang)
Updated•7 years ago
|
Flags: needinfo?(ajones)
Comment 6•7 years ago
|
||
I believe bug 1377025 has fixed the issue. Per comment 2, it is possible to be a false alarm when the system is busy. I think we can close this bug and open a new one if there are new occurrences.
Flags: needinfo?(jwwang)
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(ajones)
Resolution: --- → WORKSFORME
Updated•3 years ago
|
Performance Impact: --- → P1
Whiteboard: [qf:p1][bhr] → [bhr]
You need to log in
before you can comment on or make changes to this bug.
Description
•