Closed
Bug 1244936
Opened 8 years ago
Closed 8 years ago
(e10s bc1 permanent) TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_close.js | leaked 2 window(s) until shutdown [url = http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html ]
Categories
(Toolkit Graveyard :: Notifications and Alerts, defect)
Tracking
(e10s+)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
e10s | + | --- |
People
(Reporter: KWierso, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: intermittent-failure)
https://treeherder.mozilla.org/logviewer.html#?job_id=20857820&repo=mozilla-inbound
Flags: needinfo?(armenzg)
Comment 1•8 years ago
|
||
I think this is going to take a while to fix as we are finally running e10s properly on taskcluster. Many jobs are green, but we have a few to fix, including this one. We will need to not run this chunk, or hide it by default until it can be fixed.
Reporter | ||
Comment 2•8 years ago
|
||
I ended up hiding the bc1 chunk on tc-m-e10s until this can get sorted out. We can unhide once this gets greened up.
Comment 3•8 years ago
|
||
Thanks and my apologies. This was my mistake. I only focused on disabled e10s mochitest-plain
Flags: needinfo?(armenzg)
Updated•8 years ago
|
Blocks: tc-linux64-debug
Summary: Permafailing browser_notification_close.js | leaked 2 window(s) until shutdown [url = http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html] → (e10s bc1) Permafailing browser_notification_close.js | leaked 2 window(s) until shutdown [url = http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html]
Updated•8 years ago
|
Blocks: e10s-tests
tracking-e10s:
--- → +
Comment 4•8 years ago
|
||
here is a link to alog from a try push: https://public-artifacts.taskcluster.net/Dv0tClU5TH-e_aMIrYEHqQ/0/public/logs/live_backing.log this is a perma fail, you can see the trend here: https://treeherder.mozilla.org/#/jobs?repo=try&author=armenzg@mozilla.com&selectedJob=16412567&filter-searchStr=bc1%20e10s :jaws, can you help us figure out some next steps on how to fix this bug?
Component: DOM: Push Notifications → Notifications and Alerts
Flags: needinfo?(jaws)
Product: Core → Toolkit
Comment hidden (Intermittent Failures Robot) |
Comment 6•8 years ago
|
||
I changed the summary as this is not perma failing. I don't see it happening much on try either. https://treeherder.mozilla.org/#/jobs?repo=try&filter-searchStr=tc%20browser-chrome%20e10s%20M(bc1)&group_state=expanded&exclusion_profile=false&fromchange=b2e66fec77c6
Summary: (e10s bc1) Permafailing browser_notification_close.js | leaked 2 window(s) until shutdown [url = http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html] → Intermittent TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_close.js | leaked 2 window(s) until shutdown [url = http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html]
Comment 7•8 years ago
|
||
Well well, it has moved to bc4 (yes, it is a permanent issue): https://treeherder.mozilla.org/#/jobs?repo=try&filter-searchStr=tc%20browser-chrome%20e10s%20m(bc4)&group_state=expanded&exclusion_profile=false&fromchange=b2e66fec77c6&selectedJob=16498244
Summary: Intermittent TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_close.js | leaked 2 window(s) until shutdown [url = http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html] → (e10s bc4 permanent) TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_close.js | leaked 2 window(s) until shutdown [url = http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html]
Comment 8•8 years ago
|
||
jaws: any suggestions on what to try? Steps to reproduce (except the last command which I paste below): https://pastebin.mozilla.org/8859022 Unfortunately, the test passes locally when: * I test it directly - browser/base/content/test/alerts/browser_notification_close.js * I test it as a directory - browser/base/content/test/alerts Filed bug 1246974 for lack of screenshots. /home/worker/workspace/build/venv/bin/python -u /home/worker/workspace/build/tests/mochitest/runtests.py --e10s --appname=/home/worker/workspace/build/application/firefox/firefox --utility-path=tests/bin --extra-profile-file=tests/bin/plugins --symbols-path=https://queue.taskcluster.net/v1/task/TmJr0FB3QeWhpq1z1WN4zg/artifacts/public/build/target.crashreporter-symbols.zip --certificate-path=tests/certs --setpref=webgl.force-enabled=true --quiet --log-raw=/home/worker/workspace/build/blobber_upload_dir/browser-chrome-chunked_raw.log --log-errorsummary=/home/worker/workspace/build/blobber_upload_dir/browser-chrome-chunked_errorsummary.log --use-test-media-devices --screenshot-on-fail --browser-chrome --chunk-by-runtime browser/base/content/test/alerts/browser_notification_close.js
Comment 9•8 years ago
|
||
jaws: did you have any chance to look at this? This is one of the last issues before every job running on TaskCluster is green. This has been a multi-quarter project and we would love to get your assitance.
No longer depends on: 1244720
Comment 10•8 years ago
|
||
jaws: I forgot to mention, if you don't have cycles at the moment please let us know who else could give a hand in here.
Comment 11•8 years ago
|
||
Kit, this is failing in nsAlertService.cpp first at line 201 and next at line 179, > 201 // nsIAlertsDoNotDisturb > 201 NS_IMETHODIMP nsAlertsService::GetManualDoNotDisturb(bool* aRetVal) > 201 { > 197 #ifdef MOZ_WIDGET_ANDROID > 198 return NS_ERROR_NOT_IMPLEMENTED; > 199 #else > 200 nsCOMPtr<nsIAlertsDoNotDisturb> alertsDND(GetDNDBackend()); > 201 NS_ENSURE_TRUE(alertsDND, NS_ERROR_NOT_IMPLEMENTED); > 202 return alertsDND->GetManualDoNotDisturb(aRetVal); > 203 #endif > 204 } > 175 nsresult rv; > 176 // Try the system notification service. > 177 if (mBackend) { > 178 rv = mBackend->CloseAlert(aAlertName, aPrincipal); > 179 if (NS_WARN_IF(NS_FAILED(rv))) { > 180 // If the system backend failed to close the alert, fall back to XUL for > 181 // future alerts. > 182 mBackend = nullptr; > 183 } > 184 } else { Do you know why we're getting an issue with DoNotDisturb on Linux?
Flags: needinfo?(jaws) → needinfo?(kcambridge)
Comment 12•8 years ago
|
||
I'm not sure at which point during the test it starts to hang. The logs posted don't have the individual results of each test condition (is(), ok(), etc). Armen, is it possible to enable those for this test? browser_notification_do_not_disturb.js does a try/catch to make sure that DND is implemented or it skips the test. We shouldn't need to do that here since DND isn't referenced by this test. Also, pertaining to comment #11, https://hg.mozilla.org/integration/fx-team/rev/3a496a28e22f mentions that Ubuntu Unity has incomplete support for libnotify and we fall back to the XUL notifications. Matt, you reviewed the changes in that patch. Does anything come to mind here for you?
Flags: needinfo?(armenzg)
Flags: needinfo?(MattN+bmo)
Comment 13•8 years ago
|
||
I think the failure on line 201 happens because the test machines use libnotify, but we only support DND for XUL alerts. Line 179 is bug 1227730. I have a sneaking suspicion that's behind the leak, since it goes away if I run the test with that patch applied. FWIW, if I run `mach mochitest --e10s browser/base/content/test/alerts/browser_notification_close.js` under Unity (where we use XUL alerts), I don't see the errors or leaks.
Flags: needinfo?(kcambridge)
Comment 14•8 years ago
|
||
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #12) > I'm not sure at which point during the test it starts to hang. The logs > posted don't have the individual results of each test condition (is(), ok(), > etc). Armen, is it possible to enable those for this test? Hi jaws, I'm sorry. What do you want me to enable? Some sort of debugging info? FTR, this is back to bc1 instead of bc4. Here's the updated link [1]. It is hidden on treeherder (i.e. exclusion_profile=false). Here's one of the logs [2] [1] https://treeherder.mozilla.org/#/jobs?repo=try&filter-searchStr=tc%20browser-chrome%20e10s%20m%28bc1%29&group_state=expanded&fromchange=b2e66fec77c6&selectedJob=16498244&exclusion_profile=false [2] https://public-artifacts.taskcluster.net/G9z9Mw9JQLuUKEzH-02QHQ/0/public/logs/live_backing.log
Flags: needinfo?(armenzg)
Summary: (e10s bc4 permanent) TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_close.js | leaked 2 window(s) until shutdown [url = http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html] → (e10s bc1 permanent) TEST-UNEXPECTED-FAIL | browser/base/content/test/alerts/browser_notification_close.js | leaked 2 window(s) until shutdown [url = http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html]
Comment 15•8 years ago
|
||
For tests that are failing, we should call SimpleTest.requestCompleteLog(); in the test, because right now the treeherder logs aren't as useful since it is only showing when the test starts and finishes, nothing in between.
Comment 16•8 years ago
|
||
In the following push [1], I've added a bunch of SimpleTest.requestCompleteLog(); to tests that have given me trouble [2] including browser_notification_close.js. To my untrainded eye, I don't see any more output. Have I done it correctly? See link [2] I see the test keeps on failing (as expected) [3] One data point observation, I've seen browser_notification_tab_switching.js fail intermittently and I noticed it runs just two tests before browser_notification_close.js. I've collected in [4] the speed at which it run and the memory allocation. In case it gives anything useful. I doubt it is relevant, however, it caught my eye. I would have expected the test would run slower under docker. [1] https://treeherder.mozilla.org/#/jobs?repo=try&revision=d9abb4499cbb [2] https://hg.mozilla.org/try/rev/180e4ec5b3ff [3] https://public-artifacts.taskcluster.net/IF1ddAIiTYK-7HkC3Qth6Q/0/public/logs/live_backing.log [4] TC > 00:55:58 INFO - MEMORY STAT | vsize 1080MB | residentFast 290MB | heapAllocated 90MB > 00:55:58 INFO - 44 INFO TEST-OK | browser/base/content/test/alerts/browser_notification_tab_switching.js | took 2876ms BB > 05:12:57 INFO - MEMORY STAT | vsize 719MB | residentFast 243MB | heapAllocated 75MB > 05:12:57 INFO - 13 INFO TEST-OK | browser/base/content/test/alerts/browser_notification_tab_switching.js | took 5682ms
Comment 17•8 years ago
|
||
I don't know if it helps or if it becomes more of a distraction, when I disable browser_notification_close.js then browser_notification_open_settings.js starts intermittently failing (The tests move to bc4 instead of bc1; I think). https://treeherder.mozilla.org/#/jobs?repo=try&revision=1dca45d3b4dd&filter-searchStr=e10s%20browser-chrome When I disable this second test (browser_notification_open_settings.js) as well, it seems that a third test (browser_notification_remove_permission.js) *might* start failing (I'm still re-triggering to know) https://treeherder.mozilla.org/#/jobs?repo=try&revision=a64ceebb39d4&filter-searchStr=e10s%20browser-chrome&group_state=expanded
Comment hidden (Intermittent Failures Robot) |
Comment 19•8 years ago
|
||
kits' patch might be fixing this issue as well (bc4 e10s shows green): https://treeherder.mozilla.org/#/jobs?repo=try&revision=80126944609b&group_state=expanded&filter-searchStr=tc%20desktop
Comment 20•8 years ago
|
||
It gets fixed by bug 1227730.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Comment 22•8 years ago
|
||
Let's leave this one open until bug 1227730 lands, so that we can star intermittents.
Status: RESOLVED → REOPENED
Flags: needinfo?(MattN+bmo)
Resolution: DUPLICATE → ---
Updated•8 years ago
|
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Resolution: --- → FIXED
Comment hidden (Intermittent Failures Robot) |
Comment 25•8 years ago
|
||
That's a weekly summary. There are no more reports since the 25th.
Updated•10 months ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•