Closed Bug 726249 Opened 14 years ago Closed 13 years ago

Intermittent browser_dbg_script-switching.js | (Possible uncaught JS exception) | Test timed out, | Found a tab after previous test timed out, | the destruction of lots more tests

Categories

(DevTools :: Debugger, defect, P1)

x86
macOS
defect

Tracking

(firefox17 unaffected, firefox18 affected, firefox19 fixed)

RESOLVED FIXED
Firefox 19
Tracking Status
firefox17 --- unaffected
firefox18 --- affected
firefox19 --- fixed

People

(Reporter: philor, Assigned: past)

References

Details

(Keywords: intermittent-failure)

https://tbpl.mozilla.org/php/getParsedLog.php?id=9256201&tree=Mozilla-Inbound Rev3 MacOSX Leopard 10.5.8 mozilla-inbound debug test mochitest-other on 2012-02-10 17:36:24 PST for push 6e352877ec67 TEST-START | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js ++DOCSHELL 0x300b6c00 == 10 ++DOMWINDOW == 62 (0x2dfe71a8) [serial = 6135] [outer = 0x0] ++DOMWINDOW == 63 (0x2f442ed8) [serial = 6136] [outer = 0x2dfe7160] WARNING: NS_ENSURE_TRUE(mMutable) failed: file /builds/slave/m-in-osx-dbg/build/netwerk/base/src/nsSimpleURI.cpp, line 292 WARNING: NS_ENSURE_TRUE(mMutable) failed: file /builds/slave/m-in-osx-dbg/build/netwerk/base/src/nsSimpleURI.cpp, line 292 DBG-SERVER: Got: { "from": "conn15.context4", "error": "noSuchActor" } ++DOMWINDOW == 64 (0x2df23288) [serial = 6137] [outer = 0x2dfe7160] DBG-SERVER: Got: { "to": "conn15.tab3", "type": "detach" } ++DOCSHELL 0x305dfe00 == 11 ++DOMWINDOW == 65 (0x2f3193d8) [serial = 6138] [outer = 0x0] ++DOMWINDOW == 66 (0x2f4c2dd8) [serial = 6139] [outer = 0x2f319390] ++DOCSHELL 0x307ca200 == 12 ++DOMWINDOW == 67 (0x2f60bf18) [serial = 6140] [outer = 0x0] DBG-SERVER: Got: { "error": "wrongState", "from": "conn15.tab3" } TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "XUL box for hbox element contained an inline #text child, forcing all its children to be wrapped in a block." {file: "chrome://browser/content/debugger.xul" line: 0}] ++DOMWINDOW == 68 (0x2f376518) [serial = 6141] [outer = 0x2f60bed0] TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "XUL box for span element contained an inline #text child, forcing all its children to be wrapped in a block." {file: "chrome://browser/content/debugger.xul" line: 0}] TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "XUL box for span element contained an inline #text child, forcing all its children to be wrapped in a block." {file: "chrome://browser/content/debugger.xul" line: 0}] TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "XUL box for span element contained an inline #text child, forcing all its children to be wrapped in a block." {file: "chrome://browser/content/debugger.xul" line: 0}] TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "XUL box for span element contained an inline #text child, forcing all its children to be wrapped in a block." {file: "chrome://browser/content/debugger.xul" line: 0}] DBG-SERVER: Cleaning up connection. ++DOCSHELL 0xbcc400 == 13 ++DOMWINDOW == 69 (0x2f301ff8) [serial = 6142] [outer = 0x0] ++DOMWINDOW == 70 (0x2d00a158) [serial = 6143] [outer = 0x2f301fb0] ++DOMWINDOW == 71 (0x2fe241b8) [serial = 6144] [outer = 0x2f301fb0] WARNING: NS_ENSURE_SUCCESS(result, result) failed with result 0x80004005: file /builds/slave/m-in-osx-dbg/build/editor/libeditor/base/nsEditor.cpp, line 3904 WARNING: NS_ENSURE_SUCCESS(res, res) failed with result 0x80004005: file /builds/slave/m-in-osx-dbg/build/editor/libeditor/html/nsHTMLEditRules.cpp, line 308 WARNING: NS_ENSURE_SUCCESS(result, result) failed with result 0x80004005: file /builds/slave/m-in-osx-dbg/build/editor/libeditor/base/nsEditor.cpp, line 3904 WARNING: NS_ENSURE_SUCCESS(res, res) failed with result 0x80004005: file /builds/slave/m-in-osx-dbg/build/editor/libeditor/html/nsHTMLEditRules.cpp, line 8354 JavaScript strict warning: chrome://browser/content/orion.js, line 7506: reference to undefined property h.capture JavaScript strict warning: chrome://browser/content/orion.js, line 6295: reference to undefined property this._leftDiv JavaScript strict warning: chrome://browser/content/orion.js, line 8536: reference to undefined property this._checkMaxLineIndex TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "reference to undefined property h.capture" {file: "chrome://browser/content/orion.js" line: 7506}] TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "reference to undefined property this._leftDiv" {file: "chrome://browser/content/orion.js" line: 6295}] TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "reference to undefined property this._checkMaxLineIndex" {file: "chrome://browser/content/orion.js" line: 8536}] DBG-SERVER: Got: { "from": "root", "applicationType": "browser", "traits": [] } DBG-SERVER: Got: { "to": "root", "type": "listTabs" } DBG-SERVER: Got: { "from": "root", "selected": 1, "tabs": [ { "actor": "conn16.tab2", "title": "", "url": "about:blank" }, { "actor": "conn16.tab3", "title": "Browser Debugger Script Switching Test", "url": "http://example.com/browser/browser/devtools/debugger/test/browser_dbg_script-switching.html" } ] } DBG-SERVER: Got: { "to": "conn16.tab3", "type": "attach" } DBG-SERVER: Got: { "type": "tabAttached", "threadActor": "conn16.context4", "from": "conn16.tab3" } DBG-SERVER: Got: { "to": "conn16.context4", "type": "attach" } DBG-SERVER: Got: { "from": "conn16.context4", "type": "paused", "actor": "conn16.pause5", "poppedFrames": [], "why": { "type": "attached" } } TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "XUL box for div element contained an inline #text child, forcing all its children to be wrapped in a block." {file: "chrome://browser/content/debugger.xul" line: 0}] DBG-SERVER: Got: { "to": "conn16.context4", "type": "resume" } DBG-SERVER: Got: { "from": "conn16.context4", "type": "resumed" } JavaScript strict warning: chrome://browser/content/orion.js, line 5104: reference to undefined property this._frameWidth TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Error: "gDebuggee.firstCall is not a function" {file: "chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js" line: 68}] TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "reference to undefined property this._frameWidth" {file: "chrome://browser/content/orion.js" line: 5104}] DBG-SERVER: Got: { "from": "conn16.context4", "type": "newScript", "url": "http://example.com/browser/browser/devtools/debugger/test/test-script-switching-01.js", "startLine": 1 } DBG-SERVER: Got: { "from": "conn16.context4", "type": "newScript", "url": "http://example.com/browser/browser/devtools/debugger/test/test-script-switching-02.js", "startLine": 1 } JavaScript strict warning: chrome://browser/content/orion.js, line 6190: reference to undefined property range.ignoreChars JavaScript strict warning: chrome://browser/content/orion.js, line 6986: reference to undefined property lastChild.ignoreChars WARNING: NS_ENSURE_TRUE(mDisabledJSAndPlugins) failed: file /builds/slave/m-in-osx-dbg/build/editor/composer/src/nsEditingSession.cpp, line 248 WARNING: NS_ENSURE_TRUE(mDisabledJSAndPlugins) failed: file /builds/slave/m-in-osx-dbg/build/editor/composer/src/nsEditingSession.cpp, line 248 TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "reference to undefined property range.ignoreChars" {file: "chrome://browser/content/orion.js" line: 6190}] TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Warning: "reference to undefined property lastChild.ignoreChars" {file: "chrome://browser/content/orion.js" line: 6986}] WARNING: NS_ENSURE_TRUE(mDisabledJSAndPlugins) failed: file /builds/slave/m-in-osx-dbg/build/editor/composer/src/nsEditingSession.cpp, line 248 WARNING: NS_ENSURE_TRUE(mDisabledJSAndPlugins) failed: file /builds/slave/m-in-osx-dbg/build/editor/composer/src/nsEditingSession.cpp, line 248 --DOMWINDOW == 70 (0x2f664828) [serial = 6122] [outer = 0x0] [url = about:blank] --DOMWINDOW == 69 (0x2f434698) [serial = 6115] [outer = 0x0] [url = http://example.com/browser/browser/devtools/debugger/test/browser_dbg_frame-parameters.html] --DOMWINDOW == 68 (0x2c696b48) [serial = 6112] [outer = 0x0] [url = about:blank] --DOMWINDOW == 67 (0x2d722688) [serial = 6102] [outer = 0x0] [url = about:blank] --DOMWINDOW == 66 (0x2e5179a8) [serial = 6098] [outer = 0x0] [url = chrome://browser/content/debugger.xul] --DOMWINDOW == 65 (0x2f341b28) [serial = 6100] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 64 (0x2feb0438) [serial = 6108] [outer = 0x0] [url = chrome://browser/content/debugger.xul] --DOMWINDOW == 63 (0x2f5934f8) [serial = 6110] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 62 (0x2c065358) [serial = 6118] [outer = 0x0] [url = chrome://browser/content/debugger.xul] --DOMWINDOW == 61 (0x2f3d5068) [serial = 6120] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 60 (0x2f5196c8) [serial = 6088] [outer = 0x0] [url = chrome://browser/content/debugger.xul] --DOMWINDOW == 59 (0x2f3fbf18) [serial = 6090] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 58 (0x2f4285a8) [serial = 6092] [outer = 0x0] [url = about:blank] --DOMWINDOW == 57 (0x2f442ed8) [serial = 6136] [outer = 0x2dfe7160] [url = about:blank] --DOMWINDOW == 56 (0x32c2df28) [serial = 6117] [outer = 0x0] [url = http://example.com/browser/browser/devtools/debugger/test/browser_dbg_frame-parameters.html] --DOMWINDOW == 55 (0x2f466f78) [serial = 6094] [outer = 0x0] [url = about:blank] --DOMWINDOW == 54 (0x2f444b88) [serial = 6124] [outer = 0x0] [url = about:blank] --DOMWINDOW == 53 (0x2d034598) [serial = 6091] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 52 (0x2e54bbd8) [serial = 6089] [outer = 0x0] [url = about:blank] --DOMWINDOW == 51 (0x2d009c98) [serial = 6121] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 50 (0x2f4abea8) [serial = 6119] [outer = 0x0] [url = about:blank] --DOMWINDOW == 49 (0x2feb5f18) [serial = 6114] [outer = 0x0] [url = about:blank] --DOMWINDOW == 48 (0x2f516dc8) [serial = 6111] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 47 (0x2dff5b58) [serial = 6109] [outer = 0x0] [url = about:blank] --DOMWINDOW == 46 (0x2f671058) [serial = 6104] [outer = 0x0] [url = about:blank] --DOMWINDOW == 45 (0x2d1bf7c8) [serial = 6101] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 44 (0x2df39958) [serial = 6099] [outer = 0x0] [url = about:blank] --DOMWINDOW == 43 (0x2d00a158) [serial = 6143] [outer = 0x2f301fb0] [url = about:blank] --DOCSHELL 0x30562400 == 12 --DOCSHELL 0x2cf3a600 == 11 --DOMWINDOW == 42 (0xc29c7f8) [serial = 6125] [outer = 0x0] [url = http://example.com/browser/browser/devtools/debugger/test/browser_dbg_frame-parameters.html] --DOMWINDOW == 41 (0x2dfd2a48) [serial = 6130] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 40 (0x2fe4d718) [serial = 6128] [outer = 0x0] [url = chrome://browser/content/debugger.xul] --DOMWINDOW == 39 (0x2f365048) [serial = 6132] [outer = 0x0] [url = about:blank] --DOMWINDOW == 38 (0x2e59c8b8) [serial = 6127] [outer = 0x0] [url = http://example.com/browser/browser/devtools/debugger/test/browser_dbg_frame-parameters.html] --DOMWINDOW == 37 (0x2e517d78) [serial = 6134] [outer = 0x0] [url = about:blank] --DOMWINDOW == 36 (0x2f36cf38) [serial = 6131] [outer = 0x0] [url = data:text/html;charset=utf8,<!DOCTYPE%20html><html%20style='height:100%'%20dir='ltr'><body%20style='height:100%;margin:0;overflow:hidden'><div%20id='editor'%20style='height:100%'></div></body></html>] --DOMWINDOW == 35 (0x2f201cf8) [serial = 6129] [outer = 0x0] [url = about:blank] TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Test timed out args: ['arch', '-arch', 'i386', '/usr/sbin/screencapture', '-C', '-x', '-t', 'png', '/var/folders/Xr/Xr--yJnSEY0U11ET5NZuMU+++TM/-Tmp-/mozilla-test-fail_Gi9_TI'] SCREENSHOT:(snipped) INFO TEST-END | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | finished in 30094ms TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Found a tab after previous test timed out: http://example.com/browser/browser/devtools/debugger/test/browser_dbg_script-switching.html WARNING: NS_ENSURE_TRUE(mMutable) failed: file /builds/slave/m-in-osx-dbg/build/netwerk/base/src/nsSimpleURI.cpp, line 292 WARNING: NS_ENSURE_TRUE(selCon) failed: file /builds/slave/m-in-osx-dbg/build/editor/libeditor/base/nsEditor.cpp, line 598 WARNING: NS_ENSURE_TRUE(selcon) failed: file /builds/slave/m-in-osx-dbg/build/editor/libeditor/base/nsEditor.cpp, line 619 WARNING: NS_ENSURE_TRUE(mDisabledJSAndPlugins) failed: file /builds/slave/m-in-osx-dbg/build/editor/composer/src/nsEditingSession.cpp, line 248 WARNING: NS_ENSURE_TRUE(selCon) failed: file /builds/slave/m-in-osx-dbg/build/editor/libeditor/base/nsEditor.cpp, line 598 WARNING: NS_ENSURE_TRUE(selcon) failed: file /builds/slave/m-in-osx-dbg/build/editor/libeditor/base/nsEditor.cpp, line 619 WARNING: NS_ENSURE_TRUE(mDoneSetup) failed: file /builds/slave/m-in-osx-dbg/build/editor/composer/src/nsEditingSession.cpp, line 1383 WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x8000FFFF: file /builds/slave/m-in-osx-dbg/build/content/base/src/nsContentUtils.cpp, line 2630 WARNING: NS_ENSURE_TRUE(pusher.Push(aBoundElement)) failed: file /builds/slave/m-in-osx-dbg/build/content/xbl/src/nsXBLProtoImplMethod.cpp, line 355 WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x8000FFFF: file /builds/slave/m-in-osx-dbg/build/content/base/src/nsContentUtils.cpp, line 2630 WARNING: NS_ENSURE_TRUE(pusher.Push(aBoundElement)) failed: file /builds/slave/m-in-osx-dbg/build/content/xbl/src/nsXBLProtoImplMethod.cpp, line 355
The real issues in both cases so far: TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Error: "gDebuggee.firstCall is not a function" {file: "chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js" line: 68}] and: TEST-INFO | chrome://mochitests/content/browser/browser/devtools/debugger/test/browser_dbg_script-switching.js | Console message: [JavaScript Error: "ReferenceError: secondCall is not defined" {file: "resource:///modules/devtools/dbg-client.jsm" line: 181}] Both errors appear before the new script notifications.
Assignee: nobody → past
Status: NEW → ASSIGNED
Priority: -- → P2
These test failures are against an older version of the test. Let's see if we get any more with the last one.
This is rare enough that I'm downgrading to P3.
Priority: P2 → P3
Summary: Intermittent browser_dbg_script-switching.js | Test timed out, | Found a tab after previous test timed out → Intermittent browser_dbg_script-switching.js | Test timed out, | Found a tab after previous test timed out, | the destruction of lots more tests
(In reply to Panos Astithas [:past] from comment #6) > This is rare enough that I'm downgrading to P3. Sadly not too rare any more...
Priority: P3 → P1
Summary: Intermittent browser_dbg_script-switching.js | Test timed out, | Found a tab after previous test timed out, | the destruction of lots more tests → Intermittent browser_dbg_script-switching.js | (Possible uncaught JS exception) | Test timed out, | Found a tab after previous test timed out, | the destruction of lots more tests
I think I know why this and literally every other test that fails because a "an unexpected uncaught JS exception reported through window.onerror - TypeError: gDebuggee.firstCall is not a function". This is how we wait for the tab load now in head.js: let tab = targetBrowser.selectedTab; if (aOnload) { let handler = function() { if (tab.linkedBrowser.currentURI.spec == aURL) { tab.removeEventListener("load", handler, false); aOnload(); } } tab.addEventListener("load", handler, false); } If we wait for the load events on the tab and not the content window, we're gonna have a bad time. In our situation, the tab finishing loading is *not* correlated to the content window of the linked browser being loaded. Even more, if we didn't remove the event listener immediately, it would've got called 4 (four!) times, first for the tab with an undefined (!) content document, then again for the content window with an "uninitialized" ready state, going through "loading" and finally "complete". Correct thing to do: let tab = targetBrowser.selectedTab; let win = tab.linkedBrowser.contentWindow; if (aOnload) { let handler = function() { if (tab.linkedBrowser.currentURI.spec != aURL || win.document == null, win.document.readyState != "complete") { return; } tab.removeEventListener("load", handler, false); aOnload(); } tab.addEventListener("load", handler, false); } I'll do the change in bug 707302 (since it's already a monster) and see if these keep happening.
...even more, when loading "about:blank" (in a few tests) we should wait for an "interactive" readyState, since "complete" will never be available.
Depends on: 707302
potentially fixed by bug 707302. FILTER ON PUMPKINS.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
Whiteboard: [orange]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.