Closed Bug 739354 Opened 13 years ago Closed 12 years ago

Intermittent TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | an unexpected uncaught JS exception, or Not the right error message - got [ Places Maintenance ], followed by others (sometimes hundreds of failures)

Categories

(Core :: DOM: HTML Parser, defect)

14 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: mbrubeck, Assigned: zwol)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Same failure mode as bug 678092 and bug 650244. https://tbpl.mozilla.org/php/getParsedLog.php?id=10378444&tree=Firefox Rev4 MacOSX Snow Leopard 10.6 mozilla-central debug test mochitests-5/5 on 2012-03-26 12:26:29 PDT for push a30fd69f1e0c 177 INFO TEST-START | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html ++DOMWINDOW == 57 (0x127961178) [serial = 65] [outer = 0x1253a88d0] ++DOCSHELL 0x127a4d750 == 19 [id = 21] ++DOMWINDOW == 58 (0x126ff94d8) [serial = 66] [outer = 0x0] WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 59 (0x1074aceb8) [serial = 67] [outer = 0x126ff9460] WARNING: 1 sort operation has occurred for the SQL statement '0x107498660'. See https://developer.mozilla.org/En/Storage/Warnings details.: file /builds/slave/m-cen-osx64-dbg/build/storage/src/mozStoragePrivateHelpers.cpp, line 144 WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 60 (0x1280431a8) [serial = 68] [outer = 0x126ff9460] WARNING: 1 sort operation has occurred for the SQL statement '0x118d68130'. See https://developer.mozilla.org/En/Storage/Warnings details.: file /builds/slave/m-cen-osx64-dbg/build/storage/src/mozStoragePrivateHelpers.cpp, line 144 WARNING: 1 sort operation has occurred for the SQL statement '0x118d67f60'. See https://developer.mozilla.org/En/Storage/Warnings details.: file /builds/slave/m-cen-osx64-dbg/build/storage/src/mozStoragePrivateHelpers.cpp, line 144 WARNING: An error occured during async execution: 21 not an error: file /builds/slave/m-cen-osx64-dbg/build/storage/src/VacuumManager.cpp, line 110 178 INFO TEST-PASS | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_not_declared.html" line: 0}] should equal [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_not_declared.html" line: 0}] 179 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [ Places Maintenance ] > Integrity check + The database is sane > Coherence check + The database is coherent, expected [JavaScript Warning: "The character encoding declaration of the framed HTML document was not found when prescanning the first 1024 bytes of the file. When viewed without the document framing it, the page will reload automatically. The encoding declaration needs to be moved to be within the first 1024 bytes of the file." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_late_meta.html" line: 1028}] WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 61 (0x127cafb98) [serial = 69] [outer = 0x126ff9460] 180 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [JavaScript Warning: "The character encoding declaration of the framed HTML document was not found when prescanning the first 1024 bytes of the file. When viewed without the document framing it, the page will reload automatically. The encoding declaration needs to be moved to be within the first 1024 bytes of the file." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_late_meta.html" line: 1028}], expected [JavaScript Warning: "The page was reloaded, because the character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. The encoding declaration needs to be moved to be within the first 1024 bytes of the file." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_restart.html" line: 1028}] WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 62 (0x127a89ef8) [serial = 70] [outer = 0x126ff9460] 181 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [JavaScript Warning: "The page was reloaded, because the character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. The encoding declaration needs to be moved to be within the first 1024 bytes of the file." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_restart.html" line: 1028}], expected [JavaScript Error: "An unsupported character encoding was declared for the HTML document using a meta tag. The declaration was ignored." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_unsupported.html" line: 1}] WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 63 (0x126feb438) [serial = 71] [outer = 0x126ff9460] WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 64 (0x126fecdf8) [serial = 72] [outer = 0x126ff9460] 182 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [JavaScript Error: "An unsupported character encoding was declared for the HTML document using a meta tag. The declaration was ignored." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_unsupported.html" line: 1}], expected [JavaScript Error: "An unsupported character encoding was declared on the transfer protocol level. The declaration was ignored." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_http_unsupported.html" line: 0}] WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 65 (0x118d67548) [serial = 73] [outer = 0x126ff9460] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004003: file /builds/slave/m-cen-osx64-dbg/build/intl/uconv/src/nsCharsetConverterManager.cpp, line 313 WARNING: NS_ENSURE_SUCCESS(rv, ((nsresult) (((PRUint32)(1) <<31) | ((PRUint32)(11+0x45)<<16) | ((PRUint32)(0x01))))) failed with result 0x80040154: file /builds/slave/m-cen-osx64-dbg/build/intl/uconv/src/nsCharsetConverterManager.cpp, line 225 183 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [JavaScript Error: "An unsupported character encoding was declared on the transfer protocol level. The declaration was ignored." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_http_unsupported.html" line: 0}], expected [JavaScript Error: "Detected UTF-16-encoded Basic Latin-only text without a byte order mark and without a transfer protocol-level declaration. Encoding this content in UTF-16 is inefficient and the character encoding should have been declared in any case." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_bomless_utf16.html" line: 0}] WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 66 (0x118d66578) [serial = 74] [outer = 0x126ff9460] 184 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [JavaScript Error: "Detected UTF-16-encoded Basic Latin-only text without a byte order mark and without a transfer protocol-level declaration. Encoding this content in UTF-16 is inefficient and the character encoding should have been declared in any case." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_bomless_utf16.html" line: 0}], expected [JavaScript Error: "A meta tag was used to declare the character encoding as UTF-16. This was interpreted as an UTF-8 declaration instead." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_utf16.html" line: 1}] WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 67 (0x1074af3f8) [serial = 75] [outer = 0x126ff9460] 185 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [JavaScript Error: "A meta tag was used to declare the character encoding as UTF-16. This was interpreted as an UTF-8 declaration instead." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_utf16.html" line: 1}], expected [JavaScript Error: "A meta tag was used to declare a character encoding the does not encode the Basic Latin range roughly like US-ASCII. The declaration was ignored." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_non_superset.html" line: 1}] WARNING: Subdocument container has no frame: file /builds/slave/m-cen-osx64-dbg/build/layout/base/nsDocumentViewer.cpp, line 2442 ++DOMWINDOW == 68 (0x1074b9fa8) [serial = 76] [outer = 0x126ff9460] 186 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [JavaScript Error: "A meta tag was used to declare a character encoding the does not encode the Basic Latin range roughly like US-ASCII. The declaration was ignored." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_non_superset.html" line: 1}], expected undefined 187 INFO TEST-PASS | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | The error supply was not exhausted - 0 should equal 0 188 INFO TEST-END | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | finished in 680ms
This has been very very frequent on WinXP debug for the last several inbound pushes... https://tbpl.mozilla.org/php/getParsedLog.php?id=10380180&tree=Mozilla-Inbound Rev3 WINNT 5.1 mozilla-inbound debug test mochitests-5/5 on 2012-03-26 13:25:43 PDT for push 26df3b9b439f https://tbpl.mozilla.org/php/getParsedLog.php?id=10382522&tree=Mozilla-Inbound Rev3 WINNT 5.1 mozilla-inbound debug test mochitests-5/5 on 2012-03-26 14:50:43 PDT for push 79f4d3ddee57 These two both started like this: 178 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | an unexpected uncaught JS exception reported through window.onerror - runNextTest is not defined at http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/test_bug672453.html:1 179 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [ Places Maintenance ] 180 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Test timed out. 196 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_compatmode.html | Not the right error message - got [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "data:text/html,<!DOCTYPE><html><body%20onload="parent.test(document.compatMode,0)"></body>" line: 0}], expected [JavaScript Warning: "The character encoding declaration of the framed HTML document was not found when prescanning the first 1024 bytes of the file. When viewed without the document framing it, the page will reload automatically. The encoding declaration needs to be moved to be within the first 1024 bytes of the file." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_late_meta.html" line: 1028}] 198 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_compatmode.html | Not the right error message - got [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "data:text/html,<!DOCTYPEz><html><body%20onload="parent.test(document.compatMode,2)"></body>" line: 0}], expected [JavaScript Warning: "The page was reloaded, because the character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. The encoding declaration needs to be moved to be within the first 1024 bytes of the file." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_restart.html" line: 1028}] 200 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_compatmode.html | Not the right error message - got [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "data:text/html,<!%20DOCTYPE><html><body%20onload="parent.test(document.compatMode,4)"></body>" line: 0}], expected [JavaScript Error: "An unsupported character encoding was declared for the HTML document using a meta tag. The declaration was ignored." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_unsupported.html" line: 1}] ...followed by hundreds more errors and a leak. And then there was this one, which was the same except *without* the "Places Maintenance" failure at the start: https://tbpl.mozilla.org/php/getParsedLog.php?id=10380749&tree=Mozilla-Inbound Rev3 WINNT 5.1 mozilla-inbound debug test mochitests-5/5 on 2012-03-26 13:48:09 PDT for push 940563684bef 178 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | an unexpected uncaught JS exception reported through window.onerror - runNextTest is not defined at http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/test_bug672453.html:1 179 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Test timed out. 195 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_compatmode.html | Not the right error message - got [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "data:text/html,<!DOCTYPE><html><body%20onload="parent.test(document.compatMode,0)"></body>" line: 0}], expected [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_not_declared.html" line: 0}] 197 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_compatmode.html | Not the right error message - got [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "data:text/html,<!DOCTYPEz><html><body%20onload="parent.test(document.compatMode,2)"></body>" line: 0}], expected [JavaScript Warning: "The character encoding declaration of the framed HTML document was not found when prescanning the first 1024 bytes of the file. When viewed without the document framing it, the page will reload automatically. The encoding declaration needs to be moved to be within the first 1024 bytes of the file." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_late_meta.html" line: 1028}] 199 ERROR TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_compatmode.html | Not the right error message - got [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "data:text/html,<!%20DOCTYPE><html><body%20onload="parent.test(document.compatMode,4)"></body>" line: 0}], expected [JavaScript Warning: "The page was reloaded, because the character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. The encoding declaration needs to be moved to be within the first 1024 bytes of the file." {file: "http://mochi.test:8888/tests/parser/htmlparser/tests/mochitest/file_bug672453_meta_restart.html" line: 1028}] ...followed by hundreds more errors and a leak.
Summary: Intermittent TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | Not the right error message - got [ Places Maintenance ], followed by others → Intermittent TEST-UNEXPECTED-FAIL | /tests/parser/htmlparser/tests/mochitest/test_bug672453.html | an unexpected uncaught JS exception, or Not the right error message - got [ Places Maintenance ], followed by others (sometimes hundreds of failures)
Disabled the test for now: https://hg.mozilla.org/integration/mozilla-inbound/rev/6b3d2762c0fb Please leave open after inbound merge.
Whiteboard: [orange] → [orange][test disabled][leave open]
Blocks: 672453
(In reply to Matt Brubeck (:mbrubeck) from comment #2) > Disabled the test for now: > https://hg.mozilla.org/integration/mozilla-inbound/rev/6b3d2762c0fb > > Please leave open after inbound merge. https://hg.mozilla.org/mozilla-central/rev/6b3d2762c0fb
mak, is this sufficient for ignoring stuff that Places might dump to the Error Console at unpredictable times?
Assignee: nobody → hsivonen
Status: NEW → ASSIGNED
Attachment #609700 - Flags: review?(mak77)
hm, I was thinking we could disable the console fallback completely, I'd expect most users won't find maintenance output useful unless they run it manually, and if they do they'll likely use my add-on (or another one) for that. Before that the console was the only way to get that output. If we workaround this in this test, I don't see why we could not want to do the same in others, and will soon end up being a mess made of workarounds and filters. We could hide it under a places.database.dumpMaintenanceToConsole bool pref here (http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/PlacesDBUtils.jsm#104) and test the pref works here (http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/tests/unit/test_preventive_maintenance_console.js).
Comment on attachment 609700 [details] [diff] [review] Ignore Places Maintenance, move the iframe after the script Review of attachment 609700 [details] [diff] [review]: ----------------------------------------------------------------- yeah, I'd prefer if we'd fix this once and for all tests, as I said.
Attachment #609700 - Flags: review?(mak77)
Depends on: 751813
Bug 751813 has just landed, but we can't turn these tests back on quite yet, because the code they're supposed to test bitrotted meanwhile. I filed bug 791003 for that problem.
Depends on: 739534
Depends on: 791003
No longer depends on: 739534
I can type bug numbers!
I'm also making this depend on bug 663291 because the test in question is a console-diagnostics test and I'm revamping all of those there. I propose to turn the test back on as part of the patch for that bug, and close this bug when that lands.
Depends on: 663291
https://hg.mozilla.org/integration/mozilla-inbound/rev/40f38a8aa660 (for bug 663291). This should be closeable once that hits -central.
Assignee: hsivonen → zackw
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
OS: Mac OS X → All
Hardware: x86_64 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Whiteboard: [orange][test disabled][leave open] → [orange]
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: