Firefox keeps crashing on Xiaomi phone
Hello,
I've noticed that recently that Firefox seems to repeatedly crash on my Xiaomi phone quite frequently. It's a Xiaomi 15 Pro on HyperOS 3.0.7.0, and here are some of the crash reports:
cde527a0-cc83-48d3-903f-951ad3d8e7e1 java.lang.OutOfMemoryError: Failed to allocate a 113430304 byte allocation with 33554432 free bytes and 97MB until OOM, target footprint 199480736, growth limit 268435456
java.lang.OutOfMemoryError: Failed to allocate a 113430304 byte allocation with 33554432 free bytes and 97MB until OOM, target footprint 199480736, growth limit 268435456
at java.util.Arrays.copyOf(Arrays.java:3785)
at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:211)
at kotlin.io.ByteStreamsKt.readBytes(IOStreams.kt:24)
at mozilla.components.support.images.compose.loader.ImageLoaderKt$fetchAndDecode$2.invokeSuspend(ImageLoader.kt:70)
at mozilla.components.support.images.compose.loader.ImageLoaderKt$fetchAndDecode$2.invoke(ImageLoader.kt:13)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:19)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:78)
at mozilla.components.support.images.compose.loader.ImageLoaderKt$load$bitmap$1.invokeSuspend(ImageLoader.kt:53)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:122)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:4)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:94)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@bf8206, androidx.compose.runtime.BroadcastFrameClock@1cc60c7, StandaloneCoroutine{Cancelling}@a6c06f4, AndroidUiDispatcher@ed57e1d]
e0d3fa76-8868-48e4-8d6e-f66671ba8b50 java.lang.OutOfMemoryError: Failed to allocate a 134217744 byte allocation with 33554432 free bytes and 120MB until OOM, target footprint 176034208, growth limit 268435456
java.lang.OutOfMemoryError: Failed to allocate a 134217744 byte allocation with 33554432 free bytes and 120MB until OOM, target footprint 176034208, 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.components.support.images.compose.loader.ImageLoaderKt$fetchAndDecode$2.invokeSuspend(ImageLoader.kt:70)
at mozilla.components.support.images.compose.loader.ImageLoaderKt$fetchAndDecode$2.invoke(ImageLoader.kt:13)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:19)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:78)
at mozilla.components.support.images.compose.loader.ImageLoaderKt$load$bitmap$1.invokeSuspend(ImageLoader.kt:53)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:122)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:4)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:94)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@f557b89, androidx.compose.runtime.BroadcastFrameClock@7ff878e, StandaloneCoroutine{Cancelling}@8ee2baf, AndroidUiDispatcher@7121bbc]
94125fa2-317a-47de-a689-dc7d3fa5f15e java.lang.OutOfMemoryError: Failed to allocate a 134217744 byte allocation with 31855720 free bytes and 30MB until OOM, target footprint 268435456, growth limit 268435456
java.lang.OutOfMemoryError: Failed to allocate a 134217744 byte allocation with 31855720 free bytes and 30MB until OOM, target footprint 268435456, 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.components.support.images.compose.loader.ImageLoaderKt$fetchAndDecode$2.invokeSuspend(ImageLoader.kt:70)
at mozilla.components.support.images.compose.loader.ImageLoaderKt$fetchAndDecode$2.invoke(ImageLoader.kt:13)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:19)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:78)
at mozilla.components.support.images.compose.loader.ImageLoaderKt$load$bitmap$1.invokeSuspend(ImageLoader.kt:53)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:122)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:4)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:94)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@5cc155a, androidx.compose.runtime.BroadcastFrameClock@402b38b, StandaloneCoroutine{Cancelling}@5cfc68, AndroidUiDispatcher@cef5881]
c31407a8-aa18-4415-839b-a5323a693c3d
java.lang.OutOfMemoryError: Failed to allocate a 134217744 byte allocation with 57411112 free bytes and 54MB until OOM, target footprint 268435456, growth limit 268435456
----
java.lang.OutOfMemoryError: Failed to allocate a 134217744 byte allocation with 57411112 free bytes and 54MB until OOM, target footprint 268435456, 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.components.support.images.compose.loader.ImageLoaderKt$fetchAndDecode$2.invokeSuspend(ImageLoader.kt:70)
at mozilla.components.support.images.compose.loader.ImageLoaderKt$fetchAndDecode$2.invoke(ImageLoader.kt:13)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:19)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:78)
at mozilla.components.support.images.compose.loader.ImageLoaderKt$load$bitmap$1.invokeSuspend(ImageLoader.kt:53)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:122)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:4)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:94)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@46e4c17, androidx.compose.runtime.BroadcastFrameClock@eef9804, StandaloneCoroutine{Cancelling}@36d21ed, AndroidUiDispatcher@1bd822]
Krejt Përgjigjet (2)
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.
Thanks for replying! I have tried the steps you've mentioned but they haven't solved the issue for me. As for the crash report, here's one: https://crash-stats.mozilla.org/report/index/e08dd3d4-f1f4-4c30-91e8-b02c20260323