Closed Bug 774368 Opened 13 years ago Closed 13 years ago

Intermittent test_basic.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: can't access dead object at :0, frequently followed by indexedDB failures

Categories

(Core :: DOM: Device Interfaces, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18
Tracking Status
firefox17 --- fixed

People

(Reporter: emorley, Assigned: dougt)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file, 1 obsolete file)

Rev3 Fedora 12x64 mozilla-inbound pgo test mochitests-2/5 on 2012-07-16 04:04:24 PDT for push 082542b01af8 slave: talos-r3-fed64-004 https://tbpl.mozilla.org/php/getParsedLog.php?id=13569339&tree=Mozilla-Inbound { 2402 INFO TEST-START | /tests/dom/devicestorage/test/test_basic.html 2403 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | Should have getDeviceStorage 2404 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | Should have gotten a storage 2405 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | Should have a non-null request 2406 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/devicestorage/test/test_basic.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: can't access dead object at :0 2407 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | File name should match 2408 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | addSuccess was called 2409 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | Should have getDeviceStorage 2410 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | File name should match 2411 INFO TEST-END | /tests/dom/devicestorage/test/test_basic.html | finished in 50ms }
https://tbpl.mozilla.org/php/getParsedLog.php?id=13575589&tree=Mozilla-Inbound { 2402 INFO TEST-START | /tests/dom/devicestorage/test/test_basic.html 2403 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/devicestorage/test/test_basic.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: can't access dead object at :0 2404 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/devicestorage/test/test_basic.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: can't access dead object at :0 2405 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/devicestorage/test/test_basic.html | an unexpected uncaught JS exception reported through window.onerror - Script error. at resource:///components/BrowserElementParent.js:0 2406 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | Should have getDeviceStorage 2407 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | Should have gotten a storage 2408 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | Should have a non-null request 2409 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | File name should match 2410 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | addSuccess was called 2411 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | Should have getDeviceStorage 2412 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | File name should match 2413 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | wrong arraybuffer byteLength - 69 should equal 69 2414 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | wrong values - My name is Doug Turner. My IRC nick is DougT. I like Maple cookies. should equal My name is Doug Turner. My IRC nick is DougT. I like Maple cookies. 2415 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | File name should match devicestorage/hi 2416 INFO TEST-PASS | /tests/dom/devicestorage/test/test_basic.html | file was deleted successfully 2417 INFO TEST-END | /tests/dom/devicestorage/test/test_basic.html | finished in 58ms }
Assignee: nobody → doug.turner
jlebar added a mechanism to test for dead windows in bug 773980 to fix a similar problem that may be useful here.
Attached patch patch v.1 (obsolete) — — Splinter Review
Attachment #645197 - Flags: review?(justin.lebar+bug)
Won't this simply change the can't-touch-dead-object errors into null-pointer errors, which would still turn the tree orange?
I didn't see any null-pointer errors when I retriggered this patch a few times here: https://tbpl.mozilla.org/?tree=Try&rev=1a74a5b68e17 Where would you expect to see null-pointer errors?
> Where would you expect to see null-pointer errors? From the same place as whoever was touching the dead object. Before you nulled out the object, someone touched it and triggered an error. Now when they go to touch it, the object is null, which likewise triggers an error. Nothing else in this test changed except the value gDataBlob/gFileReader after unload, and the type of exception thrown when you touch the variable, right? I don't understand how that should fix anything. I mean, it obviously appears to work. I just don't understand why, unless the dead-object error was caused by someone calling tostring on the dead object, which won't throw for the null object.
Comment on attachment 645197 [details] [diff] [review] patch v.1 :shrug:
Attachment #645197 - Flags: review?(justin.lebar+bug) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
bah
Summary: Intermittent test_basic.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: can't access dead object at :0 → Intermittent test_basic.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: can't access dead object at :0, frequently followed by indexedDB failures
Doug, any news on this? (is a top orange)
Attached patch patch v.2 — — Splinter Review
So, we have a recording of the failure, but haven't had time to sit down and debug it further. We know that onTestMessage is being called after onTestComplete. This is a hopeful bandaide that will removed all of the mm listeners during onTestComplete.
Attachment #645197 - Attachment is obsolete: true
Attachment #658957 - Flags: review?(bugs)
Attachment #658957 - Attachment is obsolete: true
Attachment #658957 - Flags: review?(bugs)
Attachment #658957 - Attachment is obsolete: false
Attachment #658957 - Flags: review?(bugs)
Comment on attachment 658957 [details] [diff] [review] patch v.2 rs=me
Attachment #658957 - Flags: review?(bugs) → review+
Target Milestone: mozilla17 → mozilla18
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: