Closed
Bug 1052169
Opened 11 years ago
Closed 11 years ago
webrtc::ViEEncoder crashes while WebRTC session is closing
Categories
(Core :: WebRTC, defect)
Tracking
()
People
(Reporter: diego, Assigned: jesup)
References
()
Details
(Keywords: crash, Whiteboard: [caf priority: p2][CR 705426][b2g-crash])
Attachments
(8 files, 2 obsolete files)
289.19 KB,
text/plain
|
Details | |
94.37 KB,
text/plain
|
Details | |
295.36 KB,
text/plain
|
Details | |
94.54 KB,
text/plain
|
Details | |
7.12 MB,
text/plain
|
Details | |
6.04 MB,
text/plain
|
Details | |
2.44 KB,
patch
|
benjamin
:
review+
diego
:
feedback+
|
Details | Diff | Splinter Review |
4.60 KB,
patch
|
jhlin
:
review+
|
Details | Diff | Splinter Review |
I see two crashes (attached) repeated several times while closing a device-to-device WebRTC session.
STR:
1. Set up WebRTC session on phone 1 and phone 2.
2. Close session on phone 1.
3. Attempt to close session on phone 2.
4. App crashes!
Reporter | ||
Comment 1•11 years ago
|
||
Reporter | ||
Comment 2•11 years ago
|
||
Reporter | ||
Comment 3•11 years ago
|
||
Reporter | ||
Comment 4•11 years ago
|
||
Reporter | ||
Comment 5•11 years ago
|
||
[Blocking Requested - why for this release]: This is a major stability issue on one of the main features for V2.0
blocking-b2g: --- → 2.0?
Flags: needinfo?(rjesup)
Reporter | ||
Updated•11 years ago
|
Blocks: CAF-v2.0-CC-metabug
Updated•11 years ago
|
Assignee | ||
Comment 6•11 years ago
|
||
I presume these were 2.0 builds; were they running on a KK base? Were they using H.264? Opt or debug?
"Set up WebRTC session on phone 1 and phone 2" - session using? talky.io? apptrtc? Loop app?
"2. Close session on phone 1.
3. Attempt to close session on phone 2.
4. App crashes!"
Implies to me that it's the loop app. Is there a timing component?
Thanks
Flags: needinfo?(rjesup)
Assignee | ||
Comment 7•11 years ago
|
||
Also, if it's H.264, can you try with VP8?
Flags: needinfo?(dwilson)
Updated•11 years ago
|
blocking-b2g: 2.0? → 2.0+
Assignee | ||
Comment 8•11 years ago
|
||
One more question: is this a (recent?) regression? Since I haven't seen this before or heard it reported; I'm guessing it's a regression (unless it's a timing bug we hadn't hit before)
Updated•11 years ago
|
Assignee: nobody → rjesup
Reporter | ||
Comment 9•11 years ago
|
||
Flags: needinfo?(dwilson)
Reporter | ||
Comment 10•11 years ago
|
||
These crashes happened on a KK 8x10 build with H.264 enabled (no debug).
I'm using my own homegrown test app based on SimpleWebRTC library [1]. It's not very different from the sample app in the project itself.
I want to say it's a recent regression, but I would have to do some extra testing to confirm.
https://github.com/HenrikJoreteg/SimpleWebRTC
Reporter | ||
Comment 11•11 years ago
|
||
This is only reproducible with H.264. It works fine when I configure for VP8.
Reporter | ||
Comment 12•11 years ago
|
||
Also, this is not reproducible on talky.io with the H.264 config in comment 10
Updated•11 years ago
|
Whiteboard: [b2g-crash] → [CR 705426][b2g-crash]
Updated•11 years ago
|
Whiteboard: [CR 705426][b2g-crash] → [caf priority: p2][CR 705426][b2g-crash]
Reporter | ||
Comment 13•11 years ago
|
||
As per discussion with Randell, this may be related to bug 1047442
Updated•11 years ago
|
QA Whiteboard: [2.0-signoff-need+]
Comment 14•11 years ago
|
||
This will need a new test case to be covered.
QA Whiteboard: [2.0-signoff-need+] → [2.0-signoff-need?][QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Flags: in-moztrap?(srapanan)
Comment 15•11 years ago
|
||
Test case added in moztrap:
https://moztrap.mozilla.org/manage/case/14330/
QA Whiteboard: [2.0-signoff-need?][QAnalyst-Triage?] → [2.0-signoff-need?][QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Flags: in-moztrap?(srapanan)
Flags: in-moztrap+
Reporter | ||
Comment 16•11 years ago
|
||
Reporter | ||
Comment 17•11 years ago
|
||
Added "NSPR_LOG_MODULES=signaling:5,webrtc_trace:65535 WEBRTC_TRACE_FILE=nspr" for extra logging as per Randell's request
Attachment #8471659 -
Attachment is obsolete: true
Flags: needinfo?(rjesup)
Reporter | ||
Updated•11 years ago
|
Attachment #8473883 -
Attachment description: logcat.txtLogcat during crashes v2 → Logcat during crashes v2
Assignee | ||
Comment 18•11 years ago
|
||
Diego: give this a try. It appears it would resolve the problem I saw in the last log you uploaded; I'm not sure it would cover every crash you've seen. Also, I modified the logging so that you can turn on signaling:5 and get all the OMXH264 logs without zillions of audio logs
Updated•11 years ago
|
QA Whiteboard: [2.0-signoff-need?][QAnalyst-Triage+] → [2.0-signoff-need+][QAnalyst-Triage+]
Reporter | ||
Comment 19•11 years ago
|
||
Reporter | ||
Comment 20•11 years ago
|
||
I see the same two crashes with the WIP patch in attachment 8474173 [details] [diff] [review]. I attached the log.
Assignee | ||
Comment 21•11 years ago
|
||
Diego: try this.....
Reporter | ||
Comment 22•11 years ago
|
||
Comment on attachment 8474924 [details] [diff] [review]
Proxy thread destruction to avoid recursing event loops within OMX H264 shutdown
Review of attachment 8474924 [details] [diff] [review]:
-----------------------------------------------------------------
20 calls with no crash with this patch!
Attachment #8474924 -
Flags: feedback+
Assignee | ||
Comment 23•11 years ago
|
||
Comment on attachment 8474924 [details] [diff] [review]
Proxy thread destruction to avoid recursing event loops within OMX H264 shutdown
Note: Clone of the patch we did for GMP plugins to proxy the thread destruction. The Conduit code didn't expect to recurse the event loop when shutting down a ViE (communications) channel (causing other conduits it interacts with to shut down while we're in mid-shutdown).
Attachment #8474924 -
Flags: review?(benjamin)
Flags: needinfo?(rjesup)
Assignee | ||
Comment 24•11 years ago
|
||
Cleaned up - boot and suspenders patch to deal with async returns of decode buffers
Assignee | ||
Updated•11 years ago
|
Attachment #8474173 -
Attachment is obsolete: true
Assignee | ||
Comment 25•11 years ago
|
||
Comment on attachment 8475341 [details] [diff] [review]
Ignore decode-complete callbacks during OMX decoder shutdown WIP
I'll take a review from whomever feels good doing so. This is a pretty simple "safety" patch to deal with delayed frame decodes after we've started to shut down.
Attachment #8475341 -
Flags: review?(jolin)
Attachment #8475341 -
Flags: review?(cpearce)
Updated•11 years ago
|
QA Whiteboard: [2.0-signoff-need+][QAnalyst-Triage+] → [2.0-signoff-need+][QAnalyst-Triage+][lead-review+]
Updated•11 years ago
|
Attachment #8475341 -
Flags: review?(jolin) → review+
Updated•11 years ago
|
Attachment #8475341 -
Flags: review?(cpearce)
Assignee | ||
Comment 26•11 years ago
|
||
Whiteboard: [caf priority: p2][CR 705426][b2g-crash] → [caf priority: p2][CR 705426][b2g-crash][webrtc-uplift]
Target Milestone: --- → mozilla34
Comment 27•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 28•11 years ago
|
||
Forgot to mark this leave-open. We actually need the other patch that's up for review to bsmedberg to fix the crash found by Diego. Once that lands, we can close this bug.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•11 years ago
|
Attachment #8474924 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 29•11 years ago
|
||
status-b2g-v2.0:
--- → affected
status-firefox34:
--- → affected
Comment 30•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Comment 31•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/82b04a3ec0f4
https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/7faa4942d230
Assignee | ||
Updated•11 years ago
|
Whiteboard: [caf priority: p2][CR 705426][b2g-crash][webrtc-uplift] → [caf priority: p2][CR 705426][b2g-crash]
You need to log in
before you can comment on or make changes to this bug.
Description
•