karma-sonarqube-unit-reporter icon indicating copy to clipboard operation
karma-sonarqube-unit-reporter copied to clipboard

TypeError: Cannot set property '5841760' of null at initliazeXmlForBrowser

Open AryanJ-NYC opened this issue 6 years ago • 5 comments

TypeError: Cannot set property '56021360' of null
    at initliazeXmlForBrowser (karma-sonarqube-unit-reporter/index.js:50:40)
    at SonarQubeUnitReporter.onBrowserStart (karma-sonarqube-unit-reporter/index.js:106:5)
    at Server.<anonymous> (karma/lib/events.js:40:26)
    at Server.emit (events.js:187:15)
    at Browser.onStart (karma/lib/browser.js:123:18)
    at Socket.socket.on (karma/lib/browser.js:269:39)
    at Socket.emit (events.js:182:13)
    at socket.io/lib/socket.js:513:12
    at process._tickCallback (internal/process/next_tick.js:61:11)
(node:58825) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated

Versions:

"jasmine-core": "~3.1.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.5",
"karma-coverage-istanbul-reporter": "^2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-phantomjs-launcher": "^1.0.4",
"karma-sonarqube-unit-reporter": "0.0.17",

Bug reproduced when saving a spec file while tests are running.

Similar junit bugs: karma-runner/karma-junit-reporter#20 https://github.com/karma-runner/karma-junit-reporter/issues/61

AryanJ-NYC avatar Jul 26 '18 20:07 AryanJ-NYC

We have same problem. Weird thing is, it used to work, and this error started showing up without any relevant package.json changes

llehn avatar Aug 31 '18 08:08 llehn

We changed tests to run in Chrome instead of ChromeHeadless and the issue vanished.

llehn avatar Sep 07 '18 09:09 llehn

Just wondering if there's any update on this issue?

Manish2005 avatar Apr 03 '19 09:04 Manish2005

Is there any fix or update on this?

SanthoshBanavath avatar Jun 29 '22 11:06 SanthoshBanavath

As a workaround it helped to downgrade socket.io to 4.7.0.

{
...
    "overrides": {
        "socket.io": "4.7.0"
    }
}

andreas-mueller-2504 avatar Sep 04 '24 13:09 andreas-mueller-2504