Closed Bug 1721743 Opened 3 years ago Closed 2 years ago

Intermittent devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js | Uncaught exception - at <path>/browser_rules_preview-tooltips-sizes.js:38 - TypeError: can't acce

Categories

(DevTools :: Inspector: Rules, defect, P5)

defect

Tracking

(firefox99 fixed, firefox100 fixed)

RESOLVED FIXED
100 Branch
Tracking Status
firefox99 --- fixed
firefox100 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: jdescottes)

Details

(Keywords: intermittent-failure, Whiteboard: [stockwell unknown])

Attachments

(1 file)

Filed by: abutkovits [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=345951683&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/FH4-bRcIRGarI1GxEkDJkg/runs/0/artifacts/public/logs/live_backing.log


[task 2021-07-21T22:53:10.431Z] 22:53:10     INFO - TEST-START | devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js
[task 2021-07-21T22:53:11.040Z] 22:53:11     INFO - GECKO(4476) | must wait for focus
[task 2021-07-21T22:53:11.053Z] 22:53:11     INFO - GECKO(4476) | console.log: "[DISPATCH] action type:" "CLEAR_FLEXBOX"
[task 2021-07-21T22:53:11.056Z] 22:53:11     INFO - GECKO(4476) | console.log: "[DISPATCH] action type:" "UPDATE_GRIDS"
[task 2021-07-21T22:53:11.071Z] 22:53:11     INFO - GECKO(4476) | console.log: "[DISPATCH] action type:" "UPDATE_OFFSET_PARENT"
[task 2021-07-21T22:53:11.074Z] 22:53:11     INFO - GECKO(4476) | console.log: "[DISPATCH] action type:" "UPDATE_LAYOUT"
[task 2021-07-21T22:53:11.117Z] 22:53:11     INFO - TEST-INFO | started process screentopng
[task 2021-07-21T22:53:11.468Z] 22:53:11     INFO - TEST-INFO | screentopng: exit 0
[task 2021-07-21T22:53:11.469Z] 22:53:11     INFO - Buffered messages logged at 22:53:10
[task 2021-07-21T22:53:11.470Z] 22:53:11     INFO - Entering test bound 
[task 2021-07-21T22:53:11.471Z] 22:53:11     INFO - Adding a new tab with URL: data:text/html;charset=utf-8,%0A%20%20%20%20%20%20%3Cstyle%3E%0A%20%20%20%20%20%20%20%20html%20%7B%0A%20%20%20%20%20%20%20%20%20%20%2F*%20Using%20a%20long%20variable%20name%20to%20ensure%20preview%20tooltip%20for%20variable%20will%20be%20*%2F%0A%20%20%20%20%20%20%20%20%20%20%2F*%20wider%20than%20the%20preview%20tooltip%20for%20the%20test%2032x32%20image.%20*%2F%0A%20%20%20%20%20%20%20%20%20%20--test-var-wider-than-image%3A%20red%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20div%20%7B%0A%20%20%20%20%20%20%20%20%20%20color%3A%20var(--test-var-wider-than-image)%3B%0A%20%20%20%20%20%20%20%20%20%20background%3A%20url(data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAUElEQVRYR%2B3UsQkAQAhD0TjJ7T%2BWk3gbxMIizbcVITwwJWlkZtptpXp%2Bv94TAAEE4gLTvgfOf770RBEAAQTiAvEiIgACCMQF4kVEAAQQSAt8xsyeAW6R8eIAAAAASUVORK5CYII%3D)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%3C%2Fstyle%3E%0A%20%20%20%20%20%20%3Cdiv%20id%3D%22target%22%3Einspect%20me%3C%2Fdiv%3E%0A%20%20%20%20
[task 2021-07-21T22:53:11.472Z] 22:53:11     INFO - Tab added and finished loading
[task 2021-07-21T22:53:11.473Z] 22:53:11     INFO - Opening the inspector
[task 2021-07-21T22:53:11.474Z] 22:53:11     INFO - Opening the toolbox
[task 2021-07-21T22:53:11.475Z] 22:53:11     INFO - Buffered messages logged at 22:53:11
[task 2021-07-21T22:53:11.475Z] 22:53:11     INFO - Toolbox opened and focused
[task 2021-07-21T22:53:11.476Z] 22:53:11     INFO - Selecting the node for '#target'
[task 2021-07-21T22:53:11.477Z] 22:53:11     INFO - Buffered messages finished
[task 2021-07-21T22:53:11.478Z] 22:53:11     INFO - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js:38 - TypeError: can't access property "valueSpan", getRuleViewProperty(...) is undefined
[task 2021-07-21T22:53:11.479Z] 22:53:11     INFO - Stack trace:
[task 2021-07-21T22:53:11.479Z] 22:53:11     INFO - @chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js:38:48
[task 2021-07-21T22:53:11.480Z] 22:53:11     INFO - Async*Tester_execTest/<@chrome://mochikit/content/browser-test.js:1081:34
[task 2021-07-21T22:53:11.480Z] 22:53:11     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1121:11
[task 2021-07-21T22:53:11.481Z] 22:53:11     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:938:14
[task 2021-07-21T22:53:11.482Z] 22:53:11     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1041:13
[task 2021-07-21T22:53:11.483Z] 22:53:11     INFO - Leaving test bound

Update:
There have been 27 failures within the last 7 days:
• 26 failures on Linux 18.04 x64 WebRender Shippable opt
• 1 failures on OS X 10.15 WebRender Shippable opt
Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=370750457&repo=autoland&lineNumber=5828

[task 2022-03-12T01:26:43.521Z] 01:26:43     INFO - TEST-START | devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js
[task 2022-03-12T01:26:44.212Z] 01:26:44     INFO - GECKO(4213) | console.log: "[DISPATCH] action type:" "CLEAR_FLEXBOX"
[task 2022-03-12T01:26:44.222Z] 01:26:44     INFO - GECKO(4213) | console.log: "[DISPATCH] action type:" "UPDATE_GRIDS"
[task 2022-03-12T01:26:44.250Z] 01:26:44     INFO - GECKO(4213) | console.log: "[DISPATCH] action type:" "UPDATE_OFFSET_PARENT"
[task 2022-03-12T01:26:44.253Z] 01:26:44     INFO - GECKO(4213) | console.log: "[DISPATCH] action type:" "UPDATE_LAYOUT"
[task 2022-03-12T01:26:44.261Z] 01:26:44     INFO - TEST-INFO | started process screentopng
[task 2022-03-12T01:26:44.544Z] 01:26:44     INFO - TEST-INFO | screentopng: exit 0
[task 2022-03-12T01:26:44.548Z] 01:26:44     INFO - Buffered messages logged at 01:26:43
[task 2022-03-12T01:26:44.549Z] 01:26:44     INFO - Entering test bound 
[task 2022-03-12T01:26:44.550Z] 01:26:44     INFO - Adding a new tab with URL: data:text/html;charset=utf-8,%0A%20%20%20%20%20%20%3Cstyle%3E%0A%20%20%20%20%20%20%20%20html%20%7B%0A%20%20%20%20%20%20%20%20%20%20%2F*%20Using%20a%20long%20variable%20name%20to%20ensure%20preview%20tooltip%20for%20variable%20will%20be%20*%2F%0A%20%20%20%20%20%20%20%20%20%20%2F*%20wider%20than%20the%20preview%20tooltip%20for%20the%20test%2032x32%20image.%20*%2F%0A%20%20%20%20%20%20%20%20%20%20--test-var-wider-than-image%3A%20red%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20div%20%7B%0A%20%20%20%20%20%20%20%20%20%20color%3A%20var(--test-var-wider-than-image)%3B%0A%20%20%20%20%20%20%20%20%20%20background%3A%20url(data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAUElEQVRYR%2B3UsQkAQAhD0TjJ7T%2BWk3gbxMIizbcVITwwJWlkZtptpXp%2Bv94TAAEE4gLTvgfOf770RBEAAQTiAvEiIgACCMQF4kVEAAQQSAt8xsyeAW6R8eIAAAAASUVORK5CYII%3D)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%3C%2Fstyle%3E%0A%20%20%20%20%20%20%3Cdiv%20id%3D%22target%22%3Einspect%20me%3C%2Fdiv%3E%0A%20%20%20%20
[task 2022-03-12T01:26:44.551Z] 01:26:44     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "data:text/html;charset=utf-8,%0A%20%20%20%20%20%20%3Cstyle%3E%0A%20%20%20%20%20%20%20%20html%20%7B%0A%20%20%20%20%20%20%20%20%20%20%2F*%20Using%20a%20long%20variable%20name%20to%20ensure%20preview%20tooltip%20for%20variable%20will%20be%20*%2F%0A%20%20%20%20%20%20%20%20%20%20%2F*%20wider%20than%20the%20preview%20tooltip%20for%20the%20test%2032x32%20image.%20*%2F%0A%20%20%20%20%20%20%20%20%20%20--test-var-wider-than-image%3A%20red%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20div%20%7B%0A%20%2" line: 0}]
[task 2022-03-12T01:26:44.552Z] 01:26:44     INFO - Tab added and finished loading
[task 2022-03-12T01:26:44.553Z] 01:26:44     INFO - Opening the inspector
[task 2022-03-12T01:26:44.555Z] 01:26:44     INFO - Opening the toolbox
[task 2022-03-12T01:26:44.556Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.558Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.559Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 62}]
[task 2022-03-12T01:26:44.560Z] 01:26:44     INFO - Buffered messages logged at 01:26:44
[task 2022-03-12T01:26:44.562Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.563Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.565Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 62}]
[task 2022-03-12T01:26:44.566Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.567Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.569Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 62}]
[task 2022-03-12T01:26:44.570Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.572Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.573Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 62}]
[task 2022-03-12T01:26:44.575Z] 01:26:44     INFO - Toolbox opened and focused
[task 2022-03-12T01:26:44.576Z] 01:26:44     INFO - Selecting the node for '#target'
[task 2022-03-12T01:26:44.577Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.579Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-12T01:26:44.580Z] 01:26:44     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 62}]
[task 2022-03-12T01:26:44.582Z] 01:26:44     INFO - Buffered messages finished
[task 2022-03-12T01:26:44.584Z] 01:26:44     INFO - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js | Uncaught exception in test - at chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js:38 - TypeError: can't access property "valueSpan", getRuleViewProperty(...) is undefined
[task 2022-03-12T01:26:44.585Z] 01:26:44     INFO - Stack trace:
[task 2022-03-12T01:26:44.585Z] 01:26:44     INFO - @chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js:38:48
[task 2022-03-12T01:26:44.586Z] 01:26:44     INFO - Async*handleTask@chrome://mochikit/content/browser-test.js:989:26
[task 2022-03-12T01:26:44.587Z] 01:26:44     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1061:18
[task 2022-03-12T01:26:44.588Z] 01:26:44     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1189:14
[task 2022-03-12T01:26:44.589Z] 01:26:44     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:978:14
[task 2022-03-12T01:26:44.590Z] 01:26:44     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1041:13
[task 2022-03-12T01:26:44.591Z] 01:26:44     INFO - Leaving test bound 
[task 2022-03-12T01:26:44.972Z] 01:26:44     INFO - Removing tab.
[task 2022-03-12T01:26:44.973Z] 01:26:44     INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2022-03-12T01:26:44.983Z] 01:26:44     INFO - Got event: 'TabClose' on [object XULElement].
[task 2022-03-12T01:26:45.000Z] 01:26:45     INFO - Tab removed and finished closing
[task 2022-03-12T01:26:45.009Z] 01:26:45     INFO - GECKO(4213) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-03-12T01:26:45.010Z] 01:26:45     INFO - GECKO(4213) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-03-12T01:26:45.015Z] 01:26:45     INFO - GECKO(4213) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-03-12T01:26:45.020Z] 01:26:45     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-03-12T01:26:45.022Z] 01:26:45     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-03-12T01:26:45.023Z] 01:26:45     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-03-12T01:26:45.029Z] 01:26:45     INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js | The main process DevToolsServer has no pending connection when the test ends - 
[task 2022-03-12T01:26:45.036Z] 01:26:45     INFO - GECKO(4213) | MEMORY STAT | vsize 11896MB | residentFast 899MB | heapAllocated 499MB
[task 2022-03-12T01:26:45.037Z] 01:26:45     INFO - TEST-OK | devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js | took 1516ms
[task 2022-03-12T01:26:45.073Z] 01:26:45     INFO - checking window state
[task 2022-03-12T01:26:45.086Z] 01:26:45     INFO - TEST-START | devtools/client/inspector/rules/test/browser_rules_print_media_simulation.js
Whiteboard: [stockwell needswork:owner]

Hi Julian! Can you please take a look at this when you have the time? Maybe you could help us assign it to someone.
Thank you!

Flags: needinfo?(jdescottes)
Summary: Intermittent devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js:38 - TypeError: can't acce → Intermittent devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js | Uncaught exception - at <file>/browser_rules_preview-tooltips-sizes.js:38 - TypeError: can't acce
Summary: Intermittent devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js | Uncaught exception - at <file>/browser_rules_preview-tooltips-sizes.js:38 - TypeError: can't acce → Intermittent devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js | Uncaught exception - at <path>/browser_rules_preview-tooltips-sizes.js:38 - TypeError: can't acce

So far I can't reproduce it locally and there is nothing odd about this test.
We are opening a tab on a simple data:text:html URI. Then we open the "rule view" using the usual helpers, which should normally wait until the toolbox and the panel are visible.

However, looking at the failure screenshots, it seems we get a toolbox in various states of initialization:

I am not sure how much we can trust those screenshots. If they are taken while the test is being shutdown, it's also possible that the toolbox has started destroying itself?

It fails frequently on try when running the whole suite (devtools/client/inspector/rules/test/browser_part2.ini) so at least I should be able to make progress. Taking the bug.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bb435bddcfa6
[devtools] Wait for ruleview property in browser_rules_preview-tooltips-sizes.js r=nchevobbe
Pushed by nfay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/74332376a592
[devtools] Fix lint failure r=fix CLOSED TREE
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
Flags: needinfo?(jdescottes)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: