Closed Bug 1009157 Opened 11 years ago Closed 9 years ago

Intermittent test_dom_BluetoothManager_enabled.js | ScriptTimeoutException: ScriptTimeoutException: timed out

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox31 fixed, firefox32 fixed, firefox33 fixed, firefox-esr24 unaffected, b2g-v1.3 unaffected, b2g-v1.3T unaffected, b2g-v1.4 fixed, b2g-v2.0 fixed, b2g-v2.1 fixed)

RESOLVED WORKSFORME
2.0 S4 (20june)
Tracking Status
firefox31 --- fixed
firefox32 --- fixed
firefox33 --- fixed
firefox-esr24 --- unaffected
b2g-v1.3 --- unaffected
b2g-v1.3T --- unaffected
b2g-v1.4 --- fixed
b2g-v2.0 --- fixed
b2g-v2.1 --- fixed

People

(Reporter: RyanVM, Assigned: jaliu)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #969109 +++ I strongly doubt this is really a new issue. More likely, it was lost in the noise of bug 948895. As such, I can't really say when this regressed, but only that it's happening. https://tbpl.mozilla.org/php/getParsedLog.php?id=39497581&tree=Fx-Team b2g_emulator_vm fx-team opt test marionette-webapi on 2014-05-12 09:45:03 PDT for push 99ea54c33bcf slave: tst-linux64-spot-468 10:11:38 INFO - TEST-START test_dom_BluetoothManager_enabled.js 10:17:43 INFO - /builds/slave/test/build/tests/marionette/tests/dom/bluetooth/tests/marionette/test_dom_BluetoothManager_enabled.js, runTest (marionette_test.MarionetteJSTestCase) ... ERROR 10:17:43 INFO - ====================================================================== 10:17:43 INFO - ERROR: None 10:17:43 INFO - ---------------------------------------------------------------------- 10:17:43 INFO - Traceback (most recent call last): 10:17:43 INFO - File "/builds/slave/test/build/tests/marionette/marionette/marionette_test.py", line 170, in run 10:17:43 INFO - testMethod() 10:17:43 INFO - File "/builds/slave/test/build/tests/marionette/marionette/marionette_test.py", line 497, in runTest 10:17:43 INFO - filename=os.path.basename(self.jsFile)) 10:17:43 INFO - File "/builds/slave/test/build/tests/marionette/marionette/marionette.py", line 1057, in execute_js_script 10:17:43 INFO - line=None) 10:17:43 INFO - File "/builds/slave/test/build/tests/marionette/marionette/decorators.py", line 35, in _ 10:17:43 INFO - return func(*args, **kwargs) 10:17:43 INFO - File "/builds/slave/test/build/tests/marionette/marionette/marionette.py", line 614, in _send_message 10:17:43 INFO - "Connection timed out", status=ErrorCodes.TIMEOUT) 10:17:43 ERROR - TimeoutException: TimeoutException: Connection timed out 10:17:43 INFO - Most recent errors/exceptions are: 10:17:43 INFO - 05-12 13:11:27.621 E/GeckoConsole( 44): [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html,<html>test%20page</html>" line: 0}] 10:17:43 INFO - 05-12 13:11:30.851 E/GeckoConsole( 44): [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html,<html>test%20page</html>" line: 0}] 10:17:43 INFO - 05-12 13:11:34.072 E/GeckoConsole( 44): [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html,<html>test%20page</html>" line: 0}] 10:17:43 INFO - 05-12 13:11:37.202 E/GeckoConsole( 44): [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html,<html>test%20page</html>" line: 0}] 10:17:43 INFO - 05-12 13:11:40.461 E/GeckoConsole( 44): [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html,<html>test%20page</html>" line: 0}] 10:17:43 ERROR - TEST-UNEXPECTED-FAIL | test_dom_BluetoothManager_enabled.js | TimeoutException: TimeoutException: Connection timed out 10:17:43 INFO - ---------------------------------------------------------------------- 10:17:43 INFO - Ran 1 test in 363.705s 10:17:43 WARNING - FAILED (errors=1)
That could be related to bug 1011110.
See Also: → 1011110
Assignee: nobody → jaliu
Attachment #8435561 - Flags: review?(echou) → review+
Summary: Intermittent test_dom_BluetoothManager_enabled.js | TimeoutException: TimeoutException: Connection timed out → Intermittent test_dom_BluetoothManager_enabled.js | ScriptTimeoutException: ScriptTimeoutException: timed out
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S4 (20june)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I checked the last five TBPL logs which TBPL Robot reported. The test_dom_BluetoothManager_enabled.js exceeded timeout when it attempted to get the value of BT setting by calling mozSettings.createLock().get("bluetooth.enabled") at the beginning of test. The root cause of those timeouts are that SettingsManager failed to create SettingsLock. The warnings could be found on TBPL logs. https://tbpl.mozilla.org/php/getParsedLog.php?id=42810088&full=1&branch=mozilla-inbound > WARNING - GeckoConsole: [JavaScript Error: "IndexedDB UnknownErr: OpenDatabaseHelper.cpp:1891"] > INFO - Gecko: Cannot open Settings DB. Trying to open an old version?
Depends on: 1032673
These six comments above which reported by TBPL Robot have the same symptom as comment 29 described. The issue will be tracked by Bug 1032673.
(In reply to TBPL Robot from comment #57) > RyanVM > https://tbpl.mozilla.org/php/getParsedLog.php?id=45864924&tree=Mozilla- > Inbound > b2g_emulator_vm mozilla-inbound opt test marionette-webapi on 2014-08-13 > 09:49:59 > revision: 502f2efe3279 > slave: tst-linux64-spot-1264 > > TEST-UNEXPECTED-ERROR | test_dom_BluetoothManager_enabled.js | > ScriptTimeoutException: ScriptTimeoutException: timed out > Return code: 10 [JavaScript Error: "AbortError" {file: "app://system.gaiamobile.org/shared/js/async_storage.js" line: 99}] [JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXPCComponents_Utils.cloneInto]" {file: "jar:file:///system/b2g/omni.ja!/components/SettingsManager.js" line: 49}] ... (multiple times) IPDL protocol error: Handler for PIndexedDB returned error code [JavaScript Error: "IndexedDB UnknownErr: OpenDatabaseHelper.cpp:1906"] Cannot open Settings DB. Trying to open an old version? [JavaScript Error: "NS_ERROR_FAILURE: Failure arg 0 [nsIDOMRequestService.fireError]" {file: "jar:file:///system/b2g/omni.ja!/components/SettingsManager.js" line: 155}]
This basically went perma-fail in the last couple days. Needs attention ASAP or I'll have to disable the test(s).
Flags: needinfo?(jaliu)
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #194) > This basically went perma-fail in the last couple days. Needs attention ASAP > or I'll have to disable the test(s). I'm investigating the cause and I will update what I found today. If Bluetooth test set keeps breaking other tests, please feel free to disable it until BT team fix it. Thanks.
Flags: needinfo?(jaliu)
(In reply to Jamin Liu [:jaliu] from comment #218) > (In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #194) > > This basically went perma-fail in the last couple days. Needs attention ASAP > > or I'll have to disable the test(s). I read log files on TBPL, it looks like the first Bluetooth test failed and broke the rest of all tests. > TEST-UNEXPECTED-ERROR | test_dom_BluetoothManager_enabled.js | ScriptTimeoutException: ScriptTimeoutException: timed out > TEST-UNEXPECTED-ERROR | test_dom_BluetoothManager_adapteradded.js | ScriptTimeoutException: ScriptTimeoutException: timed out > ... > TEST-UNEXPECTED-ERROR | test_mmdb_new.js | ScriptTimeoutException: ScriptTimeoutException: timed out > TEST-UNEXPECTED-ERROR | test_mmdb_setmessagedeliverybyid_sms.js | ScriptTimeoutException: ScriptTimeoutException: timed out > First 100 of 111 failures shown. However, I pushed an experimental patch to change the order of execution of web API test. https://tbpl.mozilla.org/?tree=Try&rev=98e8b635dfb0 It still get the same result even if we don't put Bluetooth test-set at the first of webapi-tests.ini. It seems that the problem can't be resolved by disabling Bluetooth tests. Bluetooth test-set works fine by running Mnw test script "./mach marionette-webapi gecko/dom/bluetooth/tests/marionette/manifest.ini." From my observation, sometimes B2G emulator encounters some kind of error in function sb_updateSignal() @ statusbar.js and cause the failure of wepapi tests.
Jamin, any updates here? This bug is making it impossible for me to test my changes in bug 1085199... Thanks!
Blocks: 1085199
Flags: needinfo?(jaliu)
Hi Ehsan, Thank you for reporting the issue. I suspect the failure of other Mnw tests were not directly affected by test_dom_BluetoothManager_enabled.js. I got the same result even if I disable all Bluetooth tests. https://tbpl.mozilla.org/?tree=Try&rev=7e9ce705f107 I believe there is a bug which causes every Mnw test failed on emulator. From my observation, sometimes B2G emulator encounters some kind of error and causes the failure of every wepapi test. I reproduced the same issue which reported by Bug 1062786 today. Don't know if emulator hit the same issue on TBPL, but I believe it's one of many reasons that emulator can't complete Mnw tests. I'll keep investigating to see if I can provide more information.
Flags: needinfo?(jaliu)
Depends on: 1062786
Inactive; closing (see bug 1180138).
Status: REOPENED → RESOLVED
Closed: 10 years ago9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: