Closed Bug 1677300 Opened 5 years ago Closed 5 years ago

Frequent browser/components/places/tests/browser/browser_toolbar_other_bookmarks.js | [JavaScript Error: "uncaught exception: Object"] -

Categories

(Firefox :: Address Bar, defect, P5)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr78 --- unaffected
firefox83 --- unaffected
firefox84 --- fixed
firefox85 --- affected

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

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


[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - TEST-PASS | browser/components/places/tests/browser/browser_toolbar_other_bookmarks.js | Menu item was removed from the popup. - 
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - Closing menu popup.
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - Leaving test bound testDeletingMenuItems
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - Entering test bound no_errors_when_bookmarks_placed_in_palette
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - Console message: [JavaScript Error: "uncaught exception: Object"]
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - Buffered messages finished
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_toolbar_other_bookmarks.js | [JavaScript Error: "uncaught exception: Object"] - 
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - Stack trace:
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - chrome://mochikit/content/browser-test.js:test_ok:1304
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_toolbar_other_bookmarks.js:observe:229
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_toolbar_other_bookmarks.js | There should be no console errors - Got 1, expected +0
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - Stack trace:
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - chrome://mochikit/content/browser-test.js:test_is:1332
[task 2020-11-14T11:32:23.000Z] 11:32:22     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_toolbar_other_bookmarks.js:no_errors_when_bookmarks_placed_in_palette:239
[task 2020-11-14T11:32:23.000Z] 11:32:23     INFO - GECKO(2060) | [Parent 2060, Main Thread] WARNING: 'NS_FAILED(aRv)', file /builds/worker/checkouts/gecko/netwerk/ipc/NeckoParent.cpp:914
[task 2020-11-14T11:32:23.000Z] 11:32:23     INFO - GECKO(2060) | [Child 2063, Main Thread] WARNING: NS_ENSURE_TRUE(mRequest) failed: file /builds/worker/checkouts/gecko/netwerk/base/nsBaseChannel.cpp:928
[task 2020-11-14T11:32:23.000Z] 11:32:23     INFO - GECKO(2060) | JavaScript error: , line 0: uncaught exception: Object
[task 2020-11-14T11:32:23.000Z] 11:32:23     INFO - Console message: [JavaScript Error: "uncaught exception: Object"]
[task 2020-11-14T11:32:23.000Z] 11:32:23     INFO - Leaving test bound no_errors_when_bookmarks_placed_in_palette```

Jared, can you take a look?
Thank you.

Flags: needinfo?(jaws)
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Flags: needinfo?(jaws)

Set release status flags based on info from the regressing bug 1674091

I think this might be fixed?

Flags: needinfo?(jaws)

No instances since November 20. Good enough for me.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(jaws)
Resolution: --- → WORKSFORME

Sure.

Status: RESOLVED → REOPENED
Flags: needinfo?(ryanvm)
Resolution: WORKSFORME → ---

Jared, can you remind me why we're checking for errors in this test in this way? I suspect this uncaught exception is coming from somewhere else, but it's not clear where from, so it'll be a bit of a nightmare to debug...

Flags: needinfo?(jaws)

Judging by the error description alone, it seems awfully similar to bug 1586741...

I added the test that looks for any exceptions because an exception was getting thrown when trying to update the Other Bookmarks folder visibility if the toolbar was in the palette. There's a couple things we can do here:

  1. Check for specific exception messages and ignore the rest.
  2. To help with debugging, change ok(false, error.message); to
ok(false, `${error.message}, ${error.stack}, ${JSON.stringify(error)}`);
Flags: needinfo?(jaws)
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a5b44b8b0de4 improve logging during browser_toolbar_other_bookmarks.js DONTBUILD
Keywords: leave-open

That didn't help. :-(

[task 2020-12-16T11:38:35.948Z] 11:38:35 INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_toolbar_other_bookmarks.js | [JavaScript Error: "uncaught exception: Object"], undefined, {"message":"[JavaScript Error: "uncaught exception: Object"]","logLevel":3,"timeStamp":1608118715705,"debug":0,"info":1,"warn":2,"error":3} -

These types of errors are the bane of our existence - they're really hard to track down and often not directly related to what's happening in a given test.

Kris, how hard would it be to assert in debug builds if system-privileged code throws exceptions or rejects promises in a way that produces these useless messages?

Flags: needinfo?(kmaglione+bmo)
See Also: → 1681329

This particular intermittent isn't happening on release branch, and didn't happen on beta when 84 was on beta, so we shouldn't mark 84 as affected (and anyway we probably wouldn't uplift further changes there if they were automation/debug-specific).

See Also: → 1683206
See Also: → 1684043

Looks like this went away with bug 1674840 and the fix for bug 1683206. I don't understand why, but there's probably not much point keeping this open. I filed bug 1684043 to make changes to the JS engine to avoid this class of problems being so hard to diagnose/fix.

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Flags: needinfo?(kmaglione+bmo)
Resolution: --- → WORKSFORME
See Also: 1681329
See Also: → 1684195
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: