Intermittent browser_devices_get_user_media_in_frame.js | application crashed [@ mozilla::MediaManager::Observe(nsISupports *,char const *,wchar_t const *)] after "Assertion failure: device, at dom\media\MediaManager.cpp:2058"

RESOLVED FIXED in Firefox 39

Status

()

Core
WebRTC
P3
major
RESOLVED FIXED
4 years ago
3 years ago

People

(Reporter: RyanVM, Unassigned)

Tracking

({assertion, crash, intermittent-failure})

Trunk
mozilla41
x86_64
Windows 8.1
assertion, crash, intermittent-failure
Points:
---
Bug Flags:
firefox-backlog +

Firefox Tracking Flags

(firefox39 fixed, firefox40 fixed, firefox41 fixed, firefox-esr31 fixed, firefox-esr38 fixed)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Created attachment 8567501 [details]
test log

Seems to be on Aurora only. It's particularly awful because Treeherder isn't able to parse it easy, so one has to go through the full log to find it.

http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-aurora-win64-debug/1424496002/mozilla-aurora_win8_64-debug_test-mochitest-browser-chrome-1-bm110-tests1-windows-build5.txt.gz
Comment hidden (Treeherder Robot)
The assert in the c++ code is immediately preceeded by 

JavaScript strict warning: resource://app/modules/ContentWebRTC.jsm, line 49: ReferenceError: reference to undefined property devices[deviceIndex] [1]

from here in the log from comment 0:
> 22:37:56     INFO -  TEST DEVICES: No test devices found (in media.{audio,video}_loopback_dev, using fake streams.
> 22:37:57     INFO -  JavaScript strict warning: resource://app/modules/ContentWebRTC.jsm, line 49: ReferenceError: reference to undefined property devices[deviceIndex]
> 22:37:57     INFO -  Assertion failure: device, at c:\builds\moz2_slave\m-aurora-w64-d-000000000000000\build\dom\media\MediaManager.cpp:2058
> 22:37:57     INFO -  #01: nsObserverService::NotifyObservers(nsISupports *,char const *,wchar_t const *) [xpcom/ds/nsObserverService.cpp:333]

[1] http://mxr.mozilla.org/mozilla-aurora/source/browser/modules/ContentWebRTC.jsm?rev=510873b2ee88#49
florian: can you help figure out what's up here?  Specifically resource://app/modules/ContentWebRTC.jsm, line 49: ReferenceError: reference to undefined property devices[deviceIndex] [1]
Flags: needinfo?(florian)
I wonder if this error:
JavaScript error: resource://app/modules/ContentWebRTC.jsm, line 35: TypeError: mm is null
(which apparently is present in the test logs even when the failure doesn't occur) could be related.

My thoughts when looking at the test log are "are we attempting to accept a gUM request in an iframe that no longer exists already?".

Also, it seems this test log has several other TEST-UNEXPECTED-FAIL lines; so I wonder if it could be that the process was already a mess when we reached the gUM tests.

Ryan, has this failure occurred more than once?
Flags: needinfo?(florian) → needinfo?(ryanvm)
(Reporter)

Comment 5

3 years ago
Yes
Flags: needinfo?(ryanvm)
Comment hidden (Treeherder Robot)

Comment 7

3 years ago
higher bug priority because requires manual searching to find - treeherder log not auto-searchable.
Severity: normal → major
Flags: firefox-backlog+
Priority: -- → P3
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
(Reporter)

Updated

3 years ago
Depends on: 1169243
(Reporter)

Comment 12

3 years ago
Fixed by bug 1169243.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
status-firefox39: --- → fixed
status-firefox40: --- → fixed
status-firefox41: --- → fixed
status-firefox-esr31: --- → fixed
status-firefox-esr38: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.