firefox won't sync, crashes when tryng to sync also crashes frequently wven when trying to scroll a page
After latest update firefox crashes constantly, won't sync bookmarks. Even now that I am trying to write on this page has crashed twice.
All Replies (3)
Hi
I am sorry to hear that Firefox for Android is crashing. I hope that we can help resolve this for you. Before following the steps below, make sure that you have updated both your Android device and Firefox for Android to the latest versions available.
As a first step, close down many of the tabs that you have open to as few as possible. Does this help reduce the incidence of a crash?
If this does not resolve the issue, open the Android Settings app, select Apps then find Firefox in the list. In the section titled Storage and Cache, select the option to clear the cache (do not clear data!). Does this help?
Following that, our developers will need to look into this in more detail with some logs from inside your copy of Firefox for Android. Type about:crashes in the address bar which will display information about recent crashes. If you select the most recent Socorro link, a crash report will open in a new tab. If you could copy and paste the address of the page that opens into a reply to this thread, we will be able to look into this further for you.
I hope that this helps.
Hi, thanks you for your time. To answer your first question, no closing tabs wont help. As I mentioned the problems started after the last update. It crashes with just a single tab open or two or three.
220659a8-6a4a-42a7-916b-94d8ace6969a java.lang.OutOfMemoryError: Failed to allocate a 268435472 byte allocation with 25165824 free bytes and 27MB until OOM, target footprint 264624400, growth limit 268435456
java.lang.OutOfMemoryError: Failed to allocate a 268435472 byte allocation with 25165824 free bytes and 27MB until OOM, target footprint 264624400, growth limit 268435456 at java.util.Arrays.copyOf(Arrays.java:3785) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:120) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:95) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:156) at kotlin.io.ByteStreamsKt.copyTo(IOStreams.kt:19) at kotlin.io.ByteStreamsKt.readBytes(IOStreams.kt:21) at mozilla.appservices.httpconfig.FetchBackend.sendRequest$lambda$3(FetchBackend.kt:6) at mozilla.appservices.httpconfig.FetchBackend.sendRequest(FetchBackend.kt:273) at mozilla.appservices.viaduct.uniffiCallbackInterfaceBackend$sendRequest$callback$$inlined$uniffiAsyncCallback$1.invokeSuspend(viaduct.kt:101) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:122) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:127) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@a8fd1ac, Dispatchers.Default]
The log provided points directly to a java.lang.OutOfMemoryError (OOM).
The app is trying to allocate roughly 268MB of memory all at once during a network request (likely the Sync process), but the system only has about 25MB free.
I suggest
1. The log shows a growth limit of 268435456 (~256MB). First restart your phone this clears out processes in the RAM that might be putting pressure on Firefox and try again.
2. Disable Sync temporarily because the crash happens during a sendRequest in the Sync backend
Uncheck the sync items Bookmarks, History, Tabs and try re-enabling them one at a time to see if one specific is triggering that memory spike.
3. Check for large logins or History, the error log shows Firefox is trying to read into a huge array.
You Sync with Desktop/Laptop? Log into the same Firefox account. Do you have thousands of open tabs synced from another device? Or an unusually large number of saved passwords/bookmarks?