[Bug] Crashes when importing backup
Describe the bug Photok crashes during the restoring part of the import backup
To Reproduce Steps to reproduce the behavior:
- Open a blank install of photok
- Import backup
- Validate and wait
- App crashes
Expected behavior Fully importing the backup with no crashes.
Screenshots
For some reason, it seems to always crash when hitting exactly 5GB of used storage (without counting cache).
Smartphone (please complete the following information):
- Device: Samsung A56
- OS: Android 15
- Browser: Firefox Nightly
- Version 1.9.3
Additional context The file backup doesn't seem to be corrupted since it validates successfully, and it's not lack of storage either since this phone is brand new and has a lot of space left.
(please help me I don't wanna have to transfer everything manually)
Interesting. Can you share the amount of memory of your device?
Interesting. Can you share the amount of memory of your device?
Memory as in RAM? If yes I got 8GB
Okay.
So what exactly do you mean by 5GB storage.
Are you restoring and after the crash the app says it has 5Gb of storage used? So it crashes when reaching 5GB of the backup?
Are you restoring and after the crash the app says it has 5Gb of storage used? So it crashes when reaching 5GB of the backup?
Yea most likely, I tried wiping all of the app’s data then tried importing again and once it crashed, it was again at 5GB
Are you able to open the Zip file with a normal file browser. This should be possible and you should see a bunch of .photok files and a meta.json
yep I can
Okay, so the file is not corrupted.
I will need to try to reproduce this.
ya got any success ? On my end I tried picking up logs with LogFox but got no output
Pretty sure this is also related to the issue of #462 Did you check the .tn and .vp files? If any of them have size 0 its the same problem
Yea apparently there's seems to be, does that mean i gotta delete any files i had saved that are affected by this ?
I just released version 1.9.4. This will skip those files in a backup (only thumbnail and video preview).
In the case of missing thumbnail or video preview you can export and import the file
Please let me know if this fixes your crashes
ya i'll try as soon as it's up on fdroid
@claymorwan did it work for you?