Closed
Bug 884654
Opened 12 years ago
Closed 12 years ago
Deadlock because of OmxDecoder::statusChanged()
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-b2g:leo+, firefox23 wontfix, firefox24 wontfix, firefox25 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 wontfix, b2g-v1.1hd fixed)
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
Attachments
(3 files, 1 obsolete file)
|
13.46 KB,
text/plain
|
Details | |
|
3.49 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
|
3.49 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
When OmxDecoder::statusChanged() is called. At first the function grab OMXCodecProxy's mutex and then nsBuiltinDecoder's ReentrantMonitor. The order is opposite of other places. This could make dead lock.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → sotaro.ikeda.g
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
blocking-b2g: --- → leo?
Comment 2•12 years ago
|
||
Can this bug impact watching of YouTube videos off of YouTube's HTML 5 mobile site significantly?
| Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #2)
> Can this bug impact watching of YouTube videos off of YouTube's HTML 5
> mobile site significantly?
It happens sometimes not significantly. But when the bug happens, only way is kill the app.
| Assignee | ||
Comment 4•12 years ago
|
||
Confirmed the patch fix the deadlock on v1.1 leo.
| Assignee | ||
Comment 5•12 years ago
|
||
The deadlock could be relatively easily regenerated by STR in Bug 884182 comment #0.
| Assignee | ||
Updated•12 years ago
|
Attachment #764544 -
Flags: review?(chris.double)
Comment 6•12 years ago
|
||
Comment on attachment 764544 [details] [diff] [review]
patch - fix deadlock come from OmxDecoder::statusChanged()
Review of attachment 764544 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/omx/OmxDecoder.cpp
@@ +767,5 @@
> + case kNotifyPostReleaseVideoBuffer:
> + {
> + Mutex::Autolock autoLock(mSeekLock);
> + // Free pending video buffers when OmxDecoder is not seeking video.
> + // If OmxDecoder is in seeking video, the buffers are freed on seek exit.
Remove trailing whitespace. Remove 'in'.
@@ +768,5 @@
> + {
> + Mutex::Autolock autoLock(mSeekLock);
> + // Free pending video buffers when OmxDecoder is not seeking video.
> + // If OmxDecoder is in seeking video, the buffers are freed on seek exit.
> + if (mIsVideoSeeking != true) {
if (!mIsVideoSeeking)
Attachment #764544 -
Flags: review?(chris.double) → review+
| Assignee | ||
Updated•12 years ago
|
OS: Windows 7 → Gonk (Firefox OS)
Hardware: x86_64 → ARM
| Assignee | ||
Comment 7•12 years ago
|
||
Apply the comment. Carry "chris.double: review+".
Attachment #764544 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•12 years ago
|
||
A patch for b2g18. Carry "chris.double: review+".
| Assignee | ||
Updated•12 years ago
|
Attachment #764802 -
Flags: review+
| Assignee | ||
Comment 9•12 years ago
|
||
Comment on attachment 764803 [details] [diff] [review]
patch v2 for b2g18 - fix deadlock come from OmxDecoder::statusChanged()
carry r+.
Attachment #764803 -
Flags: review+
Updated•12 years ago
|
blocking-b2g: leo? → leo+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 10•12 years ago
|
||
Keywords: checkin-needed
Comment 11•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 12•12 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-b2g-v1.1hd:
--- → affected
status-firefox23:
--- → wontfix
status-firefox24:
--- → wontfix
status-firefox25:
--- → fixed
Target Milestone: --- → 1.1 QE3 (26jun)
Comment 13•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•