Open Bug 1348544 Opened 7 years ago Updated 2 years ago

Intermittent browser_pageinfo_image_info.js | uncaught exception - TypeError: testImg is null at browser_pageinfo_image_info.js:19:11

Categories

(Firefox :: Page Info Window, defect)

defect

Tracking

()

People

(Reporter: aryx, Unassigned)

References

Details

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

https://treeherder.mozilla.org/logviewer.html#?job_id=84713243&repo=autoland

12:29:32     INFO - TEST-START | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js
12:29:33     INFO - TEST-INFO | started process screencapture
12:29:33     INFO - TEST-INFO | screencapture: exit 0
12:29:33     INFO - Buffered messages logged at 12:29:33
12:29:33     INFO - Console message: [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,<style%20type='text/css'>%23test-image,%23not-test-image%20{background-image:%20url('about:logo?c');}</style><img%20src='about:logo?b'%20height=300%20width=350%20alt=2%20id='not-test-image'><img%20src='about:logo?b'%20height=300%20width=350%20alt=2><img%20src='about:logo?a'%20height=200%20width=250><img%20src='about:logo?b'%20height=200%20width=250%20alt=1><img%20src='about:logo?b'%20height=100%20width=150%20alt=2%20id='test-image'>" line: 0}]
12:29:33     INFO - Console message: OpenGL compositor Initialized Succesfully.
12:29:33     INFO - Version: 2.1 INTEL-10.6.33
12:29:33     INFO - Vendor: Intel Inc.
12:29:33     INFO - Renderer: Intel Iris OpenGL Engine
12:29:33     INFO - FBO Texture Target: TEXTURE_2D
12:29:33     INFO - Buffered messages finished
12:29:33     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | uncaught exception - TypeError: testImg is null at test/</</</<@chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js:19:11
12:29:33     INFO - run@chrome://mochikit/content/browser-test.js:937:9
12:29:33     INFO - 
12:29:33     INFO - Stack trace:
12:29:33     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:1648
12:29:33     INFO - GECKO(1734) | JavaScript error: chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js, line 19: TypeError: testImg is null
12:29:33     INFO - Console message: [JavaScript Error: "TypeError: testImg is null" {file: "chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js" line: 19}]
12:29:33     INFO - test/</</</<@chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js:19:11
12:29:33     INFO - run@chrome://mochikit/content/browser-test.js:937:9
12:29:33     INFO - 
12:29:33     INFO - GECKO(1734) | 2017-03-17 12:29:33.791 plugin-container[1742:8137] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x4347, name = 'com.apple.tsm.portname'
12:29:33     INFO - GECKO(1734) | See /usr/include/servers/bootstrap_defs.h for the error codes.
12:29:33     INFO - GECKO(1734) | 2017-03-17 12:29:33.791 plugin-container[1742:8137] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8c23, name = 'com.apple.CFPasteboardClient'
12:29:33     INFO - GECKO(1734) | See /usr/include/servers/bootstrap_defs.h for the error codes.
12:29:33     INFO - GECKO(1734) | 2017-03-17 12:29:33.791 plugin-container[1742:8137] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
12:30:17     INFO - Not taking screenshot here: see the one that was previously logged
12:30:17     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | Test timed out - 
12:30:17     INFO - GECKO(1734) | MEMORY STAT | vsize 4391MB | residentFast 373MB | heapAllocated 88MB
12:30:17     INFO - TEST-OK | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | took 45074ms
12:30:17     INFO - Not taking screenshot here: see the one that was previously logged
12:30:17     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | Found a tab after previous test timed out: data:text/html,<style%20type='text/css'>%23test-image,%23not-test-image%20{background-image:%20url('about:logo?c');}</style><img%20src='about:logo?b'%20height=300%20width=350%20alt=2%20id='not-test-image'><img%20src='about:logo?b'%20height=300%20width=350%20alt=2><img%20src='about:logo?a'%20height=200%20width=250><img%20src='about:logo?b'%20height=200%20width=250%20alt=1><img%20src='about:logo?b'%20height=100%20width=150%20alt=2%20id='test-image'> -
This test was renamed and moved from browser/base/content/test/general/browser_bug517902.js in bug 1345981, but I don't see changes to the test itself, and I don't see recent bugs against browser_bug517902.js.
:florian, this bug has picked up in frequency- might be worth putting it in a queue to look at in the coming weeks.
Flags: needinfo?(florian)
Whiteboard: [stockwell needswork]
This failure is Mac only, but the test has already been disabled for linux in bug 1161699, for what looks like a similar reason. The patch Tim attached there looks like what I would try first.
Flags: needinfo?(florian)
See Also: → 1161699
that patch is for a different test- lets see if this continues this week and maybe next week we can look at doing similar things from that patch to browser/base/content/test/pageinfo/browser_pageinfo_image_info.js.
(In reply to Joel Maher ( :jmaher) from comment #7)
> that patch is for a different test

It's the old name of the same test (according to comment 2 at least).
while this is slightly reduced, I don't want to assume it is fixed, but there are plenty of other things to work on, will dig into this when the rate increases again.
Whiteboard: [stockwell needswork] → [stockwell unknown]
Summary: Intermittent browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | uncaught exception - TypeError: testImg is null at test/</</</<@chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js:19:11 → Intermittent browser_pageinfo_image_info.js | uncaught exception - TypeError: testImg is null at browser_pageinfo_image_info.js:19:11
this continues to be a consistent failure on osx specifically- will see if this increases more to make it a priority
while the failure rate has increased, it hasn't gone up this week compared to last week, still at 15-20 rate.  This appears to be osx debug primarily.

some data from a recent log:
07:44:51     INFO - TEST-START | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js
07:44:51     INFO - GECKO(1701) | Chrome file doesn't exist: /Users/cltbld/tasks/task_1504190583/build/tests/mochitest/browser/browser/base/content/test/pageinfo/head.js
07:44:51     INFO - GECKO(1701) | ++DOCSHELL 0x120011800 == 2 [pid = 1705] [id = {5d72c223-66a9-ad42-be96-36d78a5698b1}]
07:44:51     INFO - GECKO(1701) | ++DOMWINDOW == 4 (0x120012000) [pid = 1705] [serial = 4] [outer = 0x0]
07:44:51     INFO - GECKO(1701) | ++DOMWINDOW == 5 (0x120018000) [pid = 1705] [serial = 5] [outer = 0x120012000]
07:44:51     INFO - GECKO(1701) | ++DOMWINDOW == 6 (0x12001e800) [pid = 1705] [serial = 6] [outer = 0x120012000]
07:44:51     INFO - GECKO(1701) | ++DOCSHELL 0x11941e800 == 7 [pid = 1701] [id = {619153a7-68db-8742-a83b-7e3588a0731d}]
07:44:51     INFO - GECKO(1701) | ++DOMWINDOW == 13 (0x119681000) [pid = 1701] [serial = 13] [outer = 0x0]
07:44:51     INFO - GECKO(1701) | ++DOMWINDOW == 14 (0x119782000) [pid = 1701] [serial = 14] [outer = 0x119681000]
07:44:51     INFO - GECKO(1701) | ++DOMWINDOW == 7 (0x120027800) [pid = 1705] [serial = 7] [outer = 0x120012000]
07:44:51     INFO - GECKO(1701) | ++DOCSHELL 0x123297000 == 1 [pid = 1707] [id = {f665a20f-5955-0d4f-8579-e07c4894537f}]
07:44:51     INFO - GECKO(1701) | ++DOMWINDOW == 1 (0x123297800) [pid = 1707] [serial = 1] [outer = 0x0]
07:44:51     INFO - GECKO(1701) | ++DOMWINDOW == 2 (0x1232a3800) [pid = 1707] [serial = 2] [outer = 0x123297800]
07:44:52     INFO - TEST-INFO | started process screencapture
07:44:52     INFO - TEST-INFO | screencapture: exit 0
07:44:52     INFO - Buffered messages logged at 07:44:51
07:44:52     INFO - Console message: [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,<style%20type='text/css'>%23test-image,%23not-test-image%20{background-image:%20url('about:logo?c');}</style><img%20src='about:logo?b'%20height=300%20width=350%20alt=2%20id='not-test-image'><img%20src='about:logo?b'%20height=300%20width=350%20alt=2><img%20src='about:logo?a'%20height=200%20width=250><img%20src='about:logo?b'%20height=200%20width=250%20alt=1><img%20src='about:logo?b'%20height=100%20width=150%20alt=2%20id='test-image'>" line: 0}]
07:44:52     INFO - Buffered messages logged at 07:44:52
07:44:52     INFO - Console message: OpenGL compositor Initialized Succesfully.
07:44:52     INFO - Version: 2.1 INTEL-10.6.33
07:44:52     INFO - Vendor: Intel Inc.
07:44:52     INFO - Renderer: Intel Iris OpenGL Engine
07:44:52     INFO - FBO Texture Target: TEXTURE_2D
07:44:52     INFO - Buffered messages finished
07:44:52     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | uncaught exception - TypeError: testImg is null at test/</</</<@chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js:19:11
07:44:52     INFO - EventListener.handleEvent*EventTargetInterposition.methods.addEventListener@resource://gre/modules/RemoteAddonsParent.jsm:668:5
07:44:52     INFO - interposeProperty/desc.value@jar:file:///Users/cltbld/tasks/task_1504190583/build/application/NightlyDebug.app/Contents/Resources/omni.ja!/components/multiprocessShims.js:157:52
07:44:52     INFO - test/</</<@chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js:17:9
07:44:52     INFO - loadPageInfo/onmessage/<@chrome://browser/content/pageinfo/pageInfo.js:393:43
07:44:52     INFO - onmessage@chrome://browser/content/pageinfo/pageInfo.js:393:7
07:44:52     INFO - 
07:44:52     INFO - Stack trace:
07:44:52     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:1652
07:44:52     INFO - GECKO(1701) | JavaScript error: chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js, line 19: TypeError: testImg is null
07:44:52     INFO - Console message: [JavaScript Error: "TypeError: testImg is null" {file: "chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js" line: 19}]
07:44:52     INFO - test/</</</<@chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js:19:11
07:44:52     INFO - EventListener.handleEvent*EventTargetInterposition.methods.addEventListener@resource://gre/modules/RemoteAddonsParent.jsm:668:5
07:44:52     INFO - interposeProperty/desc.value@jar:file:///Users/cltbld/tasks/task_1504190583/build/application/NightlyDebug.app/Contents/Resources/omni.ja!/components/multiprocessShims.js:157:52
07:44:52     INFO - test/</</<@chrome://mochitests/content/browser/browser/base/content/test/pageinfo/browser_pageinfo_image_info.js:17:9
07:44:52     INFO - loadPageInfo/onmessage/<@chrome://browser/content/pageinfo/pageInfo.js:393:43
07:44:52     INFO - onmessage@chrome://browser/content/pageinfo/pageInfo.js:393:7
07:44:52     INFO - 
07:44:52     INFO - Console message: [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "resource://gre/modules/FileUtils.jsm" line: 174}]


not sure why this times out, will need to take a closer look if this becomes more frequent.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.