Closed shravanETS closed 6 months ago
I need log output for this. ADB does also log in production, no?
I need log output for this. ADB does also log in production, no?
firebase-crashlytics-stacktrace.txt
It's found in production, so I have the Firebase stack trace. I can't reproduce it in development.
This is just the tombstone/stacktrace, are there any logs? I need to know what happened before this crash.
0 | Wed Apr 10 2024 16:10:40 GMT+0530 (India Standard Time) | screen_view (MainActivity) 1 | Wed Apr 10 2024 16:10:45 GMT+0530 (India Standard Time) | mounted screen: SplashScreen 2 | Wed Apr 10 2024 16:10:51 GMT+0530 (India Standard Time) | mounted screen: HomeScreen 3 | Wed Apr 10 2024 16:10:52 GMT+0530 (India Standard Time) | screen_view (HomeScreen) 4 | Wed Apr 10 2024 16:11:03 GMT+0530 (India Standard Time) | Click on Scan 5 | Wed Apr 10 2024 16:11:03 GMT+0530 (India Standard Time) | mounted screen: ScanScreen 6 | Wed Apr 10 2024 16:11:04 GMT+0530 (India Standard Time) | screen_view (ScanScreen) 7 | Wed Apr 10 2024 16:11:30 GMT+0530 (India Standard Time) | Code Scanner Start 8 | Wed Apr 10 2024 16:11:31 GMT+0530 (India Standard Time) | Code Scanner Complete
When Code Scanner Start we show the loader ( modal )
When Code Scanner Complete we close the loader ( modal )
I have the same issue on Android 13 Oppo A18
Fatal Exception: java.lang.IllegalStateException: Image is already closed
at android.media.Image.throwISEIfImageIsInvalid(Image.java:79)
at android.media.ImageReader$SurfaceImage.getFormat(ImageReader.java:1158)
at com.google.mlkit.vision.common.InputImage.zzb(com.google.mlkit:vision-common@@17.3.0:8)
at com.google.mlkit.vision.common.InputImage.fromMediaImage(com.google.mlkit:vision-common@@17.3.0:1)
at com.mrousavy.camera.core.CodeScannerPipeline._init_$lambda$4(CodeScannerPipeline.kt:53)
at com.mrousavy.camera.core.CodeScannerPipeline.$r8$lambda$J9uS5V_QrF4Y46dODUvYa6w1Wm0()
at com.mrousavy.camera.core.CodeScannerPipeline$$ExternalSyntheticLambda0.onImageAvailable(:4)
at android.media.ImageReader$1.run(ImageReader.java:916)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.os.HandlerThread.run(HandlerThread.java:67)
Hey - I think this issue has been fixed in VisionCamera 4.0.0. 🥳
Please try V4 and let me know if you still experience this issue;
Version 4 has different dependencies with who knows what side effects. A simple try/catch around the CodeScannerPipeline lambda would probably fix this issue even in V3.
A simple try/catch around the CodeScannerPipeline lambda would probably fix this issue even in V3.
A PR would be much appreciated :)
What's happening?
I received an error in production and encountered a crash in Firebase Crashlytics. However, when I attempted to reproduce it, I couldn't replicate the crash.
Below device and version affected :
Reproduceable Code
Relevant log output
Camera Device
Device
Vivo, Oppo , Xiaomi
VisionCamera Version
4.0.0-beta.10
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information