Intermittent devtools/client/inspector/rules/test/browser_rules_custom.js | Uncaught exception - at <>/test/head.js:1042 - TypeError: can't access property "_ruleEditor", view.element.children[childrenIndex] is undefined
Categories
(DevTools :: Inspector: Rules, defect, P5)
Tracking
(firefox101 fixed)
| Tracking | Status | |
|---|---|---|
| firefox101 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: jdescottes)
Details
(Keywords: intermittent-failure, Whiteboard: [stockwell unknown])
Attachments
(1 file)
Filed by: ncsoregi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=364281698&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Af3PDzm1Roua486y4K_PbA/runs/5/artifacts/public/logs/live_backing.log
[task 2022-01-16T13:30:13.250Z] 13:30:13 INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_custom.js | Class property should be overridden -
[task 2022-01-16T13:30:13.250Z] 13:30:13 INFO - Selecting the node for '#testidImportant'
[task 2022-01-16T13:30:13.250Z] 13:30:13 INFO - Console message: [JavaScript Warning: "Empty string passed to getElementById()." {file: "chrome://global/content/elements/browser-custom-element.js" line: 391}]
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - Buffered messages finished
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_custom.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/inspector/test/head.js:1042 - TypeError: can't access property "_ruleEditor", view.element.children[childrenIndex] is undefined
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - Stack trace:
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - getRuleViewRuleEditor@chrome://mochitests/content/browser/devtools/client/inspector/test/head.js:1042:1
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - importantCustomOverride@chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_custom.js:66:39
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - async*@chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_custom.js:15:9
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - Async*Tester_execTest/<@chrome://mochikit/content/browser-test.js:1130:34
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1170:11
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - nextTest/<@chrome://mochikit/content/browser-test.js:978:14
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1041:13
[task 2022-01-16T13:30:13.251Z] 13:30:13 INFO - Leaving test bound
[task 2022-01-16T13:30:13.695Z] 13:30:13 INFO - GECKO(4271) | console.error: "Exception while getting unique selector" (new Error("Connection closed, pending request to server0.conn72.windowGlobal10737418264/domnode33, type getUniqueSelector failed\n\nRequest stack:\nrequest@resource://devtools/shared/protocol/Front.js:292:14\ngenerateRequestMethods/</frontProto[name]@resource://devtools/shared/protocol/Front/FrontClassWithSpec.js:46:19\n_create/<@resource://devtools/client/inspector/rules/views/rule-editor.js:176:72\n_create@resource://devtools/client/inspector/rules/views/rule-editor.js:189:20\nRuleEditor@resource://devtools/client/inspector/rules/views/rule-editor.js:80:8\n_createEditors@resource://devtools/client/inspector/rules/rules.js:1326:23\n_populate/<@resource://devtools/client/inspector/rules/rules.js:1106:37\npromise callback*_populate@resource://devtools/client/inspector/rules/rules.js:1100:8\nrefreshPanel/<@resource://devtools/client/inspector/rules/rules.js:1034:19\npromise callback*refreshPanel@resource://devtools/client/inspector/rules/rules.js:1033:34\nrefresh@resource://devtools/client/inspector/rules/rules.js:2073:17\n_emit@resource://devtools/shared/event-emitter.js:244:34\nemit@resource://devtools/shared/event-emitter.js:190:18\nemit@resource://devtools/shared/event-emitter.js:342:18\nonMutations@resource://devtools/client/inspector/shared/style-change-tracker.js:85:14\n_emit@resource://devtools/shared/event-emitter.js:244:34\nemit@resource://devtools/shared/event-emitter.js:190:18\nemit@resource://devtools/shared/event-emitter.js:342:18\ngetMutations@resource://devtools/client/fronts/walker.js:311:10\nasync*onMutations@resource://devtools/client/fronts/walker.js:320:10\nonPacket@resource://devtools/shared/protocol/Front.js:325:36\nonPacket@resource://devtools/client/devtools-client.js:482:13\nsend/<@resource://devtools/shared/transport/local-transport.js:68:25\nexports.makeInfallible/<@resource://devtools/shared/ThreadSafeDevToolsUtils.js:103:22\nDevToolsUtils.executeSoon*exports.executeSoon@resource://devtools/shared/DevToolsUtils.js:54:21\nsend@resource://devtools/shared/transport/local-transport.js:56:21\nsend@resource://devtools/server/devtools-server-connection.js:99:20\n_onPacketReceived@resource://devtools/shared/transport/js-window-actor-transport.js:48:18\nemit@resource://gre/modules/EventEmitter.jsm:160:20\nreceiveMessage@resource://devtools/server/connectors/js-window-actor/DevToolsFrameParent.jsm:213:21\nJSActor query*sendPacket@resource://devtools/server/connectors/js-window-actor/DevToolsFrameChild.jsm:402:10\nsend@resource://devtools/shared/transport/js-window-actor-transport.js:53:25\nsend@resource://devtools/server/devtools-server-connection.js:99:20\n_sendEvent@resource://devtools/shared/protocol/Actor.js:72:15\ninitialize/<@resource://devtools/shared/protocol/Actor.js:46:16\n_emit@resource://devtools/shared/event-emitter.js:244:34\nemit@resource://devtools/shared/event-emitter.js:190:18\nemit@resource://devtools/shared/event-emitter.js:342:18\n_emitNewMutations@resource://devtools/server/actors/inspector/walker.js:2323:10\nlater@resource://devtools/shared/throttle.js:33:19\nnotify@resource://gre/modules/Timer.jsm:62:17\n", "resource://devtools/shared/protocol/Front.js", 106))
[task 2022-01-16T13:30:13.705Z] 13:30:13 INFO - Removing tab.
[task 2022-01-16T13:30:13.710Z] 13:30:13 INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2022-01-16T13:30:13.712Z] 13:30:13 INFO - Got event: 'TabClose' on [object XULElement].
[task 2022-01-16T13:30:13.713Z] 13:30:13 INFO - Tab removed and finished closing
[task 2022-01-16T13:30:13.719Z] 13:30:13 INFO - GECKO(4271) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-01-16T13:30:13.720Z] 13:30:13 INFO - GECKO(4271) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-01-16T13:30:13.721Z] 13:30:13 INFO - GECKO(4271) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-01-16T13:30:13.734Z] 13:30:13 INFO - GECKO(4271) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-01-16T13:30:13.742Z] 13:30:13 INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-01-16T13:30:13.744Z] 13:30:13 INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-01-16T13:30:13.744Z] 13:30:13 INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-01-16T13:30:13.748Z] 13:30:13 INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-01-16T13:30:13.749Z] 13:30:13 INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_custom.js | The main process DevToolsServer has no pending connection when the test ends -
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 14•3 years ago
•
|
||
Update:
There have been 30 failures within the last 7 days:
• 2 failures on Linux 18.04 x64 WebRender asan opt
• 12 failures on Linux 18.04 x64 WebRender opt
• 15 failures on Linux 18.04 x64 WebRender Shippable opt
• 1 failures on Windows 10 x64 2004 asan WebRender opt
Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=374718561&repo=mozilla-central&lineNumber=24880
[task 2022-04-16T11:51:33.534Z] 11:51:33 INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_custom.js | Class property should be overridden -
[task 2022-04-16T11:51:33.535Z] 11:51:33 INFO - Selecting the node for '#testidImportant'
[task 2022-04-16T11:51:33.536Z] 11:51:33 INFO - Console message: [JavaScript Warning: "Empty string passed to getElementById()." {file: "chrome://global/content/elements/browser-custom-element.js" line: 391}]
[task 2022-04-16T11:51:33.537Z] 11:51:33 INFO - Buffered messages finished
[task 2022-04-16T11:51:33.540Z] 11:51:33 INFO - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_custom.js | Uncaught exception in test - at chrome://mochitests/content/browser/devtools/client/inspector/test/head.js:1043 - TypeError: can't access property "_ruleEditor", view.element.children[childrenIndex] is undefined
[task 2022-04-16T11:51:33.541Z] 11:51:33 INFO - Stack trace:
[task 2022-04-16T11:51:33.542Z] 11:51:33 INFO - getRuleViewRuleEditor@chrome://mochitests/content/browser/devtools/client/inspector/test/head.js:1043:1
[task 2022-04-16T11:51:33.542Z] 11:51:33 INFO - importantCustomOverride@chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_custom.js:66:39
[task 2022-04-16T11:51:33.543Z] 11:51:33 INFO - async*@chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_custom.js:15:9
[task 2022-04-16T11:51:33.544Z] 11:51:33 INFO - Async*handleTask@chrome://mochikit/content/browser-test.js:989:26
[task 2022-04-16T11:51:33.545Z] 11:51:33 INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1061:18
[task 2022-04-16T11:51:33.546Z] 11:51:33 INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1189:14
[task 2022-04-16T11:51:33.546Z] 11:51:33 INFO - nextTest/<@chrome://mochikit/content/browser-test.js:978:14
[task 2022-04-16T11:51:33.547Z] 11:51:33 INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1041:13
[task 2022-04-16T11:51:33.548Z] 11:51:33 INFO - Leaving test bound
[task 2022-04-16T11:51:33.994Z] 11:51:33 INFO - GECKO(10102) | console.error: "Exception while getting unique selector" (new Error("Connection closed, pending request to server0.conn72.windowGlobal38654705665/domnode33, type getUniqueSelector failed\n\nRequest stack:\nrequest@resource://devtools/shared/protocol/Front.js:292:14\ngenerateRequestMethods/</frontProto[name]@resource://devtools/shared/protocol/Front/FrontClassWithSpec.js:46:19\n_create/<@resource://devtools/client/inspector/rules/views/rule-editor.js:208:72\n_create@resource://devtools/client/inspector/rules/views/rule-editor.js:221:20\nRuleEditor@resource://devtools/client/inspector/rules/views/rule-editor.js:80:8\n_createEditors@resource://devtools/client/inspector/rules/rules.js:1335:23\n_populate/<@resource://devtools/client/inspector/rules/rules.js:1115:37\npromise callback*_populate@resource://devtools/client/inspector/rules/rules.js:1109:8\nrefreshPanel/<@resource://devtools/client/inspector/rules/rules.js:1043:19\npromise callback*refreshPanel@resource://devtools/client/inspector/rules/rules.js:1042:34\nrefresh@resource://devtools/client/inspector/rules/rules.js:2114:17\n_emit@resource://devtools/shared/event-emitter.js:242:32\nemit@resource://devtools/shared/event-emitter.js:186:18\nemit@resource://devtools/shared/event-emitter.js:330:18\nonMutations@resource://devtools/client/inspector/shared/style-change-tracker.js:85:14\n_emit@resource://devtools/shared/event-emitter.js:242:32\nemit@resource://devtools/shared/event-emitter.js:186:18\nemit@resource://devtools/shared/event-emitter.js:330:18\ngetMutations@resource://devtools/client/fronts/walker.js:312:10\nasync*onMutations@resource://devtools/client/fronts/walker.js:321:10\nonPacket@resource://devtools/shared/protocol/Front.js:325:36\nonPacket@resource://devtools/client/devtools-client.js:482:13\nsend/<@resource://devtools/shared/transport/local-transport.js:68:25\nexports.makeInfallible/<@resource://devtools/shared/ThreadSafeDevToolsUtils.js:103:22\nDevToolsUtils.executeSoon*exports.executeSoon@resource://devtools/shared/DevToolsUtils.js:54:21\nsend@resource://devtools/shared/transport/local-transport.js:56:21\nsend@resource://devtools/server/devtools-server-connection.js:99:20\n_onPacketReceived@resource://devtools/shared/transport/js-window-actor-transport.js:48:18\nemit@resource://gre/modules/EventEmitter.jsm:160:20\nreceiveMessage@resource://devtools/server/connectors/js-window-actor/DevToolsFrameParent.jsm:213:21\nJSActor query*sendPacket@resource://devtools/server/connectors/js-window-actor/DevToolsFrameChild.jsm:402:10\nsend@resource://devtools/shared/transport/js-window-actor-transport.js:53:25\nsend@resource://devtools/server/devtools-server-connection.js:99:20\n_sendEvent@resource://devtools/shared/protocol/Actor.js:72:15\ninitialize/<@resource://devtools/shared/protocol/Actor.js:46:16\n_emit@resource://devtools/shared/event-emitter.js:242:32\nemit@resource://devtools/shared/event-emitter.js:186:18\nemit@resource://devtools/shared/event-emitter.js:330:18\n_emitNewMutations@resource://devtools/server/actors/inspector/walker.js:2329:10\nlater@resource://devtools/shared/throttle.js:33:19\nnotify@resource://gre/modules/Timer.jsm:62:17\n", "resource://devtools/shared/protocol/Front.js", 106))
[task 2022-04-16T11:51:33.997Z] 11:51:33 INFO - Removing tab.
[task 2022-04-16T11:51:33.999Z] 11:51:33 INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2022-04-16T11:51:34.001Z] 11:51:34 INFO - Got event: 'TabClose' on [object XULElement].
[task 2022-04-16T11:51:34.004Z] 11:51:34 INFO - Tab removed and finished closing
[task 2022-04-16T11:51:34.024Z] 11:51:34 INFO - GECKO(10102) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-04-16T11:51:34.029Z] 11:51:34 INFO - GECKO(10102) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-04-16T11:51:34.029Z] 11:51:34 INFO - GECKO(10102) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-04-16T11:51:34.032Z] 11:51:34 INFO - GECKO(10102) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-04-16T11:51:34.040Z] 11:51:34 INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-04-16T11:51:34.041Z] 11:51:34 INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-04-16T11:51:34.043Z] 11:51:34 INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-04-16T11:51:34.045Z] 11:51:34 INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-04-16T11:51:34.047Z] 11:51:34 INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_custom.js | The main process DevToolsServer has no pending connection when the test ends -
[task 2022-04-16T11:51:34.089Z] 11:51:34 INFO - GECKO(10102) | MEMORY STAT | vsize 12281MB | residentFast 969MB | heapAllocated 568MB
[task 2022-04-16T11:51:34.090Z] 11:51:34 INFO - TEST-OK | devtools/client/inspector/rules/test/browser_rules_custom.js | took 2609ms
[task 2022-04-16T11:51:34.135Z] 11:51:34 INFO - checking window state
[task 2022-04-16T11:51:34.155Z] 11:51:34 INFO - TEST-START | devtools/client/inspector/rules/test/browser_rules_cycle-angle.js
Comment 15•3 years ago
|
||
Hi Julian! Can you please take another look at this?
Thank you!
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 17•3 years ago
|
||
We usually need three mutations to reach the final state of addProperty and usually the 2nd and 3rd come in the same batch.
Meaning that simply waiting for receivedMutations >= 2 works in most cases.
But the intermittent screenshots show that the markup view was not updated yet with the correct content meaning it either didn't receive or processed the last
mutation.
Let's try to wait for the proper mutation instead of using an arbitrary number. Hopefully this fixes it.
| Assignee | ||
Comment 18•3 years ago
|
||
Baseline at https://treeherder.mozilla.org/jobs?repo=try&revision=8457cc4e57e84b6884d37c01f611ca1231124410: 3 failures for this test on 50 runs.
Try with fix at https://treeherder.mozilla.org/jobs?repo=try&revision=178913c9b1b0e0b1e43e7acdaf142d5f8d9790ea (no failure for this test so far, but only 20 runs, more retriggers on the way)
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 19•3 years ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #18)
Baseline at https://treeherder.mozilla.org/jobs?repo=try&revision=8457cc4e57e84b6884d37c01f611ca1231124410: 3 failures for this test on 50 runs.
Try with fix at https://treeherder.mozilla.org/jobs?repo=try&revision=178913c9b1b0e0b1e43e7acdaf142d5f8d9790ea (no failure for this test so far, but only 20 runs, more retriggers on the way)
No failure on 50 runs, hopefully that means the fix is working here.
Comment 20•3 years ago
|
||
Comment 21•3 years ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
Description
•