TypeError: win is null exception in PresentationControlService Promise is being thrown on shutdown

NEW
Unassigned

Status

()

Core
DOM: Device Interfaces
P5
normal
2 years ago
7 months ago

People

(Reporter: mconley, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: btpp-followup-2016-07-05)

I'm seeing this a lot in my terminal after running a single mochitest:

-*- PresentationControlService.js: PresentationControlService - close
*************************
A coding exception was thrown in a Promise resolution callback.
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise
Full message: TypeError: win is null
Full stack: onSuccess@file:///Users/mikeconley/Projects/mozilla-central/obj-x86_64-apple-darwin14.5.0/dist/Nightly.app/Contents/Resources/browser/components/nsBrowserGlue.js:845:17
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11
this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7
this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7
get _worker/worker.onmessage@resource://gre/modules/PromiseWorker.jsm:231:9
Spinner.prototype.observe@resource://gre/modules/AsyncShutdown.jsm:551:9
*************************
Any idea what this could be, junior?
Flags: needinfo?(juhsu)

Comment 2

2 years ago
I'm out of office this week.
Could you help with this, SC?
Flags: needinfo?(juhsu) → needinfo?(schien)
This log is just happens to be there during shutdown but probably doesn't have relation to this error. You can try comment out this line [1] to prevent PresentationControlService to be loaded, and see if this error still happened.

[1] https://dxr.mozilla.org/mozilla-central/source/dom/presentation/provider/PresentationDeviceProviderModule.cpp#44
Flags: needinfo?(schien)
BTW, the error log is in browser/components/nsBrowserGlue.js:845 while trying to get the most recent window. I think there should be no window at shutdown phase.
You still seeing this, Mike?
Whiteboard: btpp-followup-2016-07-05

Updated

7 months ago
Component: DOM → DOM: Device Interfaces
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.