Crash in AsyncShutdownTimeout | profile-change-teardown | Extension shutdown: *
Categories
(Toolkit :: Add-ons Manager, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | affected |
firefox61 | --- | unaffected |
firefox62 | + | wontfix |
firefox63 | --- | wontfix |
firefox64 | --- | wontfix |
firefox65 | --- | wontfix |
firefox66 | --- | wontfix |
firefox67 | --- | wontfix |
firefox68 | --- | fix-optional |
People
(Reporter: marcia, Assigned: robwu)
References
(Depends on 2 open bugs)
Details
(Keywords: crash, leave-open, regression)
Crash Data
Attachments
(2 files, 1 obsolete file)
59 bytes,
text/x-review-board-request
|
aswan
:
review+
pascalc
:
approval-mozilla-beta+
|
Details |
46 bytes,
text/x-phabricator-request
|
aswan
:
review+
pascalc
:
approval-mozilla-beta+
|
Details | Review |
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Updated•7 years ago
|
Comment 6•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Comment hidden (Intermittent Failures Robot) |
Reporter | ||
Updated•7 years ago
|
Comment 9•7 years ago
|
||
Comment hidden (mozreview-request) |
Comment 11•7 years ago
|
||
Comment hidden (mozreview-request) |
Comment 13•7 years ago
|
||
mozreview-review |
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
bugherder |
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Comment 19•7 years ago
|
||
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
Comment 22•7 years ago
|
||
Updated•7 years ago
|
Comment 23•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Comment 24•7 years ago
|
||
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
![]() |
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Comment 27•7 years ago
|
||
Comment 28•7 years ago
|
||
Updated•7 years ago
|
Comment 29•7 years ago
|
||
important |
Comment 30•7 years ago
|
||
Comment 32•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 33•7 years ago
|
||
Comment 34•7 years ago
|
||
Comment 35•7 years ago
|
||
Comment 36•7 years ago
|
||
bugherder |
Comment 37•7 years ago
|
||
Reporter | ||
Comment 38•7 years ago
|
||
Reporter | ||
Comment 39•7 years ago
|
||
Comment 40•7 years ago
|
||
Comment 41•7 years ago
|
||
Comment 42•7 years ago
|
||
uplift |
Assignee | ||
Comment 44•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 45•7 years ago
|
||
Comment 46•7 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 49•6 years ago
|
||
Rob, are the the remaining crashes on target to get a fix for 67?
Assignee | ||
Comment 50•6 years ago
|
||
No, the others are not in 67.
The top cause (asyncEmitManifestEntry(\"chrome_settings_overrides\")
) was fixed by bug 1525729, just before the weekend, in time for Firefox 67.
The second top cause (asyncEmitManifestEntry(\"background\")
) was supposedly addressed by bug 1501375, but there are still crash reports with the signature.
The others haven't been addressed yet. Each of the others (from comment 44) should be tracked separately, but I'm keeping them in this one bug report since the crash signatures are indistinguishable (the relevant information is in the async shutdown timeout
field, which is not recognized by BMO).
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 51•6 years ago
|
||
I suspect that many of these crashes occur when the lengthy extension startup continues after shutdown has already been requested, as 0.4% of the startups reported by telemetry take over 50 seconds (0.4% on Beta 67, 0.5% on Nightly 68).
Adding a few checks and early returns from the extension starup could reduce the number of timeouts, but there will always be some timeouts under unfortunate circumstances on constrained systems (e.g. slow file access).
The page_action
handler is a clear example that couldn't have been the cause of a timeout. It awaits StartupCache.get
, but at that point the startup cache has already been read (to read extension manifests), so the call is expected to resolve within a few microtasks. Yet there were 10 AsyncShutdown timeout crashes associated with page_action
in the past three months, 9 of these are from one of the built-in extensions (screenshots, webcompat).
I filed two new dependencies (bug 1543354 and bug 1542181).
Bug 1543354 is actionable, whereas bug 1542181 is just a report of the issue with no clear path forwards, as it is likely dependent on file IO.
The crash rates for the remaining signatures could be lowered by adding early returns to the Extension's startup
if shutdown has started.
For comparison, update to comment 44:
1. 1272 at asyncEmitManifestEntry(\"chrome_settings_overrides\")
(1 after bug 1525729 landed)
2. 499 at asyncEmitManifestEntry(\"background\")
- bug 1543354
3. 933 at at "Startup: Run manifest\""
4. 27 at "Startup: Loading manifest\""
5. 30 at "Shutdown: Flushed jar cache"
6. 21 at "Shutdown: Emit shutdown"
7. 15 at asyncEmitManifestEntry(\"commands\")
8. 351 at "Shutdown: Storage"
(significant regression - see bug 1542181)
9. 2 at asyncEmitManifestEntry(\"chrome_url_overrides\")
10. 0 at asyncEmitManifestEntry(\"browser_action\")
(7 in past three months)
11. 0 at "Shutdown: Flush jar cache"
(2 in past three months)
12. 0 at asyncEmitManifestEntry(\"page_action\")
(10 in past three months) (NEW)
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~asyncEmitManifestEntry(%5C%5C%5C%22chrome_settings_overrides%5C%5C%5C%22)&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~asyncEmitManifestEntry%28%5C%5C%5C%22background%5C%5C%5C%22%29&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~Startup%3A%20Run%20manifest%5C%22&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~Startup%3A%20Loading%20manifest%5C%22&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~Shutdown%3A%20Flushed%20jar%20cache&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~Shutdown%3A%20Emit%20shutdown&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~asyncEmitManifestEntry%28%5C%5C%5C%22commands%5C%5C%5C%22%29&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~Shutdown%3A%20Storage&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~asyncEmitManifestEntry%28%5C%5C%5C%22chrome_url_overrides%5C%5C%5C%22%29&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~asyncEmitManifestEntry%28%5C%5C%5C%22browser_action%5C%5C%5C%22%29&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~Shutdown%3A%20Flush%20jar%20cache&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
- https://crash-stats.mozilla.com/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~asyncEmitManifestEntry%28%5C%5C%5C%22page_action%5C%5C%5C%22%29&date=%3E%3D2019-04-03T00%3A00%3A00.000Z&date=%3C2019-04-10T00%3A00%3A00.000Z&_facets=signature&_facets=version&page=1&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Comment 54•5 years ago
|
||
I get this crash today [@ AsyncShutdownTimeout | profile-change-teardown | Extension shutdown: uBlock0@raymondhill.net ] - https://crash-stats.mozilla.org/report/index/87625ef7-5b31-4a3b-9589-e95240200427
Comment 55•5 years ago
|
||
Reproducible with
Product Thunderbird
Release Channel nightly
Version 83.0a1
Build ID 20200922082006 (2020-09-22)
Just start Thunderbird ... doing nothing ... and close main TB window ... wait a while and crash:
Thunderbird 83.0a1 Crash Report [@ AsyncShutdownTimeout | profile-change-teardown | Extension shutdown: wetransfer@extensions.thunderbird.net ]
32bit crash : bp-f5728164-216f-4f8e-a14d-5aae20200922
64bit crash : bp-3078bd25-dfd3-472d-9728-678ee0200922
Comment 56•4 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:robwu, maybe it's time to close this bug?
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 58•4 years ago
|
||
The vast majority of the crashes related to this are annotated with asyncEmitManifestEntry(\"background\")
, which is tracked in bug 1543354.
In the past month, Crash in AsyncShutdownTimeout | profile-change-teardown | Extension shutdown:
has:
- 622 crashes without
asyncEmitManifestEntry(\"background\")
- https://crash-stats.mozilla.org/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=%21~asyncEmitManifestEntry%28%5C%5C%5C%22background%5C%5C%5C%22%29&product=Firefox&date=%3E%3D2021-03-29T17%3A13%3A00.000Z&date=%3C2021-04-29T17%3A13%3A00.000Z&_facets=signature&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports - 4693 crashes with
asyncEmitManifestEntry(\"background\")
- https://crash-stats.mozilla.org/search/?signature=~AsyncShutdownTimeout%20%7C%20profile-change-teardown%20%7C%20Extension%20shutdown%3A&async_shutdown_timeout=~asyncEmitManifestEntry%28%5C%5C%5C%22background%5C%5C%5C%22%29&product=Firefox&date=%3E%3D2021-03-29T17%3A13%3A00.000Z&date=%3C2021-04-29T17%3A13%3A00.000Z&_facets=signature&_sort=-date&_columns=date&_columns=version&_columns=build_id&_columns=async_shutdown_timeout#crash-reports
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 62•3 years ago
|
||
The bug is linked to a topcrash signature, which matches the following criterion:
- Top 20 desktop browser crashes on release
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 63•3 years ago
|
||
Based on the topcrash criteria, the crash signatures linked to this bug are not in the topcrash signatures anymore.
For more information, please visit auto_nag documentation.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 65•1 year ago
|
||
Since the crash volume is low (less than 15 per week), the severity is downgraded to S3
. Feel free to change it back if you think the bug is still critical.
For more information, please visit BugBot documentation.
Description
•