-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] App crashes and becomes unable to start after importing images #205
Comments
Heard your issue on the large amount of folders/wallpapers. To be honest, I'm kind of at a lost on what to do here. The issue with 50k images is that it breaks SQ-Lite's limit on the 1 mb limit per row (wallpapers are stored in wallpaperUri row per album). 50k image URIs seem to exceed the one million character limit. To fix this, I would probably have to restructure the backend which time is something I'm lacking currently, but I may revisit this at some point. Sincerely my apologies that this isn't higher priority but I would say this is quite an edge case as you mentioned. |
I understand that this is an edge case and it's because of how the database is structured and restructuring it takes a lot of work. However since the app crashes and is unable to recover any data when this limit is reached, it does create a significant issue for users encountering it. To help address this, here are a couple of potential workarounds I can think of that might be easier to implement:
Thank you for considering these solutions, hope there's a helpful answer for you. |
Describe the bug
At first I tried to dump my wallpaper collection with 50,000+ images into the app, after clicking on the "+" button on top right it immediately crashes and is unable to start again until you wipe the data.
Then I tried to import images in smaller portions, a folder of hundereds at a time, but at a certain point I get this bug again. (It only crashes when you have this big album active. If you are on another smaller album, it's fine when you add folders, but the bug triggers after switching to the big album). I haven't found a way to stabily reproduce this problem and so far it doesn't seem to reproduce over a particular image or folder (No crash when I import that folder again). I got the stacktrace and hope you can figure out a way to solve this problem, as it's pretty critical if happened (all user data is lost). Really appreciated.
Crash log when I dump 50000+ images and hit the "+" button:
Crash log in the second case, when I import a small portion of images at a time. this stacktrace is only slightly different:
To Reproduce
The problem seems to be related with having a massive amount of images in an album. Maybe try importing a very large image or a very large amount of images at a time.
Expected behavior
The app should successfully import a large number of files without crashing.
Screenshots
N/A
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: