Intermittent crash when opening new tab (private mode)
Categories
(Fenix :: Performance, defect)
Tracking
(Performance Impact:?)
Performance Impact | ? |
People
(Reporter: joelmurphy444, Unassigned)
Details
Steps to reproduce:
During normal usage of browser, usually when a tab is already open.
I always use private mode, so all my tabs are private and new tabs likewise.
Tap the three vertical dots menu in top right, then "new tab".
Actual results:
Very often, regardless of what website I was on or how many tabs I have open, the new tab opens, the cursor moves to the address bar, keyboard opens sometimes, and then Firefox freezes and eventually crashes with a Java out of memory error.
Expected results:
New tab should open and app should not crash.
Reporter | ||
Comment 1•9 days ago
|
||
This has been happening probably for over a year. Only just getting around to filing a bug report. I can attach many crash reports once I figure out how to add them to this from my phone.
Reporter | ||
Comment 2•9 days ago
|
||
This one is the only one I can find right now, but it usually happens a few times per day so from now on I'll make sure to press the submit button so that I can include more of these.
https://crash-stats.mozilla.org/report/index/4b004339-e796-4b7b-820a-fd13b0241025
I can't provide exact reproduction steps as it seems to just randomly happen. Intermittently, but reliably a few times per day.
I am using Firefox Beta, but this has been a problem for at least a year on many versions and channels of Firefox for Android.
Reporter | ||
Comment 3•9 days ago
|
||
Ah, I seem to have found another way to reproduce the same crash.
It happens if I have a text entry field active (flashing caret) and then I tap the address bar. Regardless if the keyboard is open or not.
However this way it freezes forever (to the point where Android asks me if I want to wait or kill the app) and doesn't seem to trigger any crash reporting mechanism most of the time. I might have managed to get one crash report from this one? https://crash-stats.mozilla.org/report/index/b250e4b0-e06d-4e51-a296-5f2bc0241025
Some random pastes from the "share" button in crashes menu:
1e5547d8-1cc9-4dcb-86d5-c3362fd01125
java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 134512 free bytes and 131KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
----
java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 134512 free bytes and 131KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
at android.app.servertransaction.ClientTransaction$1.createFromParcel(ClientTransaction.java:349)
at android.app.servertransaction.ClientTransaction$1.createFromParcel(ClientTransaction.java:347)
at android.os.Parcel.readTypedObject(Parcel.java:4218)
at android.app.IApplicationThread$Stub.onTransact(IApplicationThread.java:1135)
at android.os.Binder.execTransactInternal(Binder.java:1505)
at android.os.Binder.execTransact(Binder.java:1444)
66f4998e-06ad-4cc4-893c-36c40ac428db
java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 143664 free bytes and 140KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
[Note: links for Socorro etc. have already been shared, so I removed them from this]
java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 143664 free bytes and 140KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
at java.lang.Long.valueOf(Long.java:1245)
at com.sun.jna.Memory$MemoryDisposer.run(Memory.java:15)
at com.sun.jna.internal.Cleaner$CleanerRef.clean(Cleaner.java:56)
at com.sun.jna.internal.Cleaner$CleanerThread.run(Cleaner.java:18)
Reporter | ||
Comment 4•9 days ago
|
||
Apologies for the large quantity of comments. Last two crash logs for now:
This one shows as a "native crash" and has more info?!
https://crash-stats.mozilla.org/report/index/835b9258-4d52-4fea-8522-0a7620241025
https://crash-stats.mozilla.org/report/index/1dbbd2e1-9079-4c02-b271-55d4b0241025
Reporter | ||
Comment 5•9 days ago
|
||
I should also add, I do have extensions installed, but I was also able to reproduce this after disabling all my extensions.
Reporter | ||
Comment 6•1 day ago
|
||
(In reply to joelmurphy444 from comment #3)
Ah, I seem to have found another way to reproduce the same crash.
It happens if I have a text entry field active (flashing caret) and then I tap the address bar. Regardless if the keyboard is open or not.
However this way it freezes forever (to the point where Android asks me if I want to wait or kill the app) and doesn't seem to trigger any crash reporting mechanism most of the time. I might have managed to get one crash report from this one? https://crash-stats.mozilla.org/report/index/b250e4b0-e06d-4e51-a296-5f2bc0241025
Some random pastes from the "share" button in crashes menu:
1e5547d8-1cc9-4dcb-86d5-c3362fd01125 java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 134512 free bytes and 131KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC. ---- java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 134512 free bytes and 131KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC. at android.app.servertransaction.ClientTransaction$1.createFromParcel(ClientTransaction.java:349) at android.app.servertransaction.ClientTransaction$1.createFromParcel(ClientTransaction.java:347) at android.os.Parcel.readTypedObject(Parcel.java:4218) at android.app.IApplicationThread$Stub.onTransact(IApplicationThread.java:1135) at android.os.Binder.execTransactInternal(Binder.java:1505) at android.os.Binder.execTransact(Binder.java:1444)
66f4998e-06ad-4cc4-893c-36c40ac428db java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 143664 free bytes and 140KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC. [Note: links for Socorro etc. have already been shared, so I removed them from this] java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 143664 free bytes and 140KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC. at java.lang.Long.valueOf(Long.java:1245) at com.sun.jna.Memory$MemoryDisposer.run(Memory.java:15) at com.sun.jna.internal.Cleaner$CleanerRef.clean(Cleaner.java:56) at com.sun.jna.internal.Cleaner$CleanerThread.run(Cleaner.java:18)
This seems to be a pretty reliable way for me to reproduce it, it happens every time, and doesn't matter whether private browsing or not.
- Open a site e.g google.com
- Open a text field such as the Google search bar, so that the caret flashes in that field
- Tap the address bar
- Crash occurs immediately (well, the address does get highlighted and the X appears at right hand side of address bar, but that's as far as it gets)
Since it's a crash, I was following these report instructions (https://support.mozilla.org/en-US/kb/how-send-crash-report-firefox-android) and selected the General component. Although perhaps it's supposed to be in another category.
Is there anything else I can do to help?
Comment 7•1 day ago
|
||
Looks like an OOM. Not sure if there's anything we can do here since the device ran out of memory. Moving to performance component for a better look. Thanks for reporting this.
Reporter | ||
Comment 8•23 hours ago
|
||
(In reply to Roger Yang [:royang] from comment #7)
Looks like an OOM. Not sure if there's anything we can do here since the device ran out of memory. Moving to performance component for a better look. Thanks for reporting this.
I'm not sure if it's a simple OOM. I think that the actual "crash" and OOM only happens after Android decides to kill it. Hence why most of the time the logs don't seem to be very useful.
I have a feeling (based on the timing of when things freeze, and when android tries to kill it, and then when Firefox "relaunches" but THEN crashes properly (with a crash report notification)) that the running out of memory is a side effect of the problem.
The device is a Pixel 7, it has 8GB RAM and barely anything running in the background, I would have thought it shouldn't really be running out of memory.
If this changes things feel free to recategorise, either way thanks for taking a look :)
Description
•