Closed
Bug 1113422
Opened 11 years ago
Closed 10 years ago
unexpected test failure: "uncaught promise rejection" in bare addon
Categories
(Add-on SDK Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: cooperq, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/39.0.2171.65 Chrome/39.0.2171.65 Safari/537.36
Steps to reproduce:
I created a new browser extension by running the command "cfx init myext". I then changed to the `myext` directory and ran the tests, getting a failure. Running addon SDK version 1.17 on linux.
Actual results:
The tests failed with the following error:
```
Using binary at '/usr/bin/firefox'.
(process:5673): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Using profile at '/tmp/tmpWFoOkz.mozrunner'.
(process:5677): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
[5677] WARNING: Attempt to add property GnomeProgram::sm-connect after class was initialised: 'glib warning', file /build/buildd/firefox-34.0+build2/toolkit/xre/nsSigHandlers.cpp, line 127
(firefox:5677): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised
[5677] WARNING: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised: 'glib warning', file /build/buildd/firefox-34.0+build2/toolkit/xre/nsSigHandlers.cpp, line 127
(firefox:5677): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised
[5677] WARNING: Attempt to add property GnomeProgram::display after class was initialised: 'glib warning', file /build/buildd/firefox-34.0+build2/toolkit/xre/nsSigHandlers.cpp, line 127
(firefox:5677): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised
[5677] WARNING: Attempt to add property GnomeProgram::default-icon after class was initialised: 'glib warning', file /build/buildd/firefox-34.0+build2/toolkit/xre/nsSigHandlers.cpp, line 127
(firefox:5677): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised
Running tests on Firefox 34.0/Gecko 34.0 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under linux/x86_64.
.console.error: code:
fail:
There was an uncaught Promise rejection: JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: PendingErrors.register :: line 159
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.completePromise :: line 672
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: Handler.prototype.process :: line 868
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.walkerLoop :: line 744
native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0
console.trace: code:
_ecated/unit-test.js 96 fail
_ecated/unit-test.js 61 TestRunner.prototype._uncaughtErrorObserver
_/Promise-backend.js 197 PendingErrors.report
_/Promise-backend.js 209 PendingErrors.flush
_/Promise-backend.js 611 Promise.Debugging.flushUncaughtErrors
_ecated/unit-test.js 306 done
_ecated/unit-test.js 529 start
_ecated/unit-test.js 491 runNextTest
_ecated/unit-test.js 496 startMany
_ecated/unit-test.js 26 findAndRunTests/<
_/Promise-backend.js 865 Handler.prototype.process
_/Promise-backend.js 744 this.PromiseWalker.walkerLoop
0
.
2 of 3 tests passed.
```
Expected results:
The tests should have all passed, since this is a brand new extension created from the addon sdk with no custom tests.
Interestingly, when running the tests against firefox 35 I get the expected results:
```
Running tests on Firefox 35.0/Gecko 35.0 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under linux/x86_64.
..
2 of 2 tests passed.
```
This makes me think that perhaps the bug could be related to this fix: https://bugzilla.mozilla.org/show_bug.cgi?id=1072118
which should probably be backported into the 34 branch.
Reporter | ||
Updated•11 years ago
|
Component: Untriaged → General
Comment 2•10 years ago
|
||
Marking this as WFM because it's fixed post-34 -- 35 will be released this week.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Product: Firefox → Add-on SDK
Resolution: --- → WORKSFORME
Version: 34 Branch → unspecified
You need to log in
before you can comment on or make changes to this bug.
Description
•