-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug] Crash on every startup #19232
Comments
Duplicate #19223 |
@kbrosnan The stacktrace looks different though! 🤔 |
Thanks for reopening. |
I'm no able to find any reports on sentry (on any Firefox variants). @klint did you remember the last file or |
We are only storing metadata about downloads when a file is downloaded into a room db, and we restore the metadata on startup: The only that I can think that can grow that big it's the URL of a downloaded file: |
I'm sorry I don't have access to a computer where I could install the drivers to get the logacg logs.. |
When I inspect the download table I found that the add-on provided us with a data URL, and this is what is causing the crash that you are experiencing, the string stored in the download table is to big for your device to handle it when we restore the metadata on startup. |
I opened a bug that will prevent that from happening in the feature mozilla-mobile/android-components#10157. Unfortunately you will have to clear your app data as a workaround to avoid the crash You can find some steps here. |
Thank you for your help and analysis! At least, that will be a good reason for me to give up with collections in Fenix for good. I have lost all of them. Silly me, as I knew they were not synced in any manner. Why do they exist actually? But that is a another story, and another issue! |
One last question though... instead of/in addition to not storing data Urls, why not catching the error at startup rather than letting the app crash? That would save my collections 😊 |
The idea with collection is to give developers an opportunity to test their extensions on Fenix you can read more on this blog post :)
When we store a download metadata with data URLs into the db, we can't load it back to memory this is the exception that you are experiencing, even if we catch the exception we are not going to be able to show the download information in the download screen, as we can load it to memory. |
Sorry for the confusion, I was talking about the collections of sites that are displayed on the home page of Fenix. Add-on collections are quite useful indeed, but I don't see the point for the site collections as they are now (especially as they are not synced).
I was just hoping that by catching the error, I would be able to get my site collections back in a further nightly build (using Fenix beta in the meantime) ;). |
Sorry for the confusion, I'm not that familiar with site collections but I know for sure that somebody on the team can help you to clarify on Matrix: https://chat.mozilla.org/#/room/#fenix:mozilla.org, that it's our public channel. |
Some notes for QA to verify that the issue is fixed. STR:
The downloaded file should be visible in the download page without any crash. |
Followed the steps provided and didn't encounter any crash on Nightly 5/7. |
Firefox nightly suddenly started to crash at every restart (not right after last update yesterday, but for a couple of hours).
android.database.sqIite.SQLiteBIobTooBigException: Row too big to fit into CursorWindow
requiredPos=0, totalRows=75
at
android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at
android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:859)
at
android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
at
android.database.sqIite.SQLiteQuery.fiIIWindow(SQLiteQuery.java:62)
at
android.database.sqIite.SQLiteCursor.fiIIWindow(SQLiteCursor.java:151)
at
android.database.sqIite.SQLiteCursor.getCount(SQLiteCursor.java:139)
at
mozilla.components.feature.downloads.db.DownloadDao_lmpl$10.call(DownloadDao_lmpl.java:10)
at
androidx.room.CoroutinesRoom$Companion$execute$2.invokeSuspend(CoroutinesRoom.kt:2)
at
kotlin.coroutines.jvm.intemal.BaseContinuationlmpl.resumtWith(Continuationlmpl.kt:3)
at
kotlinx.coroutines.DispatchedTask. run(DispatchedTask.kt:15)
at
java. util. concurrent. ThreadPoolExecutor.runWorker
(ThreadPoolExecutor.java:1167)
at
java. util. concurrent. ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Device information
Redmi Note 7 with latest nightly build (210424 17:00).
MIUI 11 Android 9
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: