Skip to content
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

🐛 FrameProcessor crash on Android #350

Closed
3 of 4 tasks
Kypsis opened this issue Aug 10, 2021 · 30 comments · Fixed by #351, #379 or #455
Closed
3 of 4 tasks

🐛 FrameProcessor crash on Android #350

Kypsis opened this issue Aug 10, 2021 · 30 comments · Fixed by #351, #379 or #455
Labels
🤖 android Issue affects the Android platform 🐛 bug Something isn't working

Comments

@Kypsis
Copy link

Kypsis commented Aug 10, 2021

What were you trying to do?

I was using frameProcessor for object detection.

Reproduceable Code

No response

What happened instead?

The app crashes sooner or later dependent on how high the frameProcessorFps setting is. This also occurs with imageLabeller and QRScanner plugins/solutions, just not as fast. The higher the setting the faster it crashes. Also a weird side effect is that if the frameProcessorFps is lower than 4 for object detection it doesn't detect anything, higher than 5 and you never get any labels although you will get the boundingBox. With 4 you get labels sometimes. Edit: Ignore the not finding labels correlated to frameProcessorFps, MLKit object detector classifier just has so few categories that you have to point the camera at very specific things.

Relevant log output

2021-08-10 19:26:00.959 15302-15413/com.supervaisor.dashcam.staging I/ReactNativeJS: { trackingId: 0,
      labels: [],
      boundingBox: [ 328, 192, 524, 326 ] }
2021-08-10 19:26:01.046 15302-15413/com.supervaisor.dashcam.staging I/VisionCamera: Setting new Frame Processor...
2021-08-10 19:26:01.046 15302-15413/com.supervaisor.dashcam.staging D/FrameProcessorRuntime: finding view 539...
2021-08-10 19:26:01.046 15302-15413/com.supervaisor.dashcam.staging D/FrameProcessorRuntime: found view 539! is null: false
2021-08-10 19:26:01.047 15302-15413/com.supervaisor.dashcam.staging I/VisionCamera: Found CameraView!
2021-08-10 19:26:01.047 15302-15413/com.supervaisor.dashcam.staging I/VisionCamera: Adapting Shareable value from function (conversion to worklet)...
2021-08-10 19:26:01.048 15302-15413/com.supervaisor.dashcam.staging I/VisionCamera: Successfully created worklet!
2021-08-10 19:26:01.050 15302-15420/com.supervaisor.dashcam.staging I/VisionCamera: Frame Processor set!
2021-08-10 19:26:01.050 15302-15543/com.supervaisor.dashcam.staging A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x14 in tid 15543 (pool-23-thread-), pid 15302 (dashcam.staging)
2021-08-10 19:26:01.073 955-960/? E/statsd: Predicate 5980654721335871649 dropping data for dimension key (10)0x2010101->10401[I] (10)0x30000->GCoreFlp[S] 
2021-08-10 19:26:01.077 955-960/? E/statsd: Predicate 5980654721335871649 dropping data for dimension key (10)0x2010101->10401[I] (10)0x30000->GCoreFlp[S] 
2021-08-10 19:26:01.096 15302-15413/com.supervaisor.dashcam.staging I/ReactNativeJS: [ 328, 187, 524, 321 ]
2021-08-10 19:26:01.097 955-960/? E/statsd: Predicate 5980654721335871649 dropping data for dimension key (10)0x2010101->10401[I] (10)0x30000->*location*[S] 
2021-08-10 19:26:01.106 15302-15413/com.supervaisor.dashcam.staging I/ReactNativeJS: { trackingId: 0,
      labels: [],
      boundingBox: [ 328, 187, 524, 321 ] }
2021-08-10 19:26:01.113 955-960/? E/statsd: Predicate 5980654721335871649 dropping data for dimension key (10)0x2010101->10401[I] (10)0x30000->*location*[S] 
2021-08-10 19:26:01.144 15620-15620/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2021-08-10 19:26:01.145 945-945/? I/tombstoned: received crash request for pid 15543
2021-08-10 19:26:01.146 15620-15620/? I/crash_dump64: performing dump of process 15302 (target tid = 15543)
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG: Build fingerprint: 'google/sunfish/sunfish:11/RQ3A.210705.001/7380771:user/release-keys'
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG: Revision: 'MP1.0'
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG: ABI: 'arm64'
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG: Timestamp: 2021-08-10 19:26:01+0300
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG: pid: 15302, tid: 15543, name: pool-23-thread-  >>> com.supervaisor.dashcam.staging <<<
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG: uid: 10401
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x14
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG: Cause: null pointer dereference
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG:     x0  0000000000000000  x1  b40000700a527a80  x2  00000000800001f5  x3  0000000000000001
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG:     x4  0000006dfad998c0  x5  0000006dd56d54fe  x6  000000006854736a  x7  0000000073696854
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG:     x8  4be4b121324c67fc  x9  0000000000000000  x10 b40000700a527a90  x11 0000000000000040
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG:     x12 0000006dfad99a80  x13 0000006dfad99b10  x14 0000006dfad9a338  x15 000000000baa895d
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG:     x16 0000006ded872af8  x17 0000006ded796178  x18 0000006d9f20a000  x19 0000006dfad998c0
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG:     x20 00000000800001f5  x21 b40000700a527a80  x22 b40000700a527a80  x23 0000006e58561fb8
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG:     x24 0000006dfad9d000  x25 b40000700a527a90  x26 0000006e58561fa8  x27 00000000800001f5
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG:     x28 0000000000000000  x29 0000006dfad99830
2021-08-10 19:26:01.163 15620-15620/? A/DEBUG:     lr  0000006dedb57d9c  sp  0000006dfad997f0  pc  0000006dedb3982c  pst 0000000000000000
2021-08-10 19:26:01.226 987-987/? W/SoloThreadMana: type=1400 audit(0.0:1436273): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG: backtrace:
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #00 pc 000000000005382c  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #01 pc 0000000000071d98  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #02 pc 00000000000726fc  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #03 pc 000000000008cbcc  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #04 pc 000000000008c9a0  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #05 pc 00000000000728b4  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #06 pc 000000000002dfd0  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::getProperty(facebook::jsi::Object const&, facebook::jsi::String const&)+128) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #07 pc 00000000000d11b0  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (facebook::jsi::Object::getProperty(facebook::jsi::Runtime&, facebook::jsi::String const&) const+56) (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #08 pc 00000000000ed070  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (facebook::jsi::Object::getProperty(facebook::jsi::Runtime&, char const*) const+88) (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #09 pc 00000000000e85c4  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #10 pc 00000000000e8538  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #11 pc 00000000000e8474  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #12 pc 00000000000e83d0  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #13 pc 00000000000e7350  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #14 pc 0000000000037288  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #15 pc 000000000005955c  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #16 pc 000000000005b1ec  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #17 pc 000000000005a8c8  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #18 pc 0000000000045b6c  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #19 pc 000000000002f76c  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+612) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #20 pc 000000000007ef78  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Value const*, unsigned long) const+120) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #21 pc 00000000000e86bc  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #22 pc 00000000000e8538  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #23 pc 00000000000e8474  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #24 pc 00000000000e83d0  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #25 pc 00000000000e7350  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #26 pc 0000000000037288  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #27 pc 00000000000455b4  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #28 pc 000000000002f76c  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+612) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #29 pc 000000000007ef78  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Value const*, unsigned long) const+120) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #30 pc 000000000007eea8  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, std::initializer_list<facebook::jsi::Value>) const+128) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #31 pc 000000000007dac0  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (facebook::jsi::Value facebook::jsi::Function::callWithThis<facebook::jsi::Object>(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Object&&) const+160) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #32 pc 000000000006ee3c  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #33 pc 000000000006ed28  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #34 pc 000000000006eca4  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #35 pc 000000000006ec58  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #36 pc 000000000006db30  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #37 pc 0000000000082f94  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #38 pc 0000000000081aec  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (std::__ndk1::function<void (facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator>)>::operator()(facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator>) const+48) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #39 pc 00000000000816c4  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)+144) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #40 pc 0000000000082b2c  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (facebook::jni::detail::MethodWrapper<void (vision::CameraView::*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), &(vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)), vision::CameraView, void, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::dispatch(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)+212) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #41 pc 0000000000082bb8  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (facebook::jni::detail::CallWithJniConversions<void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), void, facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::call(facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*, void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&))+84) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.351 15620-15620/? A/DEBUG:       #42 pc 00000000000829c8  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (facebook::jni::detail::FunctionWrapper<void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, void, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::call(_JNIEnv*, _jobject*, facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*, void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&))+56) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #43 pc 0000000000081a40  /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/lib/arm64/libVisionCamera.so (facebook::jni::detail::MethodWrapper<void (vision::CameraView::*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), &(vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)), vision::CameraView, void, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::call(_JNIEnv*, _jobject*, facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*)+44) (BuildId: 1e6778907e2aef6518e22a27a1f4849673889cbb)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #44 pc 000000000013ced4  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #45 pc 00000000020ac774  /memfd:jit-cache (deleted) (offset 0x2000000) (com.mrousavy.camera.CameraView.configureSession$lambda-7$lambda-6+212)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #46 pc 00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #47 pc 00000000001a8a94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #48 pc 000000000031831c  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #49 pc 000000000030e648  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #50 pc 000000000067f49c  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #51 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #52 pc 000000000000bc28  [anon:dalvik-classes5.dex extracted in memory from /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/base.apk!classes5.dex] (com.mrousavy.camera.CameraView.lambda$cqtIchEZdTZaV3R0UUrDpVbB1Es)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #53 pc 000000000067f740  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #54 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #55 pc 0000000000005824  [anon:dalvik-classes5.dex extracted in memory from /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/base.apk!classes5.dex] (com.mrousavy.camera.-$$Lambda$CameraView$cqtIchEZdTZaV3R0UUrDpVbB1Es.analyze+4)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #56 pc 000000000067e21c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #57 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #58 pc 00000000001e41fe  [anon:dalvik-classes.dex extracted in memory from /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/base.apk] (androidx.camera.core.ImageAnalysis.lambda$setAnalyzer$1$ImageAnalysis+26)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #59 pc 000000000067c7e4  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #60 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #61 pc 00000000001de720  [anon:dalvik-classes.dex extracted in memory from /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/base.apk] (androidx.camera.core.-$$Lambda$ImageAnalysis$qO2F3Tn7pfTvGyL-EvT8WWE0F0w.analyze+8)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #62 pc 000000000067e21c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #63 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #64 pc 00000000001e39a4  [anon:dalvik-classes.dex extracted in memory from /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/base.apk] (androidx.camera.core.ImageAnalysisAbstractAnalyzer.lambda$analyzeImage$0$ImageAnalysisAbstractAnalyzer+64)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #65 pc 000000000067c7e4  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #66 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #67 pc 00000000001de770  [anon:dalvik-classes.dex extracted in memory from /data/app/~~jncZlZm09gOrqS8cQluWdw==/com.supervaisor.dashcam.staging-x-zC2nk2Ym5GXmmkLtQgNA==/base.apk] (androidx.camera.core.-$$Lambda$ImageAnalysisAbstractAnalyzer$g-dcm6aZmGod2IWKPwN4CArIZzI.run+16)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #68 pc 000000000067e21c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #69 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #70 pc 00000000001f9e6e  /apex/com.android.art/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor.runWorker+158)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #71 pc 000000000067c7e4  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #72 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #73 pc 00000000001f8c30  /apex/com.android.art/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor$Worker.run+4)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #74 pc 000000000067e21c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #75 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #76 pc 00000000000eb7d0  /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #77 pc 0000000000305c44  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6432830707213048161)+268) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #78 pc 000000000066b24c  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #79 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #80 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #81 pc 00000000001a8a78  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #82 pc 0000000000554cbc  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #83 pc 00000000005a4058  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1308) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #84 pc 00000000000afd4c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
2021-08-10 19:26:01.352 15620-15620/? A/DEBUG:       #85 pc 0000000000050288  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
2021-08-10 19:25:57.852 1753-2127/? I/chatty: uid=1000(system) ConnectivitySer identical 1 line
2021-08-10 19:26:00.869 1753-2127/? D/ConnectivityService: NetReassign [no changes]
2021-08-10 19:26:01.724 1753-15624/? W/ActivityTaskManager:   Force finishing activity com.supervaisor.dashcam.staging/com.supervaisor.dashcam.MainActivity
2021-08-10 19:26:01.724 1753-15625/? I/DropBoxManagerService: add tag=data_app_native_crash isTagEnabled=true flags=0x2
2021-08-10 19:26:01.326 987-987/? I/chatty: uid=1000(system) provider@2.6-se identical 3 lines
2021-08-10 19:26:01.360 987-987/? W/SoloThreadMana: type=1400 audit(0.0:1436277): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
2021-08-10 19:26:01.729 945-945/? E/tombstoned: Tombstone written to: /data/tombstones/tombstone_15
2021-08-10 19:26:01.735 1753-1889/? I/BootReceiver: Copying /data/tombstones/tombstone_15 to DropBox (SYSTEM_TOMBSTONE)
2021-08-10 19:26:01.736 1753-1889/? I/DropBoxManagerService: add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x2
2021-08-10 19:26:01.745 955-960/? E/statsd: Predicate 5980654721335871649 dropping data for dimension key (10)0x2010101->10401[I] (10)0x30000->*launch*[S]

Device

Pixel 4a

VisionCamera Version

2.5.0

Additional information

@Kypsis Kypsis added the 🐛 bug Something isn't working label Aug 10, 2021
@mrousavy
Copy link
Owner

Huh? A null pointer de-reference error? Are you allocating something in your plugin? Please share the code of the frame processor as well as the frame processor plugin

@Kypsis
Copy link
Author

Kypsis commented Aug 10, 2021

I'll see if I can replicate the issue with the camera example.

@Kypsis
Copy link
Author

Kypsis commented Aug 11, 2021

Yep still occurs even if reproduced in example app (takes a lot longer to happen, like over 5 minutes):

2021-08-11 09:08:19.756 15466-15617/com.mrousavy.camera.example I/ReactNativeJS: [ 326, 223, 453, 343 ]
2021-08-11 09:08:19.849 15466-15617/com.mrousavy.camera.example I/ReactNativeJS: { trackingId: 512,
      labels: [],
      boundingBox: [ 326, 223, 453, 343 ] }
2021-08-11 09:08:19.850 15466-15617/com.mrousavy.camera.example I/ReactNativeJS: [ 326, 223, 453, 343 ]
2021-08-11 09:08:19.951 15466-15706/com.mrousavy.camera.example E/.camera.exampl: JNI ERROR (app bug): attempt to use stale Local 0x45 (should be 0x41)
2021-08-11 09:08:19.952 15466-15706/com.mrousavy.camera.example A/.camera.exampl: java_vm_ext.cc:577] JNI DETECTED ERROR IN APPLICATION: use of deleted local reference 0x45
    java_vm_ext.cc:577]     from void com.mrousavy.camera.CameraView.frameProcessorCallback(androidx.camera.core.ImageProxy)
2021-08-11 09:08:20.096 15466-15706/com.mrousavy.camera.example A/.camera.exampl: runtime.cc:655] Runtime aborting...

ObjectDetectorFrameProcessorPlugin.java:

package com.mrousavy.camera.example;

import com.facebook.react.bridge.WritableNativeMap;
import com.facebook.react.bridge.WritableNativeArray;

import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.Tasks;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;

import com.mrousavy.camera.frameprocessor.FrameProcessorPlugin;

import org.jetbrains.annotations.NotNull;

import android.os.Bundle;
import android.media.Image;
import android.graphics.Rect;
import android.graphics.Point;
import android.graphics.Bitmap;
import android.annotation.SuppressLint;

import androidx.annotation.NonNull;
import androidx.camera.core.ImageProxy;
import androidx.appcompat.app.AppCompatActivity;

import com.google.mlkit.common.model.LocalModel;
import com.google.mlkit.vision.common.InputImage;
import com.google.mlkit.vision.objects.DetectedObject;
import com.google.mlkit.vision.objects.ObjectDetection;
import com.google.mlkit.vision.objects.ObjectDetector;
// import com.google.mlkit.vision.objects.custom.CustomObjectDetectorOptions;
import com.google.mlkit.vision.objects.defaults.ObjectDetectorOptions;
import com.google.mlkit.vision.objects.defaults.PredefinedCategory;

import java.util.List;
import java.util.ArrayList;
import java.util.concurrent.ExecutionException;

public class ObjectDetectorFrameProcessorPlugin extends FrameProcessorPlugin {
    ObjectDetectorOptions options =
            new ObjectDetectorOptions.Builder()
            .setDetectorMode(ObjectDetectorOptions.STREAM_MODE)
                        .enableMultipleObjects()
                        .enableClassification()  
                        .build();

    ObjectDetector objectDetector = ObjectDetection.getClient(options);

    @Override
    public Object callback(ImageProxy frame, @NotNull Object[] params) {
        @SuppressLint("UnsafeOptInUsageError")

        Image mediaImage = frame.getImage();
        
        if (mediaImage != null) {
        InputImage image = InputImage.fromMediaImage(mediaImage, frame.getImageInfo().getRotationDegrees());
        Task<List<DetectedObject>> task = objectDetector.process(image);

        try {
            List<DetectedObject> results = Tasks.await(task);

            WritableNativeArray array = new WritableNativeArray();

            for (DetectedObject detectedObject : results) {
                Rect boundingBox = detectedObject.getBoundingBox();
                Integer trackingId = detectedObject.getTrackingId();

                WritableNativeArray boundingBoxArray = new WritableNativeArray();
                boundingBoxArray.pushDouble(boundingBox.top);
                boundingBoxArray.pushDouble(boundingBox.left);
                boundingBoxArray.pushDouble(boundingBox.bottom);
                boundingBoxArray.pushDouble(boundingBox.right);

                WritableNativeArray labelsArray = new WritableNativeArray();
                for (DetectedObject.Label label : detectedObject.getLabels()) {
                    WritableNativeMap labelsMap = new WritableNativeMap();
                    labelsMap.putString("label", label.getText());
                    labelsMap.putDouble("confidence", label.getConfidence());
                    labelsArray.pushMap(labelsMap);               
                }

                WritableNativeMap map = new WritableNativeMap();
                map.putArray("boundingBox", boundingBoxArray);
                map.putInt("trackingId", trackingId);
                map.putArray("labels", labelsArray);

                array.pushMap(map);
            }
            return array;
            } catch (Exception e) {
            e.printStackTrace();
            }
        }
        return null;
    }

    ObjectDetectorFrameProcessorPlugin() {
        super("object_detector_plugin");
    }
}

frameProcessor:

const objectBounds = useSharedValue([0, 0, 0, 0]);

  const frameProcessor = useFrameProcessor(
    (frame) => {
      'worklet';
      const objects = objectDetectorPlugin(frame);
      const boundingBox = objects[0]?.boundingBox ?? [0, 0, 0, 0];
      objectBounds.value = boundingBox;
      console.log(objects[0]);
      console.log(objectBounds.value);
    },
    [objectBounds],
  );

if you set frameProcessorFps higher (like 30) you can get the crash happening much faster. The Java imports I am not 100% sure of as Android Studio doesn't seem to handle React Native project linting properly.

@mrousavy
Copy link
Owner

Let me know if #351 fixes this issue

@Kypsis
Copy link
Author

Kypsis commented Aug 11, 2021

Sadly it won't run with changes:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
   > java.lang.OutOfMemoryError (no error message)

@mrousavy
Copy link
Owner

That looks like an unrelated build issue. Try cleaning your cache and try again: ./gradlew clean (in android/ folder)

@Kypsis
Copy link
Author

Kypsis commented Aug 11, 2021

cd android/ && ./gradlew clean && cd .. && watchman watch-del-all && rm -rf $TMPDIR/metro-cache && yarn cache clean && yarn start --reset-cache

Is my goto before doing anything.

@Kypsis
Copy link
Author

Kypsis commented Aug 11, 2021

I actually tried reverting the changes and redoing. Reverting works, but after changes won't build.

@mrousavy
Copy link
Owner

huh, that's really weird and still seems unrelated to me, could you try rebooting your pc?

@mrousavy
Copy link
Owner

mrousavy commented Aug 11, 2021

because the build on my system and in the CI works:

@Kypsis
Copy link
Author

Kypsis commented Aug 11, 2021

Restart worked to make it build but the changes did not sadly help with the crash. It crashes within 2 minutes of first inference (with frameProcessorFps={30}):
Screenshot 2021-08-11 at 15 11 33

@mrousavy
Copy link
Owner

whops merged the wrong PR....

@Kypsis
Copy link
Author

Kypsis commented Sep 1, 2021

It seems that this issue was sadly not fixed with #379. It crashes with object detector within 20 seconds:

2021-09-01 14:33:40.738 23122-23234/com.supervaisor.dashcam.staging I/ReactNativeJS: [ 512, 177, 628, 457 ]
2021-09-01 14:33:40.951 23122-26043/com.supervaisor.dashcam.staging A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xffff0000000c in tid 26043 (pool-29-thread-), pid 23122 (dashcam.staging)
2021-09-01 14:33:40.952 23122-23234/com.supervaisor.dashcam.staging I/ReactNativeJS: [ 496, 164, 618, 443 ]
2021-09-01 14:33:41.082 26070-26070/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2021-09-01 14:33:41.083 958-958/? I/tombstoned: received crash request for pid 26043
2021-09-01 14:33:41.084 26070-26070/? I/crash_dump64: performing dump of process 23122 (target tid = 26043)
2021-09-01 14:33:41.093 26070-26070/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG: Build fingerprint: 'google/sunfish/sunfish:11/RQ3A.210805.001.A1/7474174:user/release-keys'
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG: Revision: 'MP1.0'
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG: ABI: 'arm64'
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG: Timestamp: 2021-09-01 14:33:41+0300
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG: pid: 23122, tid: 26043, name: pool-29-thread-  >>> com.supervaisor.dashcam.staging <<<
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG: uid: 10421
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xffff0000000c
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG:     x0  0000ffff00000004  x1  b400007da92d72f0  x2  b400007c397c4170  x3  b400007c397c3170
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG:     x4  0000000000000000  x5  0000007bf7165151  x6  6d696e6165725f5f  x7  74736f4864657461
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG:     x8  ffffffff00000004  x9  0000007b7f4a6fc0  x10 b400007c397c4160  x11 0000007b7f4a7050
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG:     x12 0000007b7f4a6fd0  x13 0000007b7f4a7060  x14 0000007b7f4a81f8  x15 0000000000000007
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG:     x16 0000007b88273af8  x17 0000007b88197178  x18 0000007b3c0f4000  x19 b400007da92d72f0
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG:     x20 b400007c397c3170  x21 b400007c397c4170  x22 b400007c397c3170  x23 0000007b7f4ab000
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG:     x24 0000007b7f4ab000  x25 0000000000000001  x26 b400007ce96c7e9a  x27 0000007bf76b9ed8
2021-09-01 14:33:41.094 26070-26070/? A/DEBUG:     x28 b400007da92da048  x29 0000007b7f4a6fb0
2021-09-01 14:33:41.095 26070-26070/? A/DEBUG:     lr  0000007b88337fd4  sp  0000007b7f4a6f60  pc  0000007b8837c69c  pst 0000000060000000
2021-09-01 14:33:41.168 1002-1093/? D/CHRE: @ 146897.820: [ImuCal] Dynamic sensor configuration: high-performance.
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG: backtrace:
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #00 pc 000000000007269c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #01 pc 000000000002dfd0  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::getProperty(facebook::jsi::Object const&, facebook::jsi::String const&)+128) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #02 pc 00000000000d11b0  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (facebook::jsi::Object::getProperty(facebook::jsi::Runtime&, facebook::jsi::String const&) const+56) (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #03 pc 00000000000ed070  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (facebook::jsi::Object::getProperty(facebook::jsi::Runtime&, char const*) const+88) (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #04 pc 00000000000ded48  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (reanimated::ShareableValue::adapt(facebook::jsi::Runtime&, facebook::jsi::Value const&, reanimated::ValueType)+112) (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #05 pc 00000000000dfd68  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (reanimated::ShareableValue::adapt(facebook::jsi::Runtime&, facebook::jsi::Value const&, reanimated::RuntimeManager*, reanimated::ValueType)+200) (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #06 pc 00000000000df69c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (reanimated::ShareableValue::adapt(facebook::jsi::Runtime&, facebook::jsi::Value const&, reanimated::ValueType)+2500) (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #07 pc 00000000000dfd68  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (reanimated::ShareableValue::adapt(facebook::jsi::Runtime&, facebook::jsi::Value const&, reanimated::RuntimeManager*, reanimated::ValueType)+200) (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #08 pc 00000000000e4ad4  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #09 pc 00000000000e4a3c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #10 pc 00000000000e4978  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #11 pc 00000000000e48d4  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #12 pc 00000000000e3858  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #13 pc 0000000000037288  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #14 pc 000000000005955c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #15 pc 000000000005b1ec  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #16 pc 000000000005a8c8  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #17 pc 0000000000045b6c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #18 pc 000000000002f76c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+612) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #19 pc 000000000007a43c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::call(facebook::jsi::Runtime&, facebook::jsi::Value const*, unsigned long) const+104) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #20 pc 00000000000e876c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #21 pc 00000000000e8538  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #22 pc 00000000000e8474  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #23 pc 00000000000e83d0  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #24 pc 00000000000e7350  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #25 pc 0000000000037288  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #26 pc 000000000005955c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.268 26070-26070/? A/DEBUG:       #27 pc 000000000005b1ec  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #28 pc 000000000005a8c8  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #29 pc 0000000000045b6c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #30 pc 000000000002f76c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+612) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #31 pc 000000000007cc70  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Value const*, unsigned long) const+120) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #32 pc 00000000000e86bc  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #33 pc 00000000000e8538  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #34 pc 00000000000e8474  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #35 pc 00000000000e83d0  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #36 pc 00000000000e7350  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libreanimated.so (BuildId: 3fb477141bc43d845688e6287afa78528635923c)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #37 pc 0000000000037288  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #38 pc 00000000000455b4  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #39 pc 000000000002f76c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+612) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #40 pc 000000000007cc70  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Value const*, unsigned long) const+120) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #41 pc 000000000007cba0  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, std::initializer_list<facebook::jsi::Value>) const+128) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #42 pc 000000000007b894  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (facebook::jsi::Value facebook::jsi::Function::callWithThis<facebook::jsi::Object>(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Object&&) const+160) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #43 pc 000000000006cc18  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #44 pc 000000000006cb28  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #45 pc 000000000006caa4  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #46 pc 000000000006ca58  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #47 pc 000000000006b930  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #48 pc 00000000000807cc  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #49 pc 000000000007f4f0  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (std::__ndk1::function<void (facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*>)>::operator()(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*>) const+48) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #50 pc 000000000007f13c  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)+128) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #51 pc 0000000000080530  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (facebook::jni::detail::MethodWrapper<void (vision::CameraView::*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), &(vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)), vision::CameraView, void, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::dispatch(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)+212) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #52 pc 00000000000805bc  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (facebook::jni::detail::CallWithJniConversions<void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), void, facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::call(facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*, void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&))+84) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #53 pc 00000000000803cc  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (facebook::jni::detail::FunctionWrapper<void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, void, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::call(_JNIEnv*, _jobject*, facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*, void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&))+56) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #54 pc 000000000007f478  /data/app/~~lvF_eTG1tv_ookanOoJI-w==/com.supervaisor.dashcam.staging-xfi9ecdOjqR95GXj9hwCow==/lib/arm64/libVisionCamera.so (facebook::jni::detail::MethodWrapper<void (vision::CameraView::*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), &(vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)), vision::CameraView, void, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::call(_JNIEnv*, _jobject*, facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*)+44) (BuildId: 2049f025456d5ee98d403a721ab86fb5d79d6e80)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #55 pc 000000000013ced4  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #56 pc 00000000020c7db4  /memfd:jit-cache (deleted) (offset 0x2000000) (com.mrousavy.camera.CameraView.configureSession$lambda-7$lambda-6+212)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #57 pc 00000000020dec3c  /memfd:jit-cache (deleted) (offset 0x2000000) (com.mrousavy.camera.CameraView.lambda$cqtIchEZdTZaV3R0UUrDpVbB1Es+44)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #58 pc 00000000020f85cc  /memfd:jit-cache (deleted) (offset 0x2000000) (com.mrousavy.camera.-$$Lambda$CameraView$cqtIchEZdTZaV3R0UUrDpVbB1Es.analyze+60)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #59 pc 00000000020fde20  /memfd:jit-cache (deleted) (offset 0x2000000) (androidx.camera.core.ImageAnalysis.lambda$setAnalyzer$2$ImageAnalysis+160)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #60 pc 00000000020f93d8  /memfd:jit-cache (deleted) (offset 0x2000000) (androidx.camera.core.-$$Lambda$ImageAnalysis$-wcArnbkVmqkAHxpJ0VOR9b2w0Q.analyze+88)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #61 pc 00000000020e7db8  /memfd:jit-cache (deleted) (offset 0x2000000) (androidx.camera.core.ImageAnalysisAbstractAnalyzer.lambda$analyzeImage$0$ImageAnalysisAbstractAnalyzer+440)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #62 pc 00000000020d92a4  /memfd:jit-cache (deleted) (offset 0x2000000) (androidx.camera.core.-$$Lambda$ImageAnalysisAbstractAnalyzer$8nmjUxCmaK9ClOx3NHAdwtp6S3w.run+132)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #63 pc 0000000002026064  /memfd:jit-cache (deleted) (offset 0x2000000) (java.util.concurrent.ThreadPoolExecutor.runWorker+388)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #64 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #65 pc 00000000001a8a78  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #66 pc 000000000031831c  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #67 pc 000000000030e648  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #68 pc 000000000067c544  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+848) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #69 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #70 pc 00000000001f8c30  /apex/com.android.art/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor$Worker.run+4)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #71 pc 000000000067e21c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #72 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #73 pc 00000000000eb7d0  /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #74 pc 0000000000305c44  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6432830707213048161)+268) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #75 pc 000000000066b24c  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #76 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #77 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #78 pc 00000000001a8a78  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #79 pc 0000000000554cbc  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #80 pc 00000000005a4058  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1308) (BuildId: 0183cc6150704cdc371a87b659800e56)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #81 pc 00000000000afd4c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
2021-09-01 14:33:41.269 26070-26070/? A/DEBUG:       #82 pc 0000000000050288  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
2021-09-01 14:33:41.437 984-984/? W/SoloThreadMana: type=1400 audit(0.0:191163): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
2021-09-01 14:33:41.466 3310-3334/? D/DeviceStateHelper: Audo mode: 0
2021-09-01 14:33:41.468 3310-3334/? D/DeviceStateHelper: Audo mode: 0
2021-09-01 14:33:41.471 984-984/? W/SoloThreadMana: type=1400 audit(0.0:191164): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
2021-09-01 14:33:41.541 984-984/? I/chatty: uid=1000(system) provider@2.6-se identical 2 lines
2021-09-01 14:33:41.577 984-984/? W/SoloThreadMana: type=1400 audit(0.0:191167): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
2021-09-01 14:33:41.682 958-958/? E/tombstoned: Tombstone written to: /data/tombstones/tombstone_23

Also if frameProcessorFps is lower than 4 then nothing gets detected. Also what is curious is that I sometimes get bounding box values that should not happen:

 LOG  [411, 1, 640, 464]
 LOG  [4, undefined, 2.62135784219e-312, 6.365987385e-314]
 LOG  [0, 0, 0, 0]

@rodgomesc
Copy link
Contributor

rodgomesc commented Sep 1, 2021

@Kypsis what flags are you using to collect this log?
Which reanimated you are using in example app?

@Kypsis
Copy link
Author

Kypsis commented Sep 1, 2021

"react-native-reanimated": "^2.2.0" and I am unsure what do you mean by the flag question. For logging it's plain old Android Studio Logcat with Verbose logging level.

@mrousavy mrousavy reopened this Sep 1, 2021
@mrousavy
Copy link
Owner

mrousavy commented Sep 1, 2021

:(

@mrousavy
Copy link
Owner

mrousavy commented Sep 1, 2021

for the bounding boxes value that should not happen, try upgrading REA to the latest alpha, I believe 2.2.0 doesn't have an important PR from me yet

@rodgomesc
Copy link
Contributor

rodgomesc commented Sep 2, 2021

"react-native-reanimated": "^2.2.0" and I am unsure what do you mean by the flag question. For logging it's plain old Android Studio Logcat with Verbose logging level.

@Kypsis there is a big chance of solve this issue upgrading reanimated to 2.3.0-alpha.2 like mrousavy said, I had weird issues with 2.2.0.

about the flag question sorry for my english :(

what I noticed in your log is that it only contains the filters of folowing types
I (Info), W (Warning), E (Error)

and if I'm not mistaken when app crashes your log may include F (fatal error) like in this case right?, so maybe is missing a important peace of information..

could you try adb logcat '*:F' and see if it has any different output?

@Kypsis
Copy link
Author

Kypsis commented Sep 2, 2021

Edit: Actually ignore the below comment for a while while I test some more. It seems simplifying the data structure sent back from Java to just an array works without crashing.

With latest "react-native-reanimated": "2.3.0-alpha.2" and "react-native": "0.65.1", camera crashes instantly with frameProcessor enabled:

09-02 13:27:35.072 21664 22505 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd840f8 in tid 22505 (pool-31-thread-), pid 21664 (dashcam.staging)
09-02 13:27:35.176 22512 22512 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-02 13:27:35.177 22512 22512 F DEBUG   : Build fingerprint: 'google/sunfish/sunfish:11/RQ3A.210805.001.A1/7474174:user/release-keys'
09-02 13:27:35.177 22512 22512 F DEBUG   : Revision: 'MP1.0'
09-02 13:27:35.177 22512 22512 F DEBUG   : ABI: 'arm64'
09-02 13:27:35.177 22512 22512 F DEBUG   : Timestamp: 2021-09-02 13:27:35+0300
09-02 13:27:35.177 22512 22512 F DEBUG   : pid: 21664, tid: 22505, name: pool-31-thread-  >>> com.supervaisor.dashcam.staging <<<
09-02 13:27:35.177 22512 22512 F DEBUG   : uid: 10425
09-02 13:27:35.177 22512 22512 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd840f8
09-02 13:27:35.177 22512 22512 F DEBUG   :     x0  0000007b6bde0ba8  x1  b400007dd9328040  x2  0000000000000000  x3  b400007c3931a270
09-02 13:27:35.177 22512 22512 F DEBUG   :     x4  0000007b95f99350  x5  0000000000000000  x6  6d696e6165725f5f  x7  74736f4864657461
09-02 13:27:35.177 22512 22512 F DEBUG   :     x8  0000000000d840e0  x9  0000000000d840e0  x10 0000000000000000  x11 0000000000000018
09-02 13:27:35.177 22512 22512 F DEBUG   :     x12 0000007b862be418  x13 0000007b860bf074  x14 0000000000000084  x15 0000000000000001
09-02 13:27:35.177 22512 22512 F DEBUG   :     x16 0000007b8632c818  x17 0000007b86071b38  x18 0000007b4e42a000  x19 b400007dd9328040
09-02 13:27:35.177 22512 22512 F DEBUG   :     x20 b400007c3931a270  x21 0000007b95f993f8  x22 b400007c3931a270  x23 b400007dd9328040
09-02 13:27:35.177 22512 22512 F DEBUG   :     x24 0000007b95f9e000  x25 0000007b95f994c0  x26 0000007b95f9a230  x27 0000007b95f9a2a8
09-02 13:27:35.177 22512 22512 F DEBUG   :     x28 0000007b907d7e50  x29 0000007b95f993c0
09-02 13:27:35.177 22512 22512 F DEBUG   :     lr  0000007b860bf560  sp  0000007b95f99370  pc  0000007b860b6b28  pst 0000000080000000
09-02 13:27:35.333 22512 22512 F DEBUG   : backtrace:
09-02 13:27:35.333 22512 22512 F DEBUG   :       #00 pc 0000000000075b28  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #01 pc 000000000007e55c  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #02 pc 000000000003487c  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::getValueAtIndex(facebook::jsi::Array const&, unsigned long)+252) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #03 pc 00000000000cf5b4  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (facebook::jsi::Array::getValueAtIndex(facebook::jsi::Runtime&, unsigned long) const+56) (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #04 pc 00000000000f749c  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (reanimated::ShareableValue::adapt(facebook::jsi::Runtime&, facebook::jsi::Value const&, reanimated::ValueType)+2444) (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #05 pc 00000000000f7b98  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (reanimated::ShareableValue::adapt(facebook::jsi::Runtime&, facebook::jsi::Value const&, reanimated::RuntimeManager*, reanimated::ValueType)+200) (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #06 pc 00000000000fc9a0  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #07 pc 00000000000fc908  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #08 pc 00000000000fc844  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #09 pc 00000000000fc7a0  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #10 pc 00000000000fb724  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #11 pc 000000000003ea90  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #12 pc 000000000004d6fc  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #13 pc 0000000000068a88  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #14 pc 000000000006c4f4  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #15 pc 0000000000069d74  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #16 pc 000000000004d9e4  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #17 pc 00000000000350d8  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+652) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #18 pc 000000000007fa6c  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::call(facebook::jsi::Runtime&, facebook::jsi::Value const*, unsigned long) const+112) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #19 pc 0000000000100628  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #20 pc 0000000000100418  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #21 pc 0000000000100354  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #22 pc 00000000001002b0  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #23 pc 00000000000ff224  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #24 pc 000000000003ea90  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #25 pc 000000000004d6fc  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #26 pc 0000000000068a88  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #27 pc 000000000006c4f4  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #28 pc 0000000000069d74  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #29 pc 000000000004d9e4  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #30 pc 00000000000350d8  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+652) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #31 pc 0000000000082160  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Value const*, unsigned long) const+128) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #32 pc 0000000000100588  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #33 pc 0000000000100418  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #34 pc 0000000000100354  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #35 pc 00000000001002b0  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #36 pc 00000000000ff224  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libreanimated.so (BuildId: 7c17b9ae3ab2e72e28882dbfd0446d7b4961e91e)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #37 pc 000000000003ea90  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #38 pc 000000000004d6fc  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #39 pc 00000000000350d8  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+652) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #40 pc 0000000000082160  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Value const*, unsigned long) const+128) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #41 pc 000000000008208c  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, std::initializer_list<facebook::jsi::Value>) const+120) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #42 pc 0000000000080e38  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (facebook::jsi::Value facebook::jsi::Function::callWithThis<facebook::jsi::Object>(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Object&&) const+168) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #43 pc 0000000000070150  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #44 pc 0000000000070068  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #45 pc 000000000006ffec  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #46 pc 000000000006ffa0  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #47 pc 000000000006eefc  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #48 pc 0000000000085bd4  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #49 pc 0000000000084918  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (std::__ndk1::function<void (facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*>)>::operator()(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*>) const+48) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #50 pc 0000000000084560  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)+124) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.333 22512 22512 F DEBUG   :       #51 pc 000000000008593c  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (facebook::jni::detail::MethodWrapper<void (vision::CameraView::*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), &(vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)), vision::CameraView, void, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::dispatch(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)+196) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #52 pc 00000000000859c8  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (facebook::jni::detail::CallWithJniConversions<void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), void, facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::call(facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*, void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&))+72) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #53 pc 00000000000857bc  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (facebook::jni::detail::FunctionWrapper<void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, void, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::call(_JNIEnv*, _jobject*, facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*, void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<vision::CameraView, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&))+52) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #54 pc 00000000000848a0  /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/lib/arm64/libVisionCamera.so (facebook::jni::detail::MethodWrapper<void (vision::CameraView::*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&), &(vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)), vision::CameraView, void, facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&>::call(_JNIEnv*, _jobject*, facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*)+44) (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #55 pc 000000000013ced4  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #56 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #57 pc 00000000001a8a78  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #58 pc 000000000031831c  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #59 pc 000000000030e648  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #60 pc 000000000067ebc0  /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+576) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #61 pc 000000000012d914  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #62 pc 000000000000f444  [anon:dalvik-classes17.dex extracted in memory from /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/base.apk!classes17.dex] (com.mrousavy.camera.CameraView.configureSession$lambda-7$lambda-6+76)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #63 pc 000000000067f740  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #64 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #65 pc 000000000000f5d0  [anon:dalvik-classes17.dex extracted in memory from /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/base.apk!classes17.dex] (com.mrousavy.camera.CameraView.lambda$cqtIchEZdTZaV3R0UUrDpVbB1Es)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #66 pc 000000000067f740  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #67 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #68 pc 0000000000009164  [anon:dalvik-classes17.dex extracted in memory from /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/base.apk!classes17.dex] (com.mrousavy.camera.-$$Lambda$CameraView$cqtIchEZdTZaV3R0UUrDpVbB1Es.analyze+4)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #69 pc 000000000067e21c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #70 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #71 pc 00000000001e4fae  [anon:dalvik-classes.dex extracted in memory from /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/base.apk] (androidx.camera.core.ImageAnalysis.lambda$setAnalyzer$2$ImageAnalysis+26)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #72 pc 000000000067c7e4  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #73 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #74 pc 00000000001df3a8  [anon:dalvik-classes.dex extracted in memory from /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/base.apk] (androidx.camera.core.-$$Lambda$ImageAnalysis$-wcArnbkVmqkAHxpJ0VOR9b2w0Q.analyze+8)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #75 pc 000000000067e21c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #76 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #77 pc 00000000001e4642  [anon:dalvik-classes.dex extracted in memory from /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/base.apk] (androidx.camera.core.ImageAnalysisAbstractAnalyzer.lambda$analyzeImage$0$ImageAnalysisAbstractAnalyzer+74)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #78 pc 000000000067c7e4  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #79 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #80 pc 00000000001df494  [anon:dalvik-classes.dex extracted in memory from /data/app/~~RBc1mf7BmOYTbpaz6RN12g==/com.supervaisor.dashcam.staging-sAF1vj236ZpCqPYZPHWrrw==/base.apk] (androidx.camera.core.-$$Lambda$ImageAnalysisAbstractAnalyzer$8nmjUxCmaK9ClOx3NHAdwtp6S3w.run+20)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #81 pc 0000000000305c44  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6432830707213048161)+268) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #82 pc 000000000066b24c  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #83 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #84 pc 00000000021154b4  /memfd:jit-cache (deleted) (offset 0x2000000) (java.util.concurrent.ThreadPoolExecutor.runWorker+388)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #85 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #86 pc 00000000001a8a78  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #87 pc 000000000031831c  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #88 pc 000000000030e648  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #89 pc 000000000067c544  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+848) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #90 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #91 pc 00000000001f8c30  /apex/com.android.art/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor$Worker.run+4)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #92 pc 000000000067e21c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #93 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #94 pc 00000000000eb7d0  /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #95 pc 0000000000305c44  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6432830707213048161)+268) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #96 pc 000000000066b24c  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #97 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #98 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #99 pc 00000000001a8a78  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #100 pc 0000000000554cbc  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #101 pc 00000000005a4058  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1308) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #102 pc 00000000000afd4c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
09-02 13:27:35.334 22512 22512 F DEBUG   :       #103 pc 0000000000050288  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)

@mrousavy
Copy link
Owner

mrousavy commented Sep 2, 2021

again, this is just a stacktrace - the actual error message is missing. please check your logcat filters

@Kypsis
Copy link
Author

Kypsis commented Sep 2, 2021

I think this issue can be closed again as resolved. Upon further testing it seems the crashes stem from Reanimated useSharedValue and useAnimatedStyle. The frameProcessor itself does indeed run flawlessly now 👍

Edit: It seems I cheered to soon (running with frameProcessorFps={30}):

09-02 15:59:45.019 10538 10656 I ReactNativeJS: []
09-02 15:59:45.141 10538 10658 E libc++abi: terminating with uncaught exception of type std::runtime_error: Unable to retrieve jni environment. Is the thread attached?
09-02 15:59:45.142 10538 10658 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 10658 (hades), pid 10538 (dashcam.staging)
09-02 15:59:45.142 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 213, 0, 480, 435 ] },
09-02 15:59:45.142 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.142 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.142 10538 10656 I ReactNativeJS:     boundingBox: [ 94, 0, 229, 138 ] },
09-02 15:59:45.142 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.142 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.142 10538 10656 I ReactNativeJS:     boundingBox: [ 79, 191, 280, 346 ] },
09-02 15:59:45.142 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.142 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.142 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 116, 250, 581 ] } ]
09-02 15:59:45.143 10538 10656 I ReactNativeJS: []
09-02 15:59:45.178 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 213, 0, 480, 435 ] },
09-02 15:59:45.178 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.178 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.178 10538 10656 I ReactNativeJS:     boundingBox: [ 94, 0, 229, 138 ] },
09-02 15:59:45.178 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.178 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.178 10538 10656 I ReactNativeJS:     boundingBox: [ 79, 191, 280, 346 ] },
09-02 15:59:45.178 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.178 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.178 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 116, 250, 581 ] } ]
09-02 15:59:45.179 10538 10656 I ReactNativeJS: []
09-02 15:59:45.212 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 213, 0, 480, 435 ] },
09-02 15:59:45.212 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.212 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.212 10538 10656 I ReactNativeJS:     boundingBox: [ 94, 0, 229, 138 ] },
09-02 15:59:45.212 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.212 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.212 10538 10656 I ReactNativeJS:     boundingBox: [ 79, 191, 280, 346 ] },
09-02 15:59:45.212 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.212 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.212 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 116, 250, 581 ] } ]
09-02 15:59:45.213 10538 10656 I ReactNativeJS: []
09-02 15:59:45.275 10919 10919 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
09-02 15:59:45.275   958   958 I tombstoned: received crash request for pid 10658
09-02 15:59:45.276 10919 10919 I crash_dump64: performing dump of process 10538 (target tid = 10658)
09-02 15:59:45.285 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 213, 0, 480, 436 ] },
09-02 15:59:45.285 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.285 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.285 10538 10656 I ReactNativeJS:     boundingBox: [ 94, 0, 229, 138 ] },
09-02 15:59:45.285 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.285 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.285 10538 10656 I ReactNativeJS:     boundingBox: [ 79, 192, 280, 346 ] },
09-02 15:59:45.285 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.285 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.285 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 116, 250, 581 ] } ]
09-02 15:59:45.287 10919 10919 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-02 15:59:45.288 10919 10919 F DEBUG   : Build fingerprint: 'google/sunfish/sunfish:11/RQ3A.210805.001.A1/7474174:user/release-keys'
09-02 15:59:45.288 10919 10919 F DEBUG   : Revision: 'MP1.0'
09-02 15:59:45.288 10919 10919 F DEBUG   : ABI: 'arm64'
09-02 15:59:45.288 10538 10656 I ReactNativeJS: []
09-02 15:59:45.289 10919 10919 F DEBUG   : Timestamp: 2021-09-02 15:59:45+0300
09-02 15:59:45.289 10919 10919 F DEBUG   : pid: 10538, tid: 10658, name: hades  >>> com.supervaisor.dashcam.staging <<<
09-02 15:59:45.289 10919 10919 F DEBUG   : uid: 10425
09-02 15:59:45.289 10919 10919 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
09-02 15:59:45.289 10919 10919 F DEBUG   : Abort message: 'terminating with uncaught exception of type std::runtime_error: Unable to retrieve jni environment. Is the thread attached?'
09-02 15:59:45.289 10919 10919 F DEBUG   :     x0  0000000000000000  x1  00000000000029a2  x2  0000000000000006  x3  0000007b77b5cf20
09-02 15:59:45.289 10919 10919 F DEBUG   :     x4  fefefefefefefeff  x5  fefefefefefefeff  x6  fefefefefefefeff  x7  7f7f7f7f7f7f7f7f
09-02 15:59:45.289 10919 10919 F DEBUG   :     x8  00000000000000f0  x9  fc889ff463b5c1aa  x10 0000000000000000  x11 ffffffc0fffffbdf
09-02 15:59:45.289 10919 10919 F DEBUG   :     x12 0000000000000001  x13 0000042a01da94db  x14 000859bb2a95c564  x15 0000000003ed606a
09-02 15:59:45.289 10919 10919 F DEBUG   :     x16 0000007e9cc0fc80  x17 0000007e9cbf1870  x18 0000007b6b67e000  x19 000000000000292a
09-02 15:59:45.289 10919 10919 F DEBUG   :     x20 00000000000029a2  x21 00000000ffffffff  x22 ffffff80ffffffc8  x23 0000007b77b5d170
09-02 15:59:45.289 10919 10919 F DEBUG   :     x24 0000007b77b5d050  x25 0000007b77b5d090  x26 0000000000000001  x27 0000000000000001
09-02 15:59:45.289 10919 10919 F DEBUG   :     x28 00000000000019e0  x29 0000007b77b5cfa0
09-02 15:59:45.289 10919 10919 F DEBUG   :     lr  0000007e9cba52a0  sp  0000007b77b5cf00  pc  0000007e9cba52cc  pst 0000000000000000
09-02 15:59:45.291 10919 10919 F DEBUG   : backtrace:
09-02 15:59:45.291 10919 10919 F DEBUG   :       #00 pc 000000000004e2cc  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
09-02 15:59:45.291 10919 10919 F DEBUG   :       #01 pc 00000000000a01bc  /data/app/~~57p93I9D81Raool0fMBxTA==/com.supervaisor.dashcam.staging-xghI3impJLhQ8NP3P4eLDA==/lib/arm64/libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
09-02 15:59:45.291 10919 10919 F DEBUG   :       #02 pc 00000000000a03b0  /data/app/~~57p93I9D81Raool0fMBxTA==/com.supervaisor.dashcam.staging-xghI3impJLhQ8NP3P4eLDA==/lib/arm64/libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
09-02 15:59:45.291 10919 10919 F DEBUG   :       #03 pc 00000000000b4208  /data/app/~~57p93I9D81Raool0fMBxTA==/com.supervaisor.dashcam.staging-xghI3impJLhQ8NP3P4eLDA==/lib/arm64/libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
09-02 15:59:45.291 10919 10919 F DEBUG   :       #04 pc 00000000000b41a0  /data/app/~~57p93I9D81Raool0fMBxTA==/com.supervaisor.dashcam.staging-xghI3impJLhQ8NP3P4eLDA==/lib/arm64/libc++_shared.so (std::terminate()+36) (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
09-02 15:59:45.291 10919 10919 F DEBUG   :       #05 pc 0000000000057424  /data/app/~~57p93I9D81Raool0fMBxTA==/com.supervaisor.dashcam.staging-xghI3impJLhQ8NP3P4eLDA==/lib/arm64/libVisionCamera.so (BuildId: 58f3126a98c6e06c49f9f5f891b2733c3aded591)
09-02 15:59:45.313 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 213, 0, 480, 436 ] },
09-02 15:59:45.313 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.313 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.313 10538 10656 I ReactNativeJS:     boundingBox: [ 94, 0, 229, 139 ] },
09-02 15:59:45.313 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.313 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.313 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 192, 280, 346 ] },
09-02 15:59:45.313 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.313 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.313 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 116, 250, 581 ] } ]
09-02 15:59:45.315 10538 10656 I ReactNativeJS: []
09-02 15:59:45.372 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 213, 0, 480, 436 ] },
09-02 15:59:45.372 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.372 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.372 10538 10656 I ReactNativeJS:     boundingBox: [ 94, 0, 229, 139 ] },
09-02 15:59:45.372 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.372 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.372 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 192, 280, 346 ] },
09-02 15:59:45.372 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.372 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.372 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 116, 250, 581 ] } ]
09-02 15:59:45.373   984   984 W SoloThreadMana: type=1400 audit(0.0:333674): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
09-02 15:59:45.375 10538 10656 I ReactNativeJS: []
09-02 15:59:45.403   984   984 W SoloThreadMana: type=1400 audit(0.0:333675): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
09-02 15:59:45.415 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 214, 0, 480, 436 ] },
09-02 15:59:45.415 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.415 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.415 10538 10656 I ReactNativeJS:     boundingBox: [ 94, 0, 229, 139 ] },
09-02 15:59:45.415 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.415 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.415 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 192, 280, 347 ] },
09-02 15:59:45.415 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.415 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.415 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 117, 250, 580 ] } ]
09-02 15:59:45.422 10538 10656 I ReactNativeJS: []
09-02 15:59:45.436   984   984 W SoloThreadMana: type=1400 audit(0.0:333676): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
09-02 15:59:45.455 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 214, 0, 480, 436 ] },
09-02 15:59:45.455 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.455 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.455 10538 10656 I ReactNativeJS:     boundingBox: [ 94, 0, 229, 139 ] },
09-02 15:59:45.455 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.455 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.455 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 192, 280, 347 ] },
09-02 15:59:45.455 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.455 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.455 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 117, 250, 580 ] } ]
09-02 15:59:45.457 10538 10656 I ReactNativeJS: []
09-02 15:59:45.470   984   984 W SoloThreadMana: type=1400 audit(0.0:333677): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
09-02 15:59:45.492 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 214, 0, 480, 436 ] },
09-02 15:59:45.492 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.492 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.492 10538 10656 I ReactNativeJS:     boundingBox: [ 94, 0, 229, 139 ] },
09-02 15:59:45.492 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.492 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.492 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 192, 280, 347 ] },
09-02 15:59:45.492 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.492 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.492 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 117, 250, 580 ] } ]
09-02 15:59:45.493 10538 10656 I ReactNativeJS: []
09-02 15:59:45.500   984   984 W SoloThreadMana: type=1400 audit(0.0:333678): avc: denied { search } for name="camera" dev="dm-12" ino=209 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:camera_vendor_data_file:s0 tclass=dir permissive=0
09-02 15:59:45.553 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 212, 0, 480, 439 ] },
09-02 15:59:45.553 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.553 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.553 10538 10656 I ReactNativeJS:     boundingBox: [ 95, 0, 230, 139 ] },
09-02 15:59:45.553 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.553 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.553 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 193, 280, 347 ] },
09-02 15:59:45.553 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.553 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.553 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 117, 250, 580 ] } ]
09-02 15:59:45.554 10538 10656 I ReactNativeJS: []
09-02 15:59:45.584 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 212, 0, 480, 439 ] },
09-02 15:59:45.584 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.584 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.584 10538 10656 I ReactNativeJS:     boundingBox: [ 95, 0, 230, 139 ] },
09-02 15:59:45.584 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.584 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.584 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 193, 280, 347 ] },
09-02 15:59:45.584 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.584 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.584 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 118, 250, 580 ] } ]
09-02 15:59:45.585 10538 10656 I ReactNativeJS: []
09-02 15:59:45.590  3310  3334 D DeviceStateHelper: Audo mode: 0
09-02 15:59:45.591  3310  3334 D DeviceStateHelper: Audo mode: 0
09-02 15:59:45.623 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 212, 0, 480, 439 ] },
09-02 15:59:45.623 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.623 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.623 10538 10656 I ReactNativeJS:     boundingBox: [ 95, 0, 230, 139 ] },
09-02 15:59:45.623 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.623 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.623 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 193, 280, 347 ] },
09-02 15:59:45.623 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.623 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.623 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 118, 250, 580 ] } ]
09-02 15:59:45.625 10538 10656 I ReactNativeJS: []
09-02 15:59:45.688 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 212, 0, 480, 440 ] },
09-02 15:59:45.688 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.688 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.688 10538 10656 I ReactNativeJS:     boundingBox: [ 95, 0, 230, 140 ] },
09-02 15:59:45.688 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.688 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.688 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 193, 280, 347 ] },
09-02 15:59:45.688 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.688 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.688 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 118, 250, 580 ] } ]
09-02 15:59:45.688 10538 10656 I ReactNativeJS: []
09-02 15:59:45.719 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 212, 0, 480, 440 ] },
09-02 15:59:45.719 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.719 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.719 10538 10656 I ReactNativeJS:     boundingBox: [ 95, 0, 230, 140 ] },
09-02 15:59:45.719 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.719 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.719 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 193, 280, 348 ] },
09-02 15:59:45.719 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.719 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.719 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 118, 250, 580 ] } ]
09-02 15:59:45.726 10538 10656 I ReactNativeJS: []
09-02 15:59:45.751 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 212, 0, 480, 440 ] },
09-02 15:59:45.751 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.751 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.751 10538 10656 I ReactNativeJS:     boundingBox: [ 95, 0, 230, 140 ] },
09-02 15:59:45.751 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.751 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.751 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 193, 280, 348 ] },
09-02 15:59:45.751 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.751 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.751 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 118, 250, 580 ] } ]
09-02 15:59:45.760 10538 10656 I ReactNativeJS: []
09-02 15:59:45.789 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 212, 0, 480, 440 ] },
09-02 15:59:45.789 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.789 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.789 10538 10656 I ReactNativeJS:     boundingBox: [ 95, 0, 230, 140 ] },
09-02 15:59:45.789 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.789 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.789 10538 10656 I ReactNativeJS:     boundingBox: [ 80, 193, 280, 348 ] },
09-02 15:59:45.789 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.789 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.789 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 118, 250, 580 ] } ]
09-02 15:59:45.790 10538 10656 I ReactNativeJS: []
09-02 15:59:45.849   958   958 E tombstoned: Tombstone written to: /data/tombstones/tombstone_19
09-02 15:59:45.852 10538 10656 I ReactNativeJS: [ { trackingId: 98, labels: [], boundingBox: [ 212, 0, 480, 440 ] },
09-02 15:59:45.852 10538 10656 I ReactNativeJS:   { trackingId: 104,
09-02 15:59:45.852 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.79296875, label: 'Plant' } ],
09-02 15:59:45.852 10538 10656 I ReactNativeJS:     boundingBox: [ 95, 0, 230, 140 ] },
09-02 15:59:45.852 10538 10656 I ReactNativeJS:   { trackingId: 105,
09-02 15:59:45.852 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Plant' } ],
09-02 15:59:45.852 10538 10656 I ReactNativeJS:     boundingBox: [ 81, 194, 281, 348 ] },
09-02 15:59:45.852 10538 10656 I ReactNativeJS:   { trackingId: 108,
09-02 15:59:45.852 10538 10656 I ReactNativeJS:     labels: [ { confidence: 0.58203125, label: 'Home good' } ],
09-02 15:59:45.852 10538 10656 I ReactNativeJS:     boundingBox: [ 0, 118, 249, 580 ] } ]
09-02 15:59:41.390  1645  2147 I chatty  : uid=1000(system) ConnectivitySer identical 2 lines
09-02 15:59:44.401  1645  2147 D ConnectivityService: NetReassign [no changes]
09-02 15:59:45.853  1645 10925 I DropBoxManagerService: add tag=data_app_native_crash isTagEnabled=true flags=0x2
09-02 15:59:45.853 10538 10656 I ReactNativeJS: []
09-02 15:59:45.854  1645 10924 W ActivityTaskManager:   Force finishing activity com.supervaisor.dashcam.staging/com.supervaisor.dashcam.MainActivity
09-02 15:59:45.856  1645  1892 I BootReceiver: Copying /data/tombstones/tombstone_19 to DropBox (SYSTEM_TOMBSTONE)
09-02 15:59:45.857  1645  1892 I DropBoxManagerService: add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x2
09-02 15:59:45.867  1002  1093 D VSC     : @ 238462.507: [WO] isFlat() nearest_rotation: 1, flat_angle: 40
09-02 15:59:45.867  1002  1093 D VSC     : @ 238462.507: [WO] orientation angle 90, orientation 1
09-02 15:59:45.886  1645  1813 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
09-02 15:59:45.886  1645  1813 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
09-02 15:59:45.887  1645  1813 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
09-02 15:59:45.896  1645  1813 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
09-02 15:59:45.917 26778 27262 I AssistantForeground: Get launcher package: com.google.android.apps.nexuslauncher
09-02 15:59:45.919 26778 26966 I A       : setScreenState
09-02 15:59:45.919 26778 26966 I A       : Dropping message not meant for SystemUI.
09-02 15:59:45.972   984  2101 I native  : shared_mapping_pool.cc:45 New YuvImage mapping for 274 type = 2 width = 1920 height = 1440 stride = 2048 access = 1
09-02 15:59:45.974   984  2101 I native  : shared_mapping_pool.cc:82 New Buffer mapping for 275 size = 345600 access = 0
09-02 15:59:45.976   984  2101 I native  : shared_mapping_pool.cc:82 New Buffer mapping for 278 size = 27648 access = 0
09-02 15:59:46.005   984  2103 I native  : shared_mapping_pool.cc:45 New YuvImage mapping for 266 type = 2 width = 1920 height = 1440 stride = 2048 access = 1
09-02 15:59:46.006   984  2103 I native  : shared_mapping_pool.cc:82 New Buffer mapping for 269 size = 345600 access = 0
09-02 15:59:46.009   984  2103 I native  : shared_mapping_pool.cc:82 New Buffer mapping for 281 size = 27648 access = 0
09-02 15:59:46.024  1645  5207 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=1561, [ Capabilities: NOT_RESTRICTED&TRUSTED&NOT_VPN&FOREGROUND Uid: 10425 AdministratorUids: [] RequestorUid: 10425 RequestorPackageName: com.supervaisor.dashcam.staging] ], android.os.BinderProxy@1642596)
09-02 15:59:46.024  1002  1002 I sensors-hal: [hal]batch_physical_sensor:279, android.sensor.accelerometer/11, period=66667000, max_latency=0
09-02 15:59:46.025  1002  1002 I sensors-hal: [hal]batch_physical_sensor:288, android.sensor.accelerometer/11, period=66667000, max_latency=0 request completed
09-02 15:59:46.025  1645  4780 I WindowManager: WIN DEATH: Window{a0b0d14 u0 com.supervaisor.dashcam.staging/com.supervaisor.dashcam.MainActivity}
09-02 15:59:46.025  1645  4780 W InputDispatcher: Attempted to unregister already unregistered input channel 'a0b0d14 com.supervaisor.dashcam.staging/com.supervaisor.dashcam.MainActivity (server)'
09-02 15:59:46.025  1158 17874 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Broken pipe (-32)
09-02 15:59:46.025   966   966 I Zygote  : Process 10538 exited due to signal 6 (Aborted)
09-02 15:59:46.025   984 10861 W GCH_CameraDeviceSession: RequestStreamBuffers: Requesting stream buffer failed. (buffer_returns has 1 entries)
09-02 15:59:46.025   984 10861 I GCH_CameraDeviceSession: RequestStreamBuffers: stream -1, buffer request error 3
09-02 15:59:46.025  1158  1335 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -32
09-02 15:59:46.025  1158  1335 E Camera3-OutputStream: returnBufferCheckedLocked: Stream 0: Error queueing buffer to native window: Broken pipe (-32)
09-02 15:59:46.026   984 10861 I StreamBufferCacheManager: AllocateDummyBufferLocked: [sbc] Dummy buffer allocated: strm 0 buffer 0xb400006e74ae9ad0
09-02 15:59:46.026   984 10861 W StreamBufferCacheManager: Refill: Failed to acquire buffer for stream 0, error 3
09-02 15:59:46.026   984 10861 W StreamBufferCacheManager: Refill: Stream 0 is disconnected or unknown error observed.This stream is marked as inactive.
09-02 15:59:46.026   984 10861 I StreamBufferCacheManager: Refill: Stream 0 begin to use dummy buffer.
09-02 15:59:46.026   984  2099 I GCH_CameraDeviceSession: RequestBuffersFromStreamBufferCacheManager: [sbc] Dummy buffer returned for stream: 0, frame: 1402
09-02 15:59:46.029   984  2109 I GCH_CameraDeviceSessionHwlImpl: FlushLocked Flushing pipelines
09-02 15:59:46.029   984  2109 I GCH_CameraPipelineHwl: Flush: flushing pipeline (is_flushing=1, async_publish=1)
09-02 15:59:46.030  1645  2347 I ActivityManager: Process com.supervaisor.dashcam.staging (pid 10538) has died: prcp TOP
09-02 15:59:46.029   984  2109 I GCH_CameraPipelineHwl: Flush: flushing pipeline (is_flushing=1, async_publish=1)
09-02 15:59:46.031  1002  1002 I sensors-hal: [hal]activate_physical_sensor:216, android.sensor.accelerometer/11 en=0
09-02 15:59:46.031   984 10861 I StreamBufferCacheManager: Refill: Already notified for flushing or stream already deactived.
09-02 15:59:46.031  1645  1820 I libprocessgroup: Successfully killed process cgroup uid 10425 pid 10538 in 0ms
09-02 15:59:46.032   984  2102 I GCH_CameraDeviceSession: RequestBuffersFromStreamBufferCacheManager: [sbc] Dummy buffer returned for stream: 0, frame: 1403
09-02 15:59:46.032   984  2102 E CamX    : [ERROR][CSL    ] camxcslhwinternal.cpp:3002 CSLHwInternalDefaultIoctl2() Ioctl returned -1, failed for device /dev/video1 (Type:CSLHwRequestManager, FD:9, Index:-1)with error reason Operation already in progress
09-02 15:59:46.032   984  2102 E CamX    : [ERROR][PPROC  ] camxipenode.cpp:6066 ExecuteProcessRequest() IPE:0 Submit packets with requestId = 1404 failed 28
09-02 15:59:46.035   984 10861 I StreamBufferCacheManager: Refill: Already notified for flushing or stream already deactived.
09-02 15:59:46.036  1002  1002 I sensors-hal: [hal]activate_physical_sensor:227, android.sensor.accelerometer/11 en=0 completed
09-02 15:59:46.037   984  2098 E CamX    : [ERROR][SENSOR ] googoiscommunicator.cpp:665 SubmitCommand() IMX363: Failed submitting OIS communicator packet.
09-02 15:59:46.037   984  2098 E CamX    : [ERROR][SENSOR ] googoiscommunicator.cpp:755 UpdateShiftBuffer() IMX363: Failed getting OIS shift from kernel.
09-02 15:59:46.040  2266  2283 I ndroid.systemu: NativeAlloc concurrent copying GC freed 145470(4705KB) AllocSpace objects, 0(0B) LOS objects, 75% free, 13MB/53MB, paused 114us total 155.571ms
09-02 15:59:46.040  2266  2283 W ndroid.systemu: Reducing the number of considered missed Gc histogram windows from 104 to 100
09-02 15:59:46.040   984  2109 I CamX    : [CONFIG][CORE   ] camxsession.cpp:6389 SetAELockRange() Set AE lock Range from 0 - 0 for PipelineIndex:0
09-02 15:59:46.040   984  2109 I CamX    : [CONFIG][CORE   ] camxsession.cpp:406 Flush() Flushing 0xb400006d75d5d040 took 11 ms
09-02 15:59:46.040   984  2109 I CamX    : [CONFIG][CORE   ] camxsession.cpp:406 Flush() Flushing 0xb400006d6ad55040 took 0 ms
09-02 15:59:46.040   984  2109 I GCH_CameraPipelineHwl: Flush: flushing pipeline (is_flushing=0, async_publish=1)

@Kypsis
Copy link
Author

Kypsis commented Sep 2, 2021

Seems returning array of arrays with only bounding boxes does not crash (tested with frameProcessor running for over 30 minutes).

@mrousavy
Copy link
Owner

mrousavy commented Sep 2, 2021

Maybe it's a race condition? I'm just so confused by the error - Unable to retrieve jni environment. Is the thread attached? - I use fbjni and Hybrid Classes, Threads should be attached automatically (also I only use 2 Threads, Main and Frame Processor).

I'm not too familiar with native code debugging on Android, but I'd love to have a stacktrace to find out what code from VisionCamera or at least Reanimated is causing this crash, do you maybe know how you can get a full stacktrace? Maybe you have to extract C++ symbols to demystify the tombstone?

We shouldn't exclude the possibility that this crash might also happen because of fbjni or Reanimated - we'll only know for sure when I have a full stacktrace...

(for example in Xcode when the app crashes, the IDE pauses at the line that causes the crash, and on the left side you have a full view of all functions and line numbers that are currently in the stack, don't know how you can get that info in Android Studio)

@Kypsis
Copy link
Author

Kypsis commented Sep 2, 2021

This keeps getting weirder (at least for me as non-native developer). Using WritableNativeArray is ok (in any combination) but using WritableNativeMap makes the app crash. The more WritableNativeMaps used the faster it crashes. Smoke testing this is incredibly tedious. Will see tomorrow about proper stacktrace if no one else comes up with better ideas.

@Kypsis
Copy link
Author

Kypsis commented Sep 3, 2021

With "react-native-reanimated": "2.3.0-alpha.3" and using WritableNativeMap the crash free duration increases from under 20 seconds to over 5 minutes. It will still crash with the same message in the end though. This bug probably can be classified as Reanimated bug.

@mrousavy
Copy link
Owner

mrousavy commented Sep 3, 2021

Could you create an issue at Reanimated?

@alexstanbury
Copy link
Contributor

Maybe it's a race condition? I'm just so confused by the error - Unable to retrieve jni environment. Is the thread attached? - I use fbjni and Hybrid Classes, Threads should be attached automatically (also I only use 2 Threads, Main and Frame Processor).

I'm not too familiar with native code debugging on Android, but I'd love to have a stacktrace to find out what code from VisionCamera or at least Reanimated is causing this crash, do you maybe know how you can get a full stacktrace? Maybe you have to extract C++ symbols to demystify the tombstone?

We shouldn't exclude the possibility that this crash might also happen because of fbjni or Reanimated - we'll only know for sure when I have a full stacktrace...

(for example in Xcode when the app crashes, the IDE pauses at the line that causes the crash, and on the left side you have a full view of all functions and line numbers that are currently in the stack, don't know how you can get that info in Android Studio)

I'm getting this Unable to retrieve jni environment. Is the thread attached? crash immediately after taking a photo with the latest fix/two-plugins branch. This is the error log my phone gives me, is it any help?

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Xiaomi/cepheus/cepheus:10/QKQ1.190825.002/V12.0.4.0.QFAMIXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2021-09-23 15:47:46+0100
pid: 12584, tid: 12641, name: hades  >>> com.mrousavy.camera.example <<<
uid: 10523
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: 'terminating with uncaught exception of type std::runtime_error: Unable to retrieve jni environment. Is the thread attached?'
    x0  0000000000000000  x1  0000000000003161  x2  0000000000000006  x3  000000759ca4cff0
    x4  fefefefefefeff0f  x5  fefefefefefeff0f  x6  fefefefefefeff0f  x7  7f7f7f7f7f7f7f7f
    x8  00000000000000f0  x9  e0ddf8cba9cd1d15  x10 0000000000000001  x11 0000000000000000
    x12 fffffff0fffffbdf  x13 00000000614c9392  x14 000b29504467470a  x15 0000845db3947c77
    x16 00000076920a3738  x17 0000007692081d20  x18 0000007591422000  x19 0000000000003128
    x20 0000000000003161  x21 00000000ffffffff  x22 ffffff80ffffffc8  x23 000000759ca4d240
    x24 000000759ca4d120  x25 000000759ca4d160  x26 000000000000000e  x27 0000000000000001
    x28 00000000000000d8  x29 000000759ca4d090
    sp  000000759ca4cfd0  lr  0000007692033404  pc  0000007692033430

backtrace:
      #00 pc 0000000000073430  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 084c8a81b8c78e19cd9a1ff6208e77cf)
      #01 pc 00000000000a01bc  /data/app/com.mrousavy.camera.example-2_-lkILEl1U3F43ectADMw==/lib/arm64/libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
      #02 pc 00000000000a03b0  /data/app/com.mrousavy.camera.example-2_-lkILEl1U3F43ectADMw==/lib/arm64/libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
      #03 pc 00000000000b4208  /data/app/com.mrousavy.camera.example-2_-lkILEl1U3F43ectADMw==/lib/arm64/libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
      #04 pc 00000000000b41a0  /data/app/com.mrousavy.camera.example-2_-lkILEl1U3F43ectADMw==/lib/arm64/libc++_shared.so (std::terminate()+36) (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
      #05 pc 0000000000057754  /data/app/com.mrousavy.camera.example-2_-lkILEl1U3F43ectADMw==/lib/arm64/libVisionCamera.so (BuildId: 775d4bb5893c4251bc595467643c70e96ab7e2b8)```

@alexstanbury
Copy link
Contributor

Downgrading reanimated to 2.2.2 from the 2.3 alpha version seems to have resolved my issue, see software-mansion/react-native-reanimated#2256

@mrousavy
Copy link
Owner

I believe that's because of Hermes. Hermes introduced a new garbage collector (Hades GC) which runs on a separate Thread and the JNI environment is not attached here. I don't think this is a VisionCamera issue, but if it is feel free to re-open.

@mrousavy
Copy link
Owner

The C++ crash that occured after running a Frame Processor for a long time (on Hermes 0.8.x+) is finally fully fixed in #455 + Reanimated v2.3.0-beta.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment