Akylas / OSS-DocumentScanner

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

[BUG] Crashes after capturing image on Android 8.1 #226

Open TranslucentFoxHuman opened 6 months ago

TranslucentFoxHuman commented 6 months ago

Version

1.9.0.76

What platform are you using?

Android

OS Version

Android 8.1 (LineageOS 15.1)

What happened?

After taking a picture of the image I want to scan, a "computing..." dialog box appears, and when the processing is complete, the app crashes.
When I restart the app, the captured image is displayed in the list, but tapping on it brings up a dialog box saying "Cannot read properties of null (reading 'image')," preventing me from editing the image.
Furthermore, attempting to add an image from the additional button at the bottom right of the document where this error is displayed results in another dialog box saying "Cannot read properties of undefined (reading 'photo')," preventing me from adding an image.

Relevant log output

05-28 23:35:03.934  3057  4650 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10300000 cmp=com.akylas.documentscanner/.MainActivity} from uid 10034
05-28 23:35:03.974  3057  5157 I ActivityManager: Start proc 21170:com.akylas.documentscanner/u0a163 for activity com.akylas.documentscanner/.MainActivity
05-28 23:35:04.229 21170 21170 W documentscanner: type=1400 audit(0.0:15299): avc: denied { search } for name="overlay" dev="mmcblk0p39" ino=7937 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0
05-28 23:35:04.286 21170 21170 W linker  : "/data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/lib/arm64/libc++_shared.so" unused DT entry: type 0x70000001 arg 0x0
05-28 23:35:06.225 21170 21170 W documentscanner: type=1400 audit(0.0:15300): avc: denied { search } for name="overlay" dev="mmcblk0p39" ino=7937 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0
05-28 23:35:06.249 21170 21170 W documentscanner: type=1400 audit(0.0:15301): avc: denied { search } for name="overlay" dev="mmcblk0p39" ino=7937 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0
05-28 23:35:06.265 21170 21170 W documentscanner: type=1400 audit(0.0:15302): avc: denied { search } for name="overlay" dev="mmcblk0p39" ino=7937 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0
05-28 23:35:08.195  3057  3439 I ActivityManager: Displayed com.akylas.documentscanner/.MainActivity: +4s224ms
05-28 23:35:12.533   417   417 D SurfaceFlinger: duplicate layer name: changing com.akylas.documentscanner/com.akylas.documentscanner.MainActivity to com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#1
05-28 23:35:12.572 21170 21170 I zygote64: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.camera.extensions.impl.InitializerImpl$OnExtensionsInitializedCallback" on path: DexPathList[[zip file "/data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/base.apk"],nativeLibraryDirectories=[/data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/lib/arm64, /data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
05-28 23:35:12.572 21170 21170 I zygote64: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.camera.extensions.impl.InitializerImpl$OnExtensionsInitializedCallback" on path: DexPathList[[zip file "/data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/base.apk"],nativeLibraryDirectories=[/data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/lib/arm64, /data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
05-28 23:35:12.573 21170 21170 I zygote64: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.camera.extensions.impl.InitializerImpl$OnExtensionsInitializedCallback" on path: DexPathList[[zip file "/data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/base.apk"],nativeLibraryDirectories=[/data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/lib/arm64, /data/app/com.akylas.documentscanner-0IE4Kr4opU5jrUPqwm5wlA==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
05-28 23:35:12.651 21170 21170 I chatty  : uid=10163(com.akylas.documentscanner) identical 1 line
05-28 23:35:12.699  2854 11289 I CameraService: CameraService::connect call (PID -1 "com.akylas.documentscanner", camera ID 0) for HAL version default and Camera API version 2
05-28 23:35:12.700  2854 11289 I Camera2ClientBase: Camera 0: Opened. Client: com.akylas.documentscanner (PID 21170, UID 10163)
05-28 23:35:12.804   417   417 D SurfaceFlinger: duplicate layer name: changing com.akylas.documentscanner/com.akylas.documentscanner.MainActivity to com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#2
05-28 23:35:13.283 21170 21276 D ProfileInstaller: Skipping profile installation for com.akylas.documentscanner
05-28 23:35:16.708   417   417 D SurfaceFlinger: duplicate layer name: changing com.akylas.documentscanner/com.akylas.documentscanner.MainActivity to com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#1
05-28 23:35:19.900   417   417 D SurfaceFlinger: duplicate layer name: changing com.akylas.documentscanner/com.akylas.documentscanner.MainActivity to com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#3
05-28 23:35:29.925   417   450 E SurfaceFlinger: Failed to find layer (SurfaceView - com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#0) in layer parent (no-parent).
05-28 23:35:29.925   417   660 E SurfaceFlinger: Failed to find layer (Background for - SurfaceView - com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#0) in layer parent (no-parent).
05-28 23:35:29.950   417   450 E BufferQueueProducer: [SurfaceView - com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#0] dequeueBuffer: BufferQueue has been abandoned
05-28 23:35:29.965   417  1371 E BufferQueueProducer: [SurfaceView - com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#0] queueBuffer: BufferQueue has been abandoned
05-28 23:35:30.008   417  2181 E BufferQueueProducer: [SurfaceView - com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#0] queueBuffer: BufferQueue has been abandoned
05-28 23:35:30.057   417   451 E BufferQueueProducer: [SurfaceView - com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#0] queueBuffer: BufferQueue has been abandoned
05-28 23:35:30.105   417   451 E BufferQueueProducer: [SurfaceView - com.akylas.documentscanner/com.akylas.documentscanner.MainActivity#0] queueBuffer: BufferQueue has been abandoned
05-28 23:35:30.445 21170 21170 E AndroidRuntime: Process: com.akylas.documentscanner, PID: 21170
05-28 23:35:30.484  3057  5167 W ActivityManager:   Force finishing activity com.akylas.documentscanner/.MainActivity
05-28 23:35:30.498  3057  3375 I ActivityManager: Showing crash dialog for package com.akylas.documentscanner u0
05-28 23:35:30.798  2854 23620 I Camera2ClientBase: Closed Camera 0. Client was: com.akylas.documentscanner (PID 21170, UID 10163)
05-28 23:35:30.991  3057  3374 W ActivityManager: Activity pause timeout for ActivityRecord{1676e2b u0 com.akylas.documentscanner/.MainActivity t171 f}
05-28 23:35:36.075  3057  5167 W ActivityManager:   Force finishing activity com.akylas.documentscanner/.MainActivity
05-28 23:35:36.139  3057  5167 I ActivityManager: Killing 21170:com.akylas.documentscanner/u0a163 (adj 906): crash
05-28 23:35:36.145  3057  3375 W ViewRootImpl[documentscanner]: Dropping event due to root view being removed: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=571.0, y[0]=884.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=207911087, downTime=207911070, deviceId=8, source=0x1002 }

Code of Conduct

farfromrefug commented 6 months ago

@TranslucentFoxHuman thanks for the report! could you try 1.9.1? should be fixed there

TranslucentFoxHuman commented 6 months ago

I'm sorry! I forgot to check for the new version. I'm using the IzzyOnDroid version, so I'll check for updates when they become available.

farfromrefug commented 6 months ago

@TranslucentFoxHuman dont be sorry, i am the one sorry for the regression!

virtadpt commented 6 months ago

I'm seeing the same problem with v1.9.1 build 77 (updated yesterday). Android 14, Samsung Galaxy S24+, installed from F-Droid.

TranslucentFoxHuman commented 6 months ago

@TranslucentFoxHuman thanks for the report! could you try 1.9.1? should be fixed there

I updated the app and confirmed that the issue has been resolved! Thank you!

TranslucentFoxHuman commented 6 months ago

I'm seeing the same problem with v1.9.1 build 77 (updated yesterday). Android 14, Samsung Galaxy S24+, installed from F-Droid.

By the way, in my environment, I did not encounter any errors using version 1.9.1 on Android 14. I tested it on Sony Xperia 5 IV and Pixel 3a (LineageOS 21), and did not experience any issues on either device. Shouldn't we separate the issue with Android 14 into a different one?

virtadpt commented 6 months ago

@TranslucentFoxHuman I don't know, because I got the exact same symptoms and error. I'll let somebody with more clue than I opine.

farfromrefug commented 6 months ago

@virtadpt when you say you have the same symptom you mean you get the same error message? Any chance you can share a video of when the error is happening?

virtadpt commented 6 months ago

@farfromrefug Yes. I came here to file this same bug report.

I can try. Never tried to do a screen recording on Android before. Can I DM you a link when I have it?

farfromrefug commented 6 months ago

@virtadpt sure do. You can find me on telegram @farfromrefuge