Akylas / OSS-DocumentScanner

Android document document scanning app
https://www.akylas.fr
MIT License
607 stars 22 forks source link

[BUG] cannot continue after taking photo #163

Closed xxyxxyxyx1 closed 1 month ago

xxyxxyxyx1 commented 3 months ago

Version

F-Droid IzzyOnDroid 1.4.15.56

What platform are you using?

Android

OS Version

Pixel 8 Pro, android 14, march 5 2024 update

What happened?

After a photo is taken (in manual or automatic mode), there is a popup that says: Cannot read properties of null (reading 'unshift')

The only option to close the popup is OK. When I tap the checkmark to continue, the popup happens again. I cannot proceed.

Relevant log output

No response

Code of Conduct

farfromrefug commented 3 months ago

@xxyxxyxyx1 sorry for the latest answer. Can you tell me if this is still happening with latest version? Any chance to get a logcat once the error happens? Thanks

xxyxxyxyx1 commented 3 months ago

It's still the same behavior now in version 1.5.4.61.

I am not a developer and do not know what to do with logcat. But if you can provide an exact adb command to run, I can provide the output.

farfromrefug commented 3 months ago

@xxyxxyxyx1 ok so just run the app, reproduce the issue. Then use adb logcat to get the current logcat. content. You can call adb logcat -c to clear the logcat before reproducing the issue. Then share the content returned by adb logcat Thanks

xxyxxyxyx1 commented 3 months ago

It is attached logcat.txt

farfromrefug commented 3 months ago

@xxyxxyxyx1 sadly i dont see anything in the log. Could you try this build https://github.com/Akylas/OSS-DocumentScanner/releases/tag/test_android? I should even receive a bug report directly

xxyxxyxyx1 commented 3 months ago

done

farfromrefug commented 3 months ago

@xxyxxyxyx1 did you restart the app after the crash? (to ensure the log is sent)

xxyxxyxyx1 commented 3 months ago

I have caused the bug more than once. The app does not actually crash when the bug happens. After I press "OK" on the error popup, I can continue using the app. I just cannot continue in the scanning process.

farfromrefug commented 3 months ago

@xxyxxyxyx1 ok got the error! But to me here the erorr is Cannot read properties of null (reading 'length') is that what you see?

farfromrefug commented 3 months ago

@xxyxxyxyx1 ok so i made a fix where it should not give an error for you anymore. Though there is still something wrong. Could you test that build again that i updated https://github.com/Akylas/OSS-DocumentScanner/releases/tag/test_android ? You should not see an error but i should still get a report with more details allowing to understand why it fails for you

xxyxxyxyx1 commented 3 months ago

It seems to work now with the new version. I am able to take a photo and export a PDF.

I have not observed an error including the text "(reading 'length')"

In brief testing, I found two other problems, but they seem unrelated:

farfromrefug commented 3 months ago

@xxyxxyxyx1 it does not fail for you anymore but the issue is still there. But i got the correct bug report from you now and i can investigate it ! thanks a lot.

Could you open new issues for the other 2 with more details? I dont understand what you mean by he app chose only 1 paragraph on the page . are you talking about OCR? Please explain in details with screenshots if relevant. And the second one maybe a screenshot of the dialog with the wrong text could help. Thanks

catfluoride commented 1 month ago

Just a +1, as the same is happening for me; test_android version works fine.

farfromrefug commented 1 month ago

@catfluoride are you seeing an error message? if so what is it? Or does it simply crash?

catfluoride commented 1 month ago

@catfluoride are you seeing an error message? if so what is it? Or does it simply crash?

Hi! I got an error message similar to that of OP: Cannot read properties of null ("reading 'image')

farfromrefug commented 1 month ago

@catfluoride ok this one is a regression in latest release. I am on it. Sorry!

catfluoride commented 1 month ago

@catfluoride ok this one is a regression in latest release. I am on it. Sorry!

No need to apologize, man. You created a wonderful app. Thank you for your hard work!

farfromrefug commented 1 month ago

@catfluoride should be fixed in new release (only on github for now)

catfluoride commented 1 month ago

@catfluoride should be fixed in new release (only on github for now)

Indeed. It works perfectly now. Thanks a lot! heart