Open Bug 1256721 Opened 8 years ago Updated 2 years ago

Handler function NRL_getSecurityInfo threw an exception: TypeError: this.transport is null

Categories

(DevTools :: Netmonitor, defect, P3)

45 Branch
Unspecified
Linux
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: u552789, Unassigned)

Details

I wasn't doing anything special at the time, and then I suddenly saw this error in my Firefox console log:

    20:54:52.159 Handler function NRL_getSecurityInfo threw an exception: TypeError: this.transport is null
    Stack: DSC_send@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js:1334:5
    NEA_addSecurityInfo@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/webconsole.js:1924:5
    NRL_getSecurityInfo@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/toolkit/webconsole/network-monitor.js:273:5
    makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/DevToolsUtils.js:83:14
    NRL_onStartRequest@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/toolkit/webconsole/network-monitor.js:227:5
    Line: 1334, column: 51 DevToolsUtils.js:59:0

I am running Ubuntu GNOME 15.10 with GNOME 3.18 and this is in Firefox 45 though I first noticed this in Firefox 41.

I initially filed the report here but thought I should also do so upstream: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1503026
Component: Untriaged → Developer Tools
Component: Developer Tools → Developer Tools: Netmonitor
I can't reproduce the problem. Can you please provide simple test case we could use to see the issue on our machines?

Honza
Has STR: --- → no
Flags: needinfo?(cooks.go.hungry)
Priority: -- → P3
I'm encountering this or a slight variation on this on Firefox 50.0, Windows 10.

Stack:
"Handler function threw an exception: TypeError: this.transport is null
Stack: send@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/main.js:1429:5
NEA_addSecurityInfo@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/webconsole.js:2168:5
NetworkResponseListener.prototype._getSecurityInfo<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/webconsole/network-monitor.js:508:5
exports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14
NetworkResponseListener.prototype.onStartRequest@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/webconsole/network-monitor.js:457:5
Line: 1429, column: 5"

Console links to: ThreadSafeDevToolsUtils.js:80


When I have seen this error, I've noticed that pending AJAX requests get killed with CORS failures. The error is sporadic, the same AJAX requests will eventually go through without any changes to CORS.

I don't have repro steps but I think I know what this might be. The requests which end up failing CORS take quite a while to complete (maybe 1-2 minutes or so). I'm *guessing* that the code around the aforementioned stack trace is assuming there will always be an active transport but something is nulling it.

Hope this helps.
Sorry, but I just saw this error in the log, I don't know what caused.
Flags: needinfo?(cooks.go.hungry)
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.