Crash in AsyncShutdownTimeout | profile-before-change | Places Connection shutdown
Categories
(Toolkit :: Places, defect, P3)
Tracking
()
People
(Reporter: marcia, Unassigned)
References
Details
(Keywords: crash, Whiteboard: [fxsearch])
Crash Data
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Comment 5•5 years ago
|
||
Maybe Fission related. (DOMFissionEnabled=1)
Crash report: https://crash-stats.mozilla.org/report/index/45153595-2f48-4bc8-b76f-81fc40201116
MOZ_CRASH Reason: MOZ_CRASH()
Top 10 frames of crashing thread:
0 mozglue.dll mozalloc_abort memory/mozalloc/mozalloc_abort.cpp:33
1 xul.dll NS_DebugBreak xpcom/base/nsDebugImpl.cpp:435
2 xul.dll nsDebugImpl::Abort xpcom/base/nsDebugImpl.cpp:134
3 xul.dll XPTC__InvokebyIndex
4 @0x1788a2056ef
5 xul.dll trunc
6 xul.dll trunc
7 xul.dll static XPCWrappedNative::CallMethod js/xpconnect/src/XPCWrappedNative.cpp:1142
8 xul.dll XPC_WN_CallMethod js/xpconnect/src/XPCWrappedNativeJSOps.cpp:925
9 xul.dll js::InternalCallOrConstruct js/src/vm/Interpreter.cpp:599
Comment 6•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 7•3 years ago
|
||
Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.
For more information, please visit auto_nag documentation.
Comment 8•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.
Comment 9•3 years ago
|
||
We will continue to monitor the number of crashes, and based on changes, we'll determine if we have enough/more details that could help pinpoint the location of crashes.
Comment 10•3 years ago
|
||
Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.
For more information, please visit auto_nag documentation.
Comment 11•3 years ago
|
||
Most of the crashes here are due to exporting bookmarks to html on shutdown:
https://searchfox.org/mozilla-central/rev/b6d0ad6ba24b3d075e357e52160cd8fc7f911ba9/browser/components/BrowserGlue.jsm#3273-3275
Likely these users have many bookmarks...
The browser.bookmarks.autoExportHTML pref is not enabled by default luckily, so it only affects users who manually flipped it on.
Not sure what we could do here, the requirement is to export the most up to date version of bookmarks, since html format is used to sync bookmarks with third party apps...
Likely most of the time is spent in PlacesUtils.promiseFaviconData(), we could maybe make this part of the initial database fetch, instead of having one query per bookmark.
Comment 12•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.
Comment 13•3 years ago
|
||
Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.
For more information, please visit auto_nag documentation.
Comment 14•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.
Comment 15•3 years ago
|
||
Looking at various reports, it looks like many of these crashes are due to DeleteFileW taking too long when Sqlite tries to remove the -shm and -wal files. There is an option in Sqlite to persist those files, https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlpersistwal and we could evaluate enabling it in Nightly/Early beta and check the effect.
Comment 16•3 years ago
|
||
when I'm running Automation test using Selenium and Firefox Web driver, I'm getting the next output can you please take a look on that:
WARNING: A blocker encountered an error while we were waiting.
Blocker: Waiting for ping task
Phase: TelemetryController: Waiting for pending ping activity
State: (none)
WARNING: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "OS.File: flush I/O queued before profileBeforeChange"
WARNING: addBlocker@resource://gre/modules/AsyncShutdown.sys.mjs:727:15
addBlocker@resource://gre/modules/AsyncShutdown.sys.mjs:523:26
addBlocker@resource://gre/modules/AsyncShutdown.sys.mjs:458:15
setupShutdown@resource://gre/modules/osfile/osfile_async_front.jsm:1548:28
@resource://gre/modules/osfile/osfile_async_front.jsm:1568:16
@resource://gre/modules/osfile.jsm:12:30
@resource://gre/modules/TelemetryStorage.sys.mjs:10:28
_checkPendingPings@resource://gre/modules/TelemetrySend.sys.mjs:859:17
setup@resource://gre/modules/TelemetrySend.sys.mjs:799:18
setup@resource://gre/modules/TelemetrySend.sys.mjs:237:30
setupTelemetry/this._delayedInitTask<@resource://gre/modules/TelemetryControllerParent.sys.mjs:824:36
observe@resource://gre/modules/AsyncShutdown.sys.mjs:576:16
After i take a look on the code i can see that this Warning errors arrives when im using driver.get().quit() method
Comment 17•3 years ago
|
||
(In reply to Avi Lugassi from comment #16)
when I'm running Automation test using Selenium and Firefox Web driver, I'm getting the next output can you please take a look on that:
WARNING: A blocker encountered an error while we were waiting.
Blocker: Waiting for ping task
Phase: TelemetryController: Waiting for pending ping activity
State: (none)
WARNING: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "OS.File: flush I/O queued before profileBeforeChange"
WARNING: addBlocker@resource://gre/modules/AsyncShutdown.sys.mjs:727:15
addBlocker@resource://gre/modules/AsyncShutdown.sys.mjs:523:26
addBlocker@resource://gre/modules/AsyncShutdown.sys.mjs:458:15
setupShutdown@resource://gre/modules/osfile/osfile_async_front.jsm:1548:28
@resource://gre/modules/osfile/osfile_async_front.jsm:1568:16
@resource://gre/modules/osfile.jsm:12:30
@resource://gre/modules/TelemetryStorage.sys.mjs:10:28
_checkPendingPings@resource://gre/modules/TelemetrySend.sys.mjs:859:17
setup@resource://gre/modules/TelemetrySend.sys.mjs:799:18
setup@resource://gre/modules/TelemetrySend.sys.mjs:237:30
setupTelemetry/this._delayedInitTask<@resource://gre/modules/TelemetryControllerParent.sys.mjs:824:36
observe@resource://gre/modules/AsyncShutdown.sys.mjs:576:16After I take a look on the code, I can see that those messages arrive when call the driver.quit() method.
Comment 18•2 years ago
|
||
Most of the crashes here are now related to:
- operations when closing the database. Bug 1834043 will replace a file delete with a truncate, that ideally should be cheaper, though apparently some clients are still crashing on the truncate. I must assume it's really slow mechanical disks at this point.
- wal journal syncing that is causing an fsync, and again the system IO in these cases seems particularly slow. There's also crashes in LocalStorage and IndexedDB, not just Places.
I'm lowering severity, because I'm not sure we can do much when the disk is just painfully slow.
Comment 19•2 years ago
|
||
Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.
For more information, please visit BugBot documentation.
Description
•