Closed oscar-b closed 7 months ago
Hey - seems like the logs just cut off, there is no tombstone there? Can you post the full logs
Hey - seems like the logs just cut off, there is no tombstone there? Can you post the full logs
I'm on vacation without access to the test device right now, but I'm quite sure that's all there was in the logs. The logs are from adb logcat
so maybe doesn't have it all?
i have same problem in my app one time scan 2 time then crash the android app plz solve my problem
+1 same here
plz solve my problem
@Devyadav3001 lol, plz pay me to solve ur problem
Hey - seems like the logs just cut off, there is no tombstone there? Can you post the full logs
I'm on vacation without access to the test device right now, but I'm quite sure that's all there was in the logs. The logs are from
adb logcat
so maybe doesn't have it all?
Okay yea no I think there should've been something afterwards, because the tombstone isn't there it's just the message that something has crashed.
You see:
--------- beginning of crash
there should also be a end of crash
.
Anyways, have a nice rest of your vacation - let me know if you find the logs when you're back :)
Working on a fix for this issue here: https://github.com/mrousavy/react-native-vision-camera/pull/2494 👀
Still in development, so don't test yet. Long way to go, this is a really complicated issue (as you can see in the changes/Files of that PR)...
Hello,
I have the same kind of error : after reading barcodes using useCodeScanner, the app crashes on Android randomly.
But my logcat is different, so maybe it can help ?
2024-02-02 17:24:41.393 14562-16177 y-package com.my-package W Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
2024-02-02 17:24:41.394 14562-16177 y-package com.my-package W Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
2024-02-02 17:24:41.509 14562-16178 y-package com.my-package W Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
2024-02-02 17:24:41.509 14562-16178 y-package com.my-package W Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
2024-02-02 17:24:41.531 14562-14562 CameraSession com.my-package I PreviewView Surface destroyed! Surface(name=null)/@0x77e9c8c
2024-02-02 17:24:41.531 14562-14562 CameraSession com.my-package I Destroying Preview Output...
2024-02-02 17:24:41.534 14562-14562 CameraSession com.my-package I configure { ... }: Waiting for lock...
2024-02-02 17:24:41.534 14562-14562 CameraSession com.my-package I configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=false, outputsChanged=true, sidePropsChanged=true, isActiveChanged=false)
2024-02-02 17:24:41.534 14562-14562 CameraSession com.my-package I Destroying previous outputs...
2024-02-02 17:24:41.534 14562-14562 SurfaceOutput com.my-package I Closing BarcodeScanner..
2024-02-02 17:24:41.536 14562-14562 CameraView com.my-package I invokeOnStopped()
2024-02-02 17:24:41.543 14562-14562 CameraSession com.my-package I Creating outputs for Camera #0...
2024-02-02 17:24:41.548 14562-14562 CameraSession com.my-package I Adding 1280x720 CodeScanner Output in YUV_420_888...
2024-02-02 17:24:41.554 14562-14562 CreateCaptureSession com.my-package I Camera #0: Creating Capture Session #3... (Hardware Level: 3 | Outputs: [VIDEO (1280 x 720 CodeScanner for [CODE_128] (35))])
2024-02-02 17:24:41.555 14562-14562 CreateCaptureSession com.my-package I Using new API (>=28)
2024-02-02 17:24:41.566 14562-16008 BufferQueueProducer com.my-package E [ImageReader-1280x720f23m2-14562-1] queueBuffer: BufferQueue has been abandoned
2024-02-02 17:24:41.608 14562-16008 BufferQueueProducer com.my-package E [ImageReader-1280x720f23m2-14562-1] queueBuffer: BufferQueue has been abandoned
2024-02-02 17:24:41.645 14562-16008 BufferQueueProducer com.my-package E [ImageReader-1280x720f23m2-14562-1] queueBuffer: BufferQueue has been abandoned
2024-02-02 17:24:41.742 14562-16186 BufferQueueProducer com.my-package E [ImageReader-1280x720f23m2-14562-1] queueBuffer: BufferQueue has been abandoned
2024-02-02 17:24:41.757 14562-16179 libc com.my-package A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7b673b59c0 in tid 16179 (pool-11-thread-), pid 14562 (y-packages)
2024-02-02 17:24:41.814 14562-16099 CreateCaptureSession com.my-package I Camera #0: Successfully created CameraCaptureSession #3!
2024-02-02 17:24:41.815 14562-16099 CreateCaptureSession com.my-package I Camera #0: CameraCaptureSession #2 has been closed.
2024-02-02 17:24:41.815 14562-14562 CameraSession com.my-package I Successfully configured Session with 1 outputs for Camera #0!
2024-02-02 17:24:41.815 14562-16099 CameraSession com.my-package I Camera Session android.hardware.camera2.impl.CameraCaptureSessionImpl@8a05784 has been closed.
2024-02-02 17:24:41.821 14562-14562 CameraView com.my-package I invokeOnStarted()
2024-02-02 17:24:41.822 14562-14562 CameraSession com.my-package I Successfully updated CameraSession Configuration! isActive: true
2024-02-02 17:24:41.822 14562-14562 CameraSession com.my-package I Preview Output destroyed!
2024-02-02 17:24:41.875 14562-14562 CameraView com.my-package I Updating CameraSession...
2024-02-02 17:24:41.876 14562-16099 CameraSession com.my-package I configure { ... }: Waiting for lock...
2024-02-02 17:24:41.876 14562-16099 CameraSession com.my-package I configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=true, outputsChanged=true, sidePropsChanged=true, isActiveChanged=true)
2024-02-02 17:24:41.876 14562-16099 CameraSession com.my-package I isActive is false, skipping CameraDevice configuration.
2024-02-02 17:24:41.876 14562-16099 CameraSession com.my-package I isActive is false, skipping CameraCaptureSession configuration.
2024-02-02 17:24:41.876 14562-16099 CameraView com.my-package I invokeOnStopped()
2024-02-02 17:24:41.878 14562-16099 CameraSession com.my-package I Successfully updated CameraSession Configuration! isActive: false
2024-02-02 17:24:41.878 14562-16099 CameraView com.my-package I invokeOnInitialized()
2024-02-02 17:24:41.886 14562-16186 ViewRootIm...nActivity] com.my-package D windowFocusChanged hasFocus=false inTouchMode=true
2024-02-02 17:24:41.886 14562-16188 ViewRootIm...nActivity] com.my-package D windowFocusChanged hasFocus=true inTouchMode=true
---------------------------- PROCESS STARTED (16211) for package com.my-package ----------------------------
2024-02-02 17:24:41.886 14562-14562 CameraSession com.my-package I Closing CameraSession...
2024-02-02 17:24:41.886 14562-14562 CameraSession com.my-package I Destroying session..
2024-02-02 17:24:41.901 16193-16193 DEBUG crash_dump64 A pid: 14562, tid: 16179, name: pool-11-thread- >>> com.my-package <<<
2024-02-02 17:24:42.015 14562-14562 SurfaceOutput com.my-package I Closing BarcodeScanner..
2024-02-02 17:24:42.016 14562-14562 CameraSession com.my-package I CameraSession closed!
2024-02-02 17:24:42.017 14562-16059 CameraDevices com.my-package I Camera #0 is now available.
2024-02-02 17:24:42.027 14562-14562 OnePlusJankManager com.my-package D Chor uploadMDM JANK_TYPE_ONCE mViewTitle = com.my-package/com.my-package.MainActivity--- jank level = 2
2024-02-02 17:24:42.032 16193-16193 DEBUG crash_dump64 A #35 pc 0000000000148082 [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.android.gms.internal.mlkit_vision_barcode.zza.zzb+14)
2024-02-02 17:24:42.032 16193-16193 DEBUG crash_dump64 A #38 pc 0000000000169fce [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.android.gms.internal.mlkit_vision_barcode.zzvt.zzd+22)
2024-02-02 17:24:42.032 16193-16193 DEBUG crash_dump64 A #41 pc 000000000023ff72 [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.vision.barcode.internal.zzn.zza+206)
2024-02-02 17:24:42.032 16193-16193 DEBUG crash_dump64 A #44 pc 000000000023f300 [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.vision.barcode.internal.zzk.zze+24)
2024-02-02 17:24:42.032 16193-16193 DEBUG crash_dump64 A #47 pc 000000000023f2cc [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.vision.barcode.internal.zzk.run+4)
2024-02-02 17:24:42.032 16193-16193 DEBUG crash_dump64 A #50 pc 0000000000242946 [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.vision.common.internal.MobileVisionBase.zza+22)
2024-02-02 17:24:42.033 16193-16193 DEBUG crash_dump64 A #53 pc 0000000000242e3c [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.vision.common.internal.zza.call+8)
2024-02-02 17:24:42.033 16193-16193 DEBUG crash_dump64 A #56 pc 00000000002387e2 [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.common.sdkinternal.ModelResource.zza+74)
2024-02-02 17:24:42.033 16193-16193 DEBUG crash_dump64 A #59 pc 000000000023d33c [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.common.sdkinternal.zzn.run+20)
2024-02-02 17:24:42.033 16193-16193 DEBUG crash_dump64 A #62 pc 000000000023d50c [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.common.sdkinternal.zzt.run+20)
2024-02-02 17:24:42.033 16193-16193 DEBUG crash_dump64 A #65 pc 000000000023851a [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.common.sdkinternal.MlKitThreadPool.zze+26)
2024-02-02 17:24:42.033 16193-16193 DEBUG crash_dump64 A #68 pc 00000000002384bc [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzc+16)
2024-02-02 17:24:42.033 16193-16193 DEBUG crash_dump64 A #71 pc 000000000023d224 [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.common.sdkinternal.zzk.run+4)
2024-02-02 17:24:42.033 16193-16193 DEBUG crash_dump64 A #80 pc 00000000002384e8 [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzd+20)
2024-02-02 17:24:42.033 16193-16193 DEBUG crash_dump64 A #83 pc 000000000023d1a8 [anon:dalvik-classes16.dex extracted in memory from /data/app/com.my-package-Agj926jcIEhJV3r0TiJjEg==/base.apk!classes16.dex] (com.google.mlkit.common.sdkinternal.zzi.run+4)
2024-02-02 17:24:42.035 3935-3935 GoogleInpu...hodService com...gle.android.inputmethod.latin I GoogleInputMethodService.onStartInput():1894 onStartInput(EditorInfo{EditorInfo{packageName=com.my-package, inputType=0, inputTypeString=NULL, enableLearning=false, autoCorrection=false, autoComplete=false, imeOptions=0, privateImeOptions=null, actionName=UNSPECIFIED, actionLabel=null, initialSelStart=-1, initialSelEnd=-1, initialCapsMode=0, label=null, fieldId=-1, fieldName=null, extras=null, hintText=null, hintLocales=[]}}, false)
2024-02-02 17:24:42.330 1615-16233 ActivityTaskManager system_server W Force finishing activity com.my-package/.MainActivity
2024-02-02 17:24:42.333 1615-16234 FrameworkEventCollector system_server D recordAppIssue PN: com.my-package
2024-02-02 17:24:42.356 14562-16188 ViewRootIm...nActivity] com.my-package D windowFocusChanged hasFocus=false inTouchMode=true
2024-02-02 17:24:42.365 1615-1778 ActivityManager system_server I Showing crash dialog for package com.my-package u0
2024-02-02 17:24:42.487 1615-2524 InputDispatcher system_server W channel '4f3d0f com.my-package/com.my-package.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
---------------------------- PROCESS ENDED (14562) for package com.my-package ----------------------------
Vision Camera : 3.8.2 React native : 0.73.3
Hello there ! I'm also using the package for my RN app, and I'm facing the same issue on my Android when trying to scan a QR code. On IOS, everything works as expected, but on Android the app crashes sadly.
It looks like the issue is more complicated than expected... @oscar-b the commit you've mentioned (https://github.com/mrousavy/react-native-vision-camera/pull/2494), is it almost finished or not at all ?
In the documentation, the usage of MLKit is also mentioned but not really how to install it. I've read the official documentation of Google, but just to make sure I'm not missing a dependencies or something else, I'm asking you if it could come from there ?
Thank you for your time all !
Just released VisionCamera 3.9.0-beta.1, which includes the big PersistentCaptureSession
PR that aims to fix all the blackscreen issues.... :eyes::tada:
You can try that new beta out yourself and let me know if you still encounter blackscreen issues. I'll continue to test on more devices in the meantime, organize the code a bit better, and then I'll tackle the preview stretching, focus, and flash issues!
If that fixes the blackscreen issues for you, please consider sponsoring me on GitHub to say thanks! ❤️
What's happening?
After reading barcodes using
useCodeScanner
the app crashes on Android.Tried with both default
pixelFormat
andyuv
as you suggested.Reproduceable Code
Relevant log output
Camera Device
Device
Android Motorola Defy (Android 11)
VisionCamera Version
3.8.2
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