Skip to content

[BUG] PDF sync stuck in loop when OCR enabled + OCR recalculated on every edit? #550

@Yquas

Description

@Yquas

Which app is your issue for

Document Scanner

Version

v1.16.6

What platform are you using?

Android

OS Version

Android 16

What happened?

When using "Sync document PDFs" with Auto sync and OCR enabled, the resync process gets stuck in a seemingly infinite loop (the date of file creation in my file manager changes to the current time every minute + the colored sync bar under the document in the app keeps hiding and showing) and strains + heats up the device until the app is closed. The same thing happens when manually redoing the OCR or when just changing contrast or anything else.

It also seems like the OCR itself is being recalculated every time anything about the document is changed (though I'm not sure), but that is unnecessary as the app already saves the OCR and makes it accessible with the button on the right side of the single page tab. OCR calculation should only happen with brand new pages, because any other page's OCR can already be manually redone using the OCR button from the toolbar.

Relevant log output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdone

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions