-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 App crash using QR scanner (useCodeScanner) #2341
Comments
Same here on Xiaomi Redmi Note 10 and weirdly only happening when navigating aways from the camera. 3.6.16 |
I have the same problem. Sometimes, especially when the qr is in front of the camera before opening, the application crashes. Does anyone know what might be the problem? It should read qr information and navigate to another screen. Happened on both pc emulators and real devices. |
isActive should start as false initially. And try use |
@mrousavy I'm still facing the same issue in v3.7.0 |
Hm weird. There's nothing I can do without having adb logcat logs though. The logs shared here look like a tombstone, but there's no symbols in here (aka no filenames or stack traces). I either need a crash with symbols ("symbolicated stacktrace"/tombstone), or the full adb logcat logs. |
@mrousavy I share you the full adb logcat logs (I exported from Android Studio) and a video of what I was doing. If you need something else let me know. The code I was using is this (with the version 3.7.0) import {useFocusEffect} from '@react-navigation/native';
import React, {useCallback, useEffect} from 'react';
import {StyleSheet, Text} from 'react-native';
import {
Camera,
useCameraDevice,
useCameraPermission,
useCodeScanner,
} from 'react-native-vision-camera';
export default function CamaraScreen(props: any) {
const [isActive, setIsActive] = React.useState(true);
const [isMount, setIsMount] = React.useState(true);
const {hasPermission, requestPermission} = useCameraPermission();
const device = useCameraDevice('back');
useFocusEffect(
useCallback(() => {
console.log('Camera is mounted');
setIsMount(true);
return () => {
console.log('Camera is unmounted');
setIsMount(false);
};
}, []),
);
useEffect(() => {
if (!hasPermission) {
console.log(requestPermission());
}
}, [hasPermission, requestPermission]);
const codeScanner = useCodeScanner({
codeTypes: ['qr', 'ean-13'],
onCodeScanned: codes => {
//setIsActive(false);
console.log(codes[0].value);
props.navigation.navigate('ANOTHER_SCREEN'); // <-- crash
},
});
if (device == null || !hasPermission) {
return <Text>HasPermission False</Text>;
}
return isMount ? (
<Camera
style={styles.camera}
device={device}
isActive={isActive}
audio={false}
photo={false}
video={false}
codeScanner={codeScanner}
/>
) : null;
}
const styles = StyleSheet.create({
camera: {
width: 680,
height: 680,
},
}); Screen_Recording_20240110_023240_One.UI.Home.mp4 |
Thanks for the detailed info! The log format is a bit weird (json instead of just logs), but I can work with that. I just wonder if the crash is because of some call in the Lines 42 to 66 in 2b10622
..or because of something in the CameraSession itself. One thing you could try is to wrap the method linked above in try catch statements: imageReader.setOnImageAvailableListener({ reader ->
try {
val image = reader.acquireNextImage() ?: return@setOnImageAvailableListener
if (isBusy) {
// We're currently executing on a previous Frame, so we skip this one.
// Close it and free it again, so that the Camera does not stall.
image.close()
return@setOnImageAvailableListener
}
isBusy = true
// TODO: Get correct orientation
val inputImage = InputImage.fromMediaImage(image, Orientation.PORTRAIT.toDegrees())
scanner.process(inputImage)
.addOnSuccessListener { barcodes ->
try {
if (barcodes.isNotEmpty()) {
callback.onCodeScanned(barcodes, CodeScannerFrame(inputImage.width, inputImage.height))
}
} catch (e: Throwable) {
Log.e("VisionCamera", "Success callback threw an error!", e)
}
}
.addOnFailureListener { error ->
try {
callback.onError(error)
} catch (e: Throwable) {
Log.e("VisionCamera", "Failure callback threw an error!", e)
}
}
.addOnCompleteListener {
try {
image.close()
isBusy = false
} catch (e: Throwable) {
Log.e("VisionCamera", "Completion callback threw an error!", e)
}
}
} catch (e: Throwable) {
Log.e("VisionCamera", "CodeScanner threw an error!", e)
}
}, CameraQueues.videoQueue.handler) And then see what happens. It seems like this is a SIGSEV tho, so a C++ error that cannot really be caught. Might even be an issue in the Google MLKit barcode scanner library 🤔 |
@mrousavy
|
@mrousavy sorry for the format haha. Well now I copied the logs using Flipper and this is the output, but I didn't see any error log of the try catch statements in the output :( In other hand, in the section of Crash Reporter of Flipper I saw reports related to SIGSEGV First report Second report Third report EDIT: This time I use the emulator for the test. EDIT 2: The app crashed at the third time I navigated to the screen where the camera component is located. |
Same problem. |
Camera version 3.7.1 Camera screen has button with navigation to another screen pressed causes app crashes. logcat01-14 16:41:26.259 14621 14640 W et.felinger.tm: JNI critical lock held for 30.703ms on Thread[15,tid=14640,Runnable,Thread*=0xdde13410,peer=0x13a00538,"Binder:14621_2"]
01-14 16:41:28.046 540 1163 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
01-14 16:41:28.046 540 1163 I chatty : uid=1000(system) Binder:540_A identical 1 line
01-14 16:41:28.046 540 1163 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
01-14 16:41:28.070 14621 14682 W unknown:ReactNative: Attempt to set local data for view with unknown tag: -1
01-14 16:41:28.071 14621 14682 W unknown:ReactNative: Attempt to set local data for view with unknown tag: -1
01-14 16:41:28.471 14621 14621 I CameraSession: PreviewView Surface destroyed! Surface(name=null)/@0x81ab69a
01-14 16:41:28.471 14621 14621 I CameraSession: Destroying Preview Output...
01-14 16:41:28.515 14621 14621 I CameraSession: configure { ... }: Waiting for lock...
01-14 16:41:28.515 14621 14621 I CameraSession: configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=false, outputsChanged=true, sidePropsChanged=true, isActiveChanged=false)
01-14 16:41:28.515 14621 14621 I CameraSession: Destroying previous outputs...
01-14 16:41:28.515 14621 14621 I SurfaceOutput: Closing BarcodeScanner..
01-14 16:41:28.520 14621 14621 I CameraView: invokeOnStopped()
01-14 16:41:28.525 14621 14621 I CameraSession: Creating outputs for Camera #0...
01-14 16:41:28.526 14621 14640 E BufferQueueProducer: [ImageReader-1280x720f23m2-14621-0](id:391d00000000,api:4,p:394,c:14621) queueBuffer: BufferQueue has been abandoned
01-14 16:41:28.526 14621 14621 I CameraSession: Adding 1280x720 CodeScanner Output in YUV_420_888...
01-14 16:41:28.527 394 495 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -19
01-14 16:41:28.527 394 495 E Camera3-OutputStream: returnBufferCheckedLocked: Stream 1: Error queueing buffer to native window: No such device (-19)
01-14 16:41:28.528 14621 14640 E BufferQueueProducer: [ImageReader-1280x720f23m2-14621-0](id:391d00000000,api:4,p:394,c:14621) dequeueBuffer: BufferQueue has been abandoned
01-14 16:41:28.529 394 14712 E Camera3-OutputStream: getBufferLockedCommon: Stream 1: Can't dequeue next output buffer: No such device (-19)
01-14 16:41:28.541 14621 14621 I CreateCaptureSession: Camera #0: Creating Capture Session #2... (Hardware Level: 0 | Outputs: [VIDEO (1280 x 720 CodeScanner for [QR, EAN_13] (35))])
01-14 16:41:28.541 14621 14621 I CreateCaptureSession: Using new API (>=28)
01-14 16:41:28.542 394 5827 E CameraDeviceClient: cancelRequest: Camera 0: Canceling request ID 0 doesn't match current request ID -1
01-14 16:41:28.548 14621 14714 D TransportRuntime.SQLiteEventStore: Storing event with priority=DEFAULT, name=FIREBASE_ML_SDK for destination cct
01-14 16:41:28.559 14621 14714 D TransportRuntime.JobInfoScheduler: Upload for context TransportContext(cct, DEFAULT, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) is already scheduled. Returning...
01-14 16:41:28.585 394 1483 I CameraLatencyHistogram: Stream 0 dequeueBuffer latency histogram (71) samples:
01-14 16:41:28.585 394 1483 I CameraLatencyHistogram: 5 10 15 20 25 30 35 40 45 inf (max ms)
01-14 16:41:28.585 394 1483 I CameraLatencyHistogram: 29.58 2.82 1.41 1.41 1.41 2.82 1.41 5.63 9.86 43.66 (%)
01-14 16:41:28.585 394 1483 I CameraLatencyHistogram: Stream 0 latency histogram for wait on max_buffers (1) samples:
01-14 16:41:28.585 394 1483 I CameraLatencyHistogram: 33 66 99 132 165 198 231 264 297 inf (max ms)
01-14 16:41:28.585 394 1483 I CameraLatencyHistogram: 100.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 (%)
01-14 16:41:28.587 394 735 I CameraLatencyHistogram: Stream 1 dequeueBuffer latency histogram (71) samples:
01-14 16:41:28.587 394 735 I CameraLatencyHistogram: 5 10 15 20 25 30 35 40 45 inf (max ms)
01-14 16:41:28.587 394 735 I CameraLatencyHistogram: 94.37 4.23 1.41 0.00 0.00 0.00 0.00 0.00 0.00 0.00 (%)
01-14 16:41:28.598 14621 14717 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xae311e42 in tid 14717 (pool-6-thread-1), pid 14621 (et.felinger.tmc)
01-14 16:41:28.604 394 735 E Camera3-Device: configureStreams: Stream 2: DataSpace override not allowed for format 0x23
01-14 16:41:28.624 394 735 D Camera3-Device: Set real time priority for request queue thread (tid 14712)
01-14 16:41:28.626 14621 14703 I CreateCaptureSession: Camera #0: Successfully created CameraCaptureSession #2!
01-14 16:41:28.627 14621 14621 I CameraSession: Successfully configured Session with 1 outputs for Camera #0!
01-14 16:41:28.685 14725 14725 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
01-14 16:41:28.688 283 283 I tombstoned: received crash request for pid 14717
01-14 16:41:28.688 14725 14725 I crash_dump32: performing dump of process 14621 (target tid = 14717)
01-14 16:41:28.696 14725 14725 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-14 16:41:28.696 14725 14725 F DEBUG : Build fingerprint: 'google/sdk_gphone_x86/generic_x86_arm:11/RSR1.201013.001/6903271:user/release-keys'
01-14 16:41:28.696 14725 14725 F DEBUG : Revision: '0'
01-14 16:41:28.696 14725 14725 F DEBUG : ABI: 'x86'
01-14 16:41:28.696 14725 14725 F DEBUG : Timestamp: 2024-01-14 16:41:28+0700
01-14 16:41:28.696 14725 14725 F DEBUG : pid: 14621, tid: 14717, name: pool-6-thread-1 >>> net.felinger.tmc <<<
01-14 16:41:28.696 14725 14725 F DEBUG : uid: 10179
01-14 16:41:28.696 14725 14725 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xae311e42
01-14 16:41:28.696 14725 14725 F DEBUG : eax 00007e42 ebx ae30a000 ecx 00000000 edx ae55e340
01-14 16:41:28.696 14725 14725 F DEBUG : edi 00000500 esi ae55e340
01-14 16:41:28.696 14725 14725 F DEBUG : ebp ae55e128 esp ae55e0c0 eip ada4a0df
01-14 16:41:28.719 306 348 D goldfish-address-space: claimShared: Ask to claim region [0x3f2f8a000 0x3f30dc000]
01-14 16:41:28.724 14621 14680 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
01-14 16:41:28.733 14621 14621 I CameraView: invokeOnStarted()
01-14 16:41:28.739 14621 14621 I CameraSession: Successfully updated CameraSession Configuration! isActive: true
01-14 16:41:28.749 14621 14621 I CameraSession: Preview Output destroyed!
01-14 16:41:28.760 14621 14621 I CameraView: Updating CameraSession...
01-14 16:41:28.765 14621 14703 I CameraSession: configure { ... }: Waiting for lock...
01-14 16:41:28.767 14621 14703 I CameraSession: configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=false, outputsChanged=false, sidePropsChanged=false, isActiveChanged=false)
01-14 16:41:28.767 14621 14703 I CameraSession: Successfully updated CameraSession Configuration! isActive: true
01-14 16:41:28.801 306 348 D goldfish-address-space: claimShared: Ask to claim region [0x3f3a63000 0x3f3bb5000]
01-14 16:41:28.826 14621 14621 I CameraView: Updating CameraSession...
01-14 16:41:28.827 14621 14703 I CameraSession: configure { ... }: Waiting for lock...
01-14 16:41:28.828 14621 14703 I CameraSession: configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=true, outputsChanged=true, sidePropsChanged=true, isActiveChanged=true)
01-14 16:41:28.828 14621 14703 I CameraSession: isActive is false, skipping CameraDevice configuration.
01-14 16:41:28.828 14621 14703 I CameraSession: isActive is false, skipping CameraCaptureSession configuration.
01-14 16:41:28.828 14621 14703 I CameraView: invokeOnStopped()
01-14 16:41:28.903 353 379 E SurfaceFlinger: setDesiredDisplayConfigSpecs: failed to call setDesiredDisplayConfigSpecs: -22
01-14 16:41:28.903 540 560 E SurfaceFlinger: setDesiredDisplayConfigSpecs failed to transact: -22
01-14 16:41:28.918 14621 14703 I CameraSession: Successfully updated CameraSession Configuration! isActive: false
01-14 16:41:28.918 14621 14703 I CameraView: invokeOnInitialized()
01-14 16:41:28.938 14725 14725 F DEBUG : backtrace:
01-14 16:41:28.938 14725 14725 F DEBUG : #00 pc 000f90df /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/lib/x86/libbarhopper_v3.so (BuildId: 5402c39fc6a5e63f2710767743fb517e)
01-14 16:41:28.938 14725 14725 F DEBUG : #01 pc 000d3efe /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/lib/x86/libbarhopper_v3.so (BuildId: 5402c39fc6a5e63f2710767743fb517e)
01-14 16:41:28.938 14725 14725 F DEBUG : #02 pc 000cc520 /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/lib/x86/libbarhopper_v3.so (BuildId: 5402c39fc6a5e63f2710767743fb517e)
01-14 16:41:28.938 14725 14725 F DEBUG : #03 pc 000cc0d1 /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/lib/x86/libbarhopper_v3.so (BuildId: 5402c39fc6a5e63f2710767743fb517e)
01-14 16:41:28.938 14725 14725 F DEBUG : #04 pc 000cc965 /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/lib/x86/libbarhopper_v3.so (BuildId: 5402c39fc6a5e63f2710767743fb517e)
01-14 16:41:28.938 14725 14725 F DEBUG : #05 pc 000ca7a1 /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/lib/x86/libbarhopper_v3.so (BuildId: 5402c39fc6a5e63f2710767743fb517e)
01-14 16:41:28.938 14725 14725 F DEBUG : #06 pc 000ca83e /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/lib/x86/libbarhopper_v3.so (Java_com_google_android_libraries_barhopper_BarhopperV3_recognizeBufferNative+81) (BuildId: 5402c39fc6a5e63f2710767743fb517e)
01-14 16:41:28.938 14725 14725 F DEBUG : #07 pc 00142132 /apex/com.android.art/lib/libart.so (art_quick_generic_jni_trampoline+82) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #08 pc 0013b922 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #09 pc 001d0381 /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+241) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #10 pc 00386701 /apex/com.android.art/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+385) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #11 pc 0037bcad /apex/com.android.art/lib/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+829) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #12 pc 007a83d8 /apex/com.android.art/lib/libart.so (MterpInvokeDirectRange+504) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #13 pc 00135ba1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_direct_range+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #14 pc 00201260 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.android.libraries.barhopper.BarhopperV3.recognize+28)
01-14 16:41:28.938 14725 14725 F DEBUG : #15 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #16 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #17 pc 0032820c [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.vision.barcode.bundled.internal.zzb.zzf+60)
01-14 16:41:28.938 14725 14725 F DEBUG : #18 pc 007a44ae /apex/com.android.art/lib/libart.so (MterpInvokeDirect+1454) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #19 pc 001358a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_direct+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #20 pc 0032830e [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.vision.barcode.bundled.internal.zzb.zzb+122)
01-14 16:41:28.938 14725 14725 F DEBUG : #21 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #22 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #23 pc 001c5978 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.android.gms.internal.mlkit_vision_barcode_bundled.zzbk.zza+48)
01-14 16:41:28.938 14725 14725 F DEBUG : #24 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #25 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #26 pc 001c5166 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.android.gms.internal.mlkit_vision_barcode_bundled.zzb.onTransact+42)
01-14 16:41:28.938 14725 14725 F DEBUG : #27 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #28 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #29 pc 00362804 /system/framework/framework.jar (offset 0x92b000) (android.os.Binder.transact+12)
01-14 16:41:28.938 14725 14725 F DEBUG : #30 pc 007a355e /apex/com.android.art/lib/libart.so (MterpInvokeInterface+2126) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #31 pc 001359a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #32 pc 001a0cc6 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.android.gms.internal.mlkit_vision_barcode.zza.zzb+14)
01-14 16:41:28.938 14725 14725 F DEBUG : #33 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #34 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #35 pc 001c2f6a [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.android.gms.internal.mlkit_vision_barcode.zzvt.zzd+22)
01-14 16:41:28.938 14725 14725 F DEBUG : #36 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #37 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #38 pc 0032baea [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.vision.barcode.internal.zzn.zza+206)
01-14 16:41:28.938 14725 14725 F DEBUG : #39 pc 007a355e /apex/com.android.art/lib/libart.so (MterpInvokeInterface+2126) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.938 14725 14725 F DEBUG : #40 pc 001359a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #41 pc 0032ae70 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.vision.barcode.internal.zzk.zze+24)
01-14 16:41:28.939 14725 14725 F DEBUG : #42 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #43 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #44 pc 0032ae3c [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.vision.barcode.internal.zzk.run+4)
01-14 16:41:28.939 14725 14725 F DEBUG : #45 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #46 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #47 pc 0032e4d6 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.vision.common.internal.MobileVisionBase.zza+22)
01-14 16:41:28.939 14725 14725 F DEBUG : #48 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #49 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #50 pc 0032e9cc [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.vision.common.internal.zza.call+8)
01-14 16:41:28.939 14725 14725 F DEBUG : #51 pc 007a355e /apex/com.android.art/lib/libart.so (MterpInvokeInterface+2126) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #52 pc 001359a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #53 pc 00322e16 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.common.sdkinternal.ModelResource.zza+74)
01-14 16:41:28.939 14725 14725 F DEBUG : #54 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #55 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #56 pc 003279d8 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.common.sdkinternal.zzn.run+20)
01-14 16:41:28.939 14725 14725 F DEBUG : #57 pc 007a355e /apex/com.android.art/lib/libart.so (MterpInvokeInterface+2126) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #58 pc 001359a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #59 pc 00327ba8 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.common.sdkinternal.zzt.run+20)
01-14 16:41:28.939 14725 14725 F DEBUG : #60 pc 007a355e /apex/com.android.art/lib/libart.so (MterpInvokeInterface+2126) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #61 pc 001359a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #62 pc 00322b4e [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.common.sdkinternal.MlKitThreadPool.zze+26)
01-14 16:41:28.939 14725 14725 F DEBUG : #63 pc 007a505e /apex/com.android.art/lib/libart.so (MterpInvokeStatic+1454) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #64 pc 00135921 /apex/com.android.art/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #65 pc 00322af0 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzc+16)
01-14 16:41:28.939 14725 14725 F DEBUG : #66 pc 007a505e /apex/com.android.art/lib/libart.so (MterpInvokeStatic+1454) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #67 pc 00135921 /apex/com.android.art/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #68 pc 003278c0 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.common.sdkinternal.zzk.run+4)
01-14 16:41:28.939 14725 14725 F DEBUG : #69 pc 007a355e /apex/com.android.art/lib/libart.so (MterpInvokeInterface+2126) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #70 pc 001359a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #71 pc 001f9e6a /apex/com.android.art/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor.runWorker+158)
01-14 16:41:28.939 14725 14725 F DEBUG : #72 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #73 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #74 pc 001f8c2c /apex/com.android.art/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor$Worker.run+4)
01-14 16:41:28.939 14725 14725 F DEBUG : #75 pc 007a355e /apex/com.android.art/lib/libart.so (MterpInvokeInterface+2126) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #76 pc 001359a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #77 pc 00322b1c [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzd+20)
01-14 16:41:28.939 14725 14725 F DEBUG : #78 pc 007a505e /apex/com.android.art/lib/libart.so (MterpInvokeStatic+1454) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #79 pc 00135921 /apex/com.android.art/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.939 14725 14725 F DEBUG : #80 pc 00327844 [anon:dalvik-classes6.dex extracted in memory from /data/app/~~ihLU7QPJZMgkBNeHyXU2zg==/net.felinger.tmc-MvKf8Kzj62qtnP9UCjgNpw==/base.apk!classes6.dex] (com.google.mlkit.common.sdkinternal.zzi.run+4)
01-14 16:41:28.939 14725 14725 F DEBUG : #81 pc 007a355e /apex/com.android.art/lib/libart.so (MterpInvokeInterface+2126) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.958 14725 14725 F DEBUG : #82 pc 001359a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.958 14725 14725 F DEBUG : #83 pc 000eb7d0 /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
01-14 16:41:28.958 14725 14725 F DEBUG : #84 pc 0036fb02 /apex/com.android.art/lib/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.16375758241455872412)+370) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.959 14725 14725 F DEBUG : #85 pc 00379b00 /apex/com.android.art/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+176) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.959 14725 14725 F DEBUG : #86 pc 0078b325 /apex/com.android.art/lib/libart.so (artQuickToInterpreterBridge+1061) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.959 14725 14725 F DEBUG : #87 pc 0014220d /apex/com.android.art/lib/libart.so (art_quick_to_interpreter_bridge+77) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.959 14725 14725 F DEBUG : #88 pc 0013b922 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.959 14725 14725 F DEBUG : #89 pc 001d0381 /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+241) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.959 14725 14725 F DEBUG : #90 pc 0062f37c /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+620) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.959 14725 14725 F DEBUG : #91 pc 0062f595 /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+85) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.959 14725 14725 F DEBUG : #92 pc 00697701 /apex/com.android.art/lib/libart.so (art::Thread::CreateCallback(void*)+1537) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
01-14 16:41:28.959 14725 14725 F DEBUG : #93 pc 000e6974 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+100) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
01-14 16:41:28.959 14725 14725 F DEBUG : #94 pc 00078567 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
01-14 16:41:29.523 283 283 E tombstoned: Tombstone written to: /data/tombstones/tombstone_26
01-14 16:41:29.526 540 576 I BootReceiver: Copying /data/tombstones/tombstone_26 to DropBox (SYSTEM_TOMBSTONE)
01-14 16:41:29.526 540 576 I DropBoxManagerService: add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x2
01-14 16:41:29.539 540 14732 I DropBoxManagerService: add tag=data_app_native_crash isTagEnabled=true flags=0x2
01-14 16:41:29.539 540 14731 W ActivityTaskManager: Force finishing activity net.felinger.tmc/.MainActivity
01-14 16:41:29.552 306 348 D goldfish-address-space: claimShared: Ask to claim region [0x3f2232000 0x3f2835000]
01-14 16:41:29.572 540 568 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
01-14 16:41:29.572 540 568 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
01-14 16:41:29.585 540 568 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
01-14 16:41:29.585 540 568 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
01-14 16:41:29.643 540 4512 D HostConnection: HostConnection::get() New Host Connection established 0xeba320b0, tid 4512
01-14 16:41:29.661 540 4512 D HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_YUV_Cache ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0
01-14 16:41:29.671 540 4512 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
01-14 16:41:29.674 540 4512 D EGL_emulation: eglCreateContext: 0xeba37ec0: maj 3 min 0 rcv 3
01-14 16:41:29.675 540 4512 D EGL_emulation: eglMakeCurrent: 0xeba37ec0: ver 3 0 (tinfo 0xb1434a90) (first time)
01-14 16:41:29.707 701 721 I ndroid.systemu: NativeAlloc concurrent copying GC freed 2751(272KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 7013KB/13MB, paused 32us total 135.838ms
01-14 16:41:29.708 701 723 W System : A resource failed to call release.
01-14 16:41:29.767 540 4489 I WindowManager: WIN DEATH: Window{56f3082 u0 net.felinger.tmc/net.felinger.tmc.MainActivity}
01-14 16:41:29.767 540 4489 W InputDispatcher: Attempted to unregister already unregistered input channel '56f3082 net.felinger.tmc/net.felinger.tmc.MainActivity (server)'
01-14 16:41:29.767 540 3484 I ActivityManager: Process net.felinger.tmc (pid 14621) has died: prcp TOP
01-14 16:41:29.770 290 290 I Zygote : Process 14621 exited due to signal 11 (Segmentation fault)
01-14 16:41:29.771 298 7647 W EmulatedCamera_QemuCamera3: flush: Not implemented; ignored
01-14 16:41:29.771 394 5827 I Camera3-Device: disconnectImpl: E
01-14 16:41:29.771 394 5827 I CameraLatencyHistogram: ProcessCaptureRequest latency histogram (72) samples:
01-14 16:41:29.771 394 5827 I CameraLatencyHistogram: 40 80 120 160 200 240 280 320 360 inf (max ms)
01-14 16:41:29.771 394 5827 I CameraLatencyHistogram: 68.06 26.39 4.17 0.00 0.00 0.00 0.00 1.39 0.00 0.00 (%)
01-14 16:41:29.773 540 551 I system_server: Background young concurrent copying GC freed 100817(8560KB) AllocSpace objects, 23(1316KB) LOS objects, 24% free, 30MB/40MB, paused 45us total 116.367ms
01-14 16:41:29.773 540 570 I libprocessgroup: Successfully killed process cgroup uid 10179 pid 14621 in 0ms
01-14 16:41:29.773 540 553 W System : A resource failed to call release.
01-14 16:41:29.774 540 553 I chatty : uid=1000(system) FinalizerDaemon identical 4 lines
01-14 16:41:29.774 540 553 W System : A resource failed to call release.
01-14 16:41:29.784 540 3484 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.784 540 3484 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.784 540 3484 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.784 540 3484 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.784 540 3484 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.784 540 3484 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.784 540 3484 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.784 540 3484 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.784 540 3484 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.785 540 3484 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
01-14 16:41:29.790 540 14731 W ActivityManager: Ignoring remove of inactive process: ProcessRecord{2cb7c9c 0:net.felinger.tmc/u0a179}
01-14 16:41:29.791 540 560 W ActivityManager: setHasOverlayUi called on unknown pid: 14621
01-14 16:41:29.792 540 558 W Looper : Slow dispatch took 141ms android.ui h=android.view.ViewRootImpl$ViewRootHandler c=android.view.ViewRootImpl$4@b3d04ef m=0
01-14 16:41:29.826 306 348 D goldfish-address-space: claimShared: Ask to claim region [0x3f0603000 0x3f0f68000]
01-14 16:41:29.840 540 1163 W ActivityManager: Unable to start service Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } U=0: not found
01-14 16:41:29.840 540 1163 W RemoteAppPredictionService: could not bind to Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } using flags 67108865
01-14 16:41:29.840 306 348 D goldfish-address-space: claimShared: Ask to claim region [0x3f36df000 0x3f3a61000]
01-14 16:41:29.844 394 5827 W Camera3-OutputStream: disconnectLocked: While disconnecting stream 2 from native window, the native window died from under us
01-14 16:41:29.844 394 5827 I CameraLatencyHistogram: Stream 2 dequeueBuffer latency histogram (2) samples:
01-14 16:41:29.845 394 5827 I CameraLatencyHistogram: 5 10 15 20 25 30 35 40 45 inf (max ms)
01-14 16:41:29.845 394 5827 I CameraLatencyHistogram: 0.00 50.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 50.00 (%)
01-14 16:41:29.846 394 5827 I Camera3-Device: disconnectImpl: X
01-14 16:41:29.847 306 348 D goldfish-address-space: claimShared: Ask to claim region [0x3f0f68000 0x3f18cd000]
01-14 16:41:29.849 306 1207 D goldfish-address-space: claimShared: Ask to claim region [0x3f18cd000 0x3f2232000]
01-14 16:41:29.854 394 5827 I CameraService: disconnect: Disconnected client for camera 0 for PID 14621
01-14 16:41:29.854 394 5827 I Camera3-Device: disconnectImpl: E
01-14 16:41:29.854 394 5827 I Camera2ClientBase: Closed Camera 0. Client was: net.felinger.tmc (PID 14621, UID 10179)
01-14 16:41:29.854 394 5827 I Camera3-Device: disconnectImpl: E
01-14 16:41:29.854 394 5827 E CameraService: binderDied: Java client's binder died, removing it from the list of active clients
01-14 16:41:29.871 1345 1345 I dolh : onStart
01-14 16:41:29.872 306 348 D goldfish-address-space: claimShared: Ask to claim region [0x3f6583000 0x3f6ee8000]
01-14 16:41:29.872 1345 1345 I dolh : onResume
01-14 16:41:29.880 306 348 D goldfish-address-space: claimShared: Ask to claim region [0x3f6ee8000 0x3f784d000]
01-14 16:41:29.882 306 1207 D goldfish-address-space: claimShared: Ask to claim region [0x3f4603000 0x3f4f68000]
01-14 16:41:29.896 306 1207 D goldfish-address-space: claimShared: Ask to claim region [0x3f3a61000 0x3f3de3000]
01-14 16:41:29.899 306 1207 D goldfish-address-space: claimShared: Ask to claim region [0x3f4f68000 0x3f52ea000]
01-14 16:41:29.984 540 558 W Looper : Slow dispatch took 192ms android.ui h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver@a9aa2e7 m=0
01-14 16:41:29.985 540 558 W Looper : Slow delivery took 326ms android.ui h=android.view.ViewRootImpl$ViewRootHandler c=null m=31
01-14 16:41:30.005 540 558 W Looper : Drained
01-14 16:41:30.036 1245 1245 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3206
01-14 16:41:30.037 1245 1245 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2147 repeatCheckTimes = 0, locked = false
01-14 16:41:30.037 1245 1245 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1894 onStartInput(EditorInfo{EditorInfo{packageName=com.google.android.apps.nexuslauncher, 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)
01-14 16:41:30.038 1245 1245 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2147 repeatCheckTimes = 1, locked = false
0 |
For me the following workaround seems to work out: I set Camera.isActive to false and wait a few moments before hiding the container |
Same stack trace as #2116 |
Although not a great workaround, this works for me. |
The following setup works for me: "react-native-vision-camera": "3.7.1",
For iOS I had to use the vision-camera-barcode-scanner frameprocessor because of the slowness issues: #2060 (comment) I'd love to see this less hacky. |
Working on a fix for this issue here: #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)... |
Just released VisionCamera 3.9.0-beta.1, which includes the big 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! ❤️ |
@mrousavy I am hit by this In the case of my frame processor the crash always happen when the unmount slips during a scan (which when using a 5fps processor happens pretty quickly!). Testing with: TEST_CRASH &&
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
const interval = setInterval(() => {
setIsMounted(prevIsMounted => {
console.log(`\n->isMounted=${!prevIsMounted}\n`);
return !prevIsMounted;
});
}, 4000);
return () => {
clearInterval(interval);
};
}, []); I tried to track the unmount using a parent component with: const isMountedRef = useSharedValue<boolean>(true);
useEffect(() => {
return () => {
console.log("unmont!");
isMountedRef.value = false;
};
}, [isMountedRef]);
const frameProcessor = useFrameProcessor(
(frame) => {
"worklet";
if (isMountedRef.value === false) {
console.log("abort!");
return;
}
runAsync(frame, () => {
"worklet";
runAtTargetFps(fps, () => {
"worklet";
scanCodes(frame, {}); to abort the scan if unmount but alas it's not enough. Any ideas on how you could detect unmount and either skip calling frame processors soon enough or keep around the frame as I guess the segmentation fault is the frame that has gone away. Any ideas on how we could fix this? |
@mgcrea I need the full logs |
@mrousavy crash with codeScanner (full adb dump), added newlines on mount toggle and kept a couple of working unmount and the last failed one: https://gist.github.com/mgcrea/8776644d047af93f4f73fdb3f0b05914 It's clearly a race condition as it can crash on the first unmount or after a dozen, usually around 5. Related crash:
From my frame processor: https://gist.github.com/mgcrea/f7ec3a8767066fa7cf040e5fcd72db9e
|
Im using
|
Same issue here.
|
I just released a V4 beta, can you try if that fixes the bugs? |
@mrousavy looks like this is it!! it did crash after a couple tries using Btw, after more testing we found out that the issue was clearly a race condition when an unmount of the component did interrupt an ongoing scan. |
This bug was fixed in the new version 3.9.2 or not yet? |
not fixed in any 3.x version @nassimmiled |
1 similar comment
not fixed in any 3.x version @nassimmiled |
What's happening?
The app crashes after scanning a QR code and navigate to another screen (using React Native Navigation) The QR code is successfully scanned but when I want to navigate to another page after (inside onCodeScanned callback) and the app sometimes crashes.
If I unmount the component before navigating to another page it also crash, example.
Is this a mistake or am I doing it wrong?
Reproduceable Code
Relevant log output
Camera Device
Device
Samung Tab A7
VisionCamera Version
3.6.16
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information
The text was updated successfully, but these errors were encountered: