OSS-DocumentScanner icon indicating copy to clipboard operation
OSS-DocumentScanner copied to clipboard

[BUG] SQLite Disk IO Error

Open GlitchedCod opened this issue 9 months ago • 12 comments

Which app is your issue for

Document Scanner

Version

1.14.3.119

What platform are you using?

Android

OS Version

Android 15 DerpFest ROM

What happened?

When I try to scan a document after the "computing..." loading I get this error (and the image doesn't save) :

Image

Relevant log output

Can't find a log file with Scoop.

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

GlitchedCod avatar Jan 29 '25 08:01 GlitchedCod

@GlitchedCod Those errors usually mean failure to write to disk for some reason (not enough disk space, malfunctioning sdcard...). Are other apps working correctly? If you reset the app does it still happen?

farfromrefug avatar Feb 03 '25 08:02 farfromrefug

@farfromrefug Same error, it even appears when the app start for the first time after all the data and cache being wiped. And now I've lost all my documents even with the backup in the settings. 😅

GlitchedCod avatar Feb 03 '25 10:02 GlitchedCod

@GlitchedCod Wow i am really sorry to hear that. The export settings is only to export setttings, not data... For that you need to use the sync option. I am really really sorry i did not want you to loose any data :s as for your error, seeing you had data before i guess the error was not showing before? And the fact that it happens even right now without any data let me to believe it is something related to disk. You have an sdcard? if so the issue might be there.

Again i am deeply sorry...

farfromrefug avatar Feb 03 '25 13:02 farfromrefug

@farfromrefug No problem, sadly I've also tried to make a backup with Neo Backup and when I try to restore the app data it just doesn't work.

The error wasn't showing before yes, and also before deleting everything I've saw that it worked in another "folder" to add a picture but not on the latest one with 12 pictures inside.

GlitchedCod avatar Feb 03 '25 16:02 GlitchedCod

@GlitchedCod you still have the neo backup? That should at least bring you to a state where you should have your existing data. This is what I do.

You are saying it started to fail with a recent update? Could be a permission issue. I dont understand your point about "another folder" though

farfromrefug avatar Feb 03 '25 17:02 farfromrefug

@farfromrefug The Neo Backup can be restored but the app stills act like it was empty.

Same error with all the permission (camera + all pics).

For the folders it's when you start the app and start taking pictures, you got folders with multiples pictures onto them in the app. I was able to add a new picture onto another folder but not on the folder that I wanted to use (error as shown at the top on the screenshot).

GlitchedCod avatar Feb 04 '25 18:02 GlitchedCod

@GlitchedCod ok maybe your database is corrupted. If you want i can test your backup here. Let me know

What do you mean by Same error with all the permission (camera + all pics).?

farfromrefug avatar Feb 05 '25 08:02 farfromrefug

After I wiped the app data, it would still show the SQLite Disk IO Error 1546 even if I add all the permission in the settings.

GlitchedCod avatar Feb 07 '25 19:02 GlitchedCod

Also I got a lot of personal documents onto the backup of my app so I won't be able to share it with you or if you know how to remove the pictures from the backup I would be glad to send the Neo Backup data that isn't private to you.

GlitchedCod avatar Feb 07 '25 19:02 GlitchedCod

@GlitchedCod yes you can create a new "backup". Maybe try to add a document if you can and share the neo backup!

farfromrefug avatar Feb 08 '25 14:02 farfromrefug

Hi, Sorry for the delay, even with the app completely wiped I still got the same issue. Here is a NeoBackup save that is empty but that got the same crash. com.akylas.documentscanner.zip

GlitchedCod avatar Apr 14 '25 18:04 GlitchedCod

@GlitchedCod awesome thank you. Will try to take a look however not sure when as I am on a 6 months trip without computer

farfromrefug avatar Apr 20 '25 09:04 farfromrefug

Good news ! Everything is working now. It was my custom ROM that was tweaking the keybox I guess, DerpFest based on crDroid that is itself based on LineageOS. In their changelog : "Fixup for banking apps when using keybox spoofing". Maybe a cool feature to add is to choose what keybox would be used. This ticket can now be closed. Thanks for all your hard work, I will see to add your app in the set of FOSS apps that we use at work to deploy on new phone.

GlitchedCod avatar Oct 13 '25 20:10 GlitchedCod