-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getStats fails in Firefox (freedom integration test) #4
Comments
@bemasc - I think you added the getStats test here. Is it a problem that On Wed, Apr 8, 2015 at 12:43 PM, soycode notifications@github.com wrote:
|
That does sound like a problem, but it doesn't reproduce for me. (Also, it shouldn't affect uProxy, because uProxy no longer uses getStats.) |
Hrm I thought I was reproducing this on Shippable but can't any more, so I'll close for now. Sorry for the false alarm. |
Err I lied, and/or Shippable is playing tricks on me. This issue is live on the most recent Shippable build: https://app.shippable.com/builds/55256fd1bd14530c001eb753
If this test isn't expected to pass in Firefox then I'd suggest adding at least some sort of "if firefox then don't try to do this test" logic somewhere, so we can get Shippable nice and green. |
I expect this test to pass (and on my machine it does!), so we should investigate. |
I'm seeing error messages like this:
May be spurious as I see similar errors on tests that are passing. The main difference for getStats is it then leads to what looks like a Firefox-crashing error: Corresponding to: https://github.com/freedomjs/freedom/blob/e9f1f140b6b2a98eca77542608cf7cce2cc7073d/providers/core/core.rtcpeerconnection.js#L92 |
From some investigation, looks like the Firefox getStats just returns an iterable RTCStatsReport, rather than taking a callback/resolving a promise. I think this adapter may still be the right place for a fix, if so then pull request will be forthcoming. |
Or it does return something with "then" and "catch", but it's just not playing nice. |
So I think I've finally dug down to a fairly informative error:
This refers to: https://dxr.mozilla.org/mozilla-central/source/dom/media/PeerConnection.js?from=PeerConnection.js#244 So I'm guessing there's something funky about Of course this is all somewhat strange in light of the test apparently passing on other machines. As of now it is failing on my machine (OSX 10.9.5 Firefox 37) and also on Travis (I think effectively some-sort-of-Linux/Firefox 37). If we can reproduce success on other machines that may change things. @bemasc, does it still pass for you and on what platform? |
Works for me on FF36, Linux. I guess FF must have changed something. On Mon, Apr 13, 2015 at 4:55 PM, soycode notifications@github.com wrote:
|
Specifically this assertion: https://github.com/freedomjs/freedom/blob/master/spec/providers/coreIntegration/rtcpeerconnection.integration.src.js#L192
I've done a bit of investigation and think that the fix probably comes back to this dependency - if that ends up being erroneous I'll close this out.
The text was updated successfully, but these errors were encountered: