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

Constantly getting random crashes every now and then🐛 #613

Closed
3 of 4 tasks
sijav opened this issue Nov 26, 2021 · 5 comments · Fixed by #1466
Closed
3 of 4 tasks

Constantly getting random crashes every now and then🐛 #613

sijav opened this issue Nov 26, 2021 · 5 comments · Fixed by #1466
Labels
🐛 bug Something isn't working

Comments

@sijav
Copy link

sijav commented Nov 26, 2021

What were you trying to do?

After some time camera opening and processing QR codes I'm getting the following issues.

Reproduceable Code

I'm also using QRCode as a frame processor

What happened instead?

Fatal signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x7b3e7be02e in tid 32375 (pool-34-thread-), pid 32010 (my.app.id)

Relevant log output

2021-11-26 06:00:55.020 32010-32375/? A/libc: Fatal signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x7b3e7be02e in tid 32375 (pool-34-thread-), pid 32010 (my.app.id)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #00 pc 00000000000f16d0  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #01 pc 00000000000eb8cc  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #02 pc 00000000000e826c  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #03 pc 00000000000eacf0  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #04 pc 000000000005b180  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #05 pc 000000000005a040  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #06 pc 00000000000260d8  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #07 pc 00000000000152c8  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libVisionCamera.so (vision::JSIJNIConversion::convertJNIObjectToJSIValue(facebook::jsi::Runtime&, facebook::jni::basic_strong_ref<_jobject*, facebook::jni::LocalReferenceAllocator> const&)+728) (BuildId: 330ff3b65273e029876e71de45e53cc16f8d7f4b)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #08 pc 0000000000015440  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libVisionCamera.so (vision::JSIJNIConversion::convertJNIObjectToJSIValue(facebook::jsi::Runtime&, facebook::jni::basic_strong_ref<_jobject*, facebook::jni::LocalReferenceAllocator> const&)+1104) (BuildId: 330ff3b65273e029876e71de45e53cc16f8d7f4b)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #09 pc 000000000001d80c  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libVisionCamera.so (BuildId: 330ff3b65273e029876e71de45e53cc16f8d7f4b)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #10 pc 00000000000303bc  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #11 pc 000000000002fd5c  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #12 pc 00000000000363a4  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #13 pc 000000000004f000  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.388 32526-32526/? A/DEBUG:       #14 pc 0000000000050974  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #15 pc 0000000000050130  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #16 pc 0000000000036608  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #17 pc 0000000000026950  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #18 pc 00000000000b9f6c  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (facebook::jsi::Function::call(facebook::jsi::Runtime&, facebook::jsi::Value const*, unsigned long) const+104) (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #19 pc 00000000000d7114  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #20 pc 00000000000d6ec4  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #21 pc 00000000000d6e08  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #22 pc 00000000000d6d68  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #23 pc 00000000000d5c30  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #24 pc 00000000000303bc  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #25 pc 000000000002fd5c  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #26 pc 00000000000363a4  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #27 pc 000000000004f000  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #28 pc 0000000000050974  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #29 pc 0000000000050130  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #30 pc 0000000000036608  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #31 pc 0000000000026950  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #32 pc 00000000000b9f6c  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (facebook::jsi::Function::call(facebook::jsi::Runtime&, facebook::jsi::Value const*, unsigned long) const+104) (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #33 pc 00000000000d7114  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #34 pc 00000000000d6ec4  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #35 pc 00000000000d6e08  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #36 pc 00000000000d6d68  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #37 pc 00000000000d5c30  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #38 pc 00000000000303bc  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #39 pc 000000000002fd5c  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #40 pc 00000000000363a4  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #41 pc 000000000004f000  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #42 pc 0000000000050974  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #43 pc 0000000000050130  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #44 pc 0000000000036608  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #45 pc 0000000000026950  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #46 pc 00000000000c7cf0  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Value const*, unsigned long) const+120) (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #47 pc 00000000000d7060  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #48 pc 00000000000d6ec4  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #49 pc 00000000000d6e08  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #50 pc 00000000000d6d68  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #51 pc 00000000000d5c30  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libreanimated.so (BuildId: 82beb6674b1fcf7c178099fb1b3c8eab556ca2d3)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #52 pc 00000000000303bc  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #53 pc 000000000002fd5c  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #54 pc 00000000000363a4  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #55 pc 0000000000026950  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libhermes.so (BuildId: eddee6deb8a97571592812907782e8a8e580c0c8)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #56 pc 000000000001fbac  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/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+132) (BuildId: 330ff3b65273e029876e71de45e53cc16f8d7f4b)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #57 pc 000000000001cfdc  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libVisionCamera.so (BuildId: 330ff3b65273e029876e71de45e53cc16f8d7f4b)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #58 pc 0000000000020070  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/lib/arm64/libVisionCamera.so (vision::CameraView::frameProcessorCallback(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<vision::JImageProxy, facebook::jni::JObject, void>::_javaobject*> const&)+40) (BuildId: 330ff3b65273e029876e71de45e53cc16f8d7f4b)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #59 pc 0000000000020714  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/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&)+24) (BuildId: 330ff3b65273e029876e71de45e53cc16f8d7f4b)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #60 pc 00000000000206a8  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/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&))+60) (BuildId: 330ff3b65273e029876e71de45e53cc16f8d7f4b)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #61 pc 000000000017ae48  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/oat/arm64/base.odex (art_jni_trampoline+152)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #62 pc 0000000000670e4c  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/oat/arm64/base.odex (com.mrousavy.camera.CameraView.m+396)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #63 pc 0000000000672500  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/oat/arm64/base.odex (com.mrousavy.camera.b.a+96)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #64 pc 000000000039d978  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/oat/arm64/base.odex (androidx.camera.core.o.a+152)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #65 pc 00000000003a20c0  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/oat/arm64/base.odex (androidx.camera.core.w2.g+688)
2021-11-26 06:00:55.389 32526-32526/? A/DEBUG:       #66 pc 00000000001eb3fc  /data/app/DATA_HASH/my.app.id-MY_APP_SIG/oat/arm64/base.odex (androidx.camera.core.r.run+172)

Device

Android Miui 12.5 Xiaomi K20 pro

VisionCamera Version

2.9.4

Additional information

@sijav sijav added the 🐛 bug Something isn't working label Nov 26, 2021
@mrousavy
Copy link
Owner

mrousavy commented Jan 4, 2022

Fixed in the latest update! Hope this works for you :) If you appreciate the work I do in my free time, please consider sponsoring me on GitHub, it would mean a lot to me. 🖤

@Mohamed-kassim
Copy link

Mohamed-kassim commented Mar 16, 2022

@mrousavy the app is also crashing for me using vision camera face detector as a processor
actually, it crashes in only two cases
1- saving the code to trigger a fast refresh
2- navigating back from the camera to the previous screen
our hander have a long process done on catched face, I noticed that when I decrease the logic code inside the handler the crash doesn't happen every time I need to repeatedly trigger fast refresh to crash
I tried the issue with and without flipper and it happens
this is my trace log

Details

`*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Build fingerprint: 'POCO/surya_global/surya:11/RKQ1.200826.002/V12.5.5.0.RJGMIXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2022-03-17 01:27:55+0200
pid: 7297, tid: 7391, name: mqt_js >>> com.hayasolutions.attendlab <<<
uid: 10636
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1e
Cause: null pointer dereference
x0 000000000000000e x1 b400006fafc119c0 x2 000000000000229b x3 0000000000000001
x4 0000006fa331c8a0 x5 0000006f9df6689d x6 0000000000000000 x7 0000006f9f19fe79
x8 d644f1108486d3e3 x9 0000000000000000 x10 000000000000005f x11 0000000000000000
x12 000000000000003c x13 0000000000000007 x14 0000006f9f19c994 x15 0000000000000002
x16 0000000000000004 x17 0000000000000000 x18 0000006fa0e2e000 x19 0000006fa331c8a0
x20 000000000000229b x21 b400006fafc119c0 x22 b400006f8f4e4030 x23 b400006fafc119c0
x24 0000006fa3320000 x25 0000000000000000 x26 0000000000000000 x27 0000006fa331c900
x28 b400006fafc119d0 x29 0000006fa331c810
lr 0000006fc3019680 sp 0000006fa331c7d0 pc 0000006fc2ffadd0 pst 0000000080000000
backtrace:
#00 pc 000000000004edd0 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#1 pc 000000000006d67c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#2 pc 000000000006e15c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#3 pc 0000000000027c1c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#04 pc 00000000000c9e10 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreanimated.so (offset 0x30ab000) (facebook::jsi::Object::getProperty(facebook::jsi::Runtime&, facebook::jsi::String const&) const+52) (BuildId: beda31e6b53a653c7ea41497a9312003fca670bc)
#5 pc 00000000000c60b8 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreanimated.so (offset 0x30ab000) (facebook::jsi::Object::getProperty(facebook::jsi::Runtime&, char const*) const+96) (BuildId: beda31e6b53a653c7ea41497a9312003fca670bc)
#6 pc 00000000000efa14 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreanimated.so (offset 0x30ab000) (reanimated::ShareableValue::adapt(facebook::jsi::Runtime&, facebook::jsi::Value const&, reanimated::ValueType)+108) (BuildId: beda31e6b53a653c7ea41497a9312003fca670bc)
#7 pc 00000000000f0b00 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreanimated.so (offset 0x30ab000) (reanimated::ShareableValue::adapt(facebook::jsi::Runtime&, facebook::jsi::Value const&, reanimated::RuntimeManager*, reanimated::ValueType)+236) (BuildId: beda31e6b53a653c7ea41497a9312003fca670bc)
#8 pc 00000000000e37e8 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreanimated.so (offset 0x30ab000) (reanimated::MutableValue::set(facebook::jsi::Runtime&, facebook::jsi::PropNameID const&, facebook::jsi::Value const&)+1184) (BuildId: beda31e6b53a653c7ea41497a9312003fca670bc)
#9 pc 0000000000030824 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#10 pc 000000000006f0bc /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#11 pc 0000000000057d34 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#12 pc 0000000000055f8c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#13 pc 000000000003aa1c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#14 pc 00000000000390c8 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#15 pc 00000000000f3518 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#16 pc 000000000003a730 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#17 pc 0000000000054d50 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#18 pc 000000000005dd90 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#19 pc 0000000000055f8c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#20 pc 000000000003aa1c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#21 pc 00000000000390c8 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#22 pc 00000000000f3518 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#23 pc 000000000003a730 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#24 pc 0000000000054d50 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#25 pc 000000000005dd90 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#26 pc 0000000000055f8c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#27 pc 000000000003aa1c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#28 pc 000000000003a1f4 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#29 pc 000000000002946c /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes.so (offset 0x1eca000) (BuildId: d6a741d92f2e596cdaa865206992ce4b9c00df73)
#30 pc 00000000000231ec /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes-executor-debug.so (offset 0x1d2d000) (facebook::jsi::Value facebook::jsi::Function::call<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > const&, facebook::jsi::Value>(facebook::jsi::Runtime&, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > const&, facebook::jsi::Value&&) const+240) (BuildId: e823524f9949724ddb6bbf0c05c7c51aa8f0b1ad)
#31 pc 0000000000023048 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes-executor-debug.so (offset 0x1d2d000) (BuildId: e823524f9949724ddb6bbf0c05c7c51aa8f0b1ad)
#32 pc 000000000001c824 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes-executor-debug.so (offset 0x1d2d000) (void std::__ndk1::__invoke_void_return_wrapper::__call<void (&)(std::__ndk1::function<void ()> const&, std::__ndk1::function<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > ()>), std::__ndk1::function<void ()> const&, std::__ndk1::function<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > ()> >(void (&)(std::__ndk1::function<void ()> const&, std::__ndk1::function<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > ()>), std::__ndk1::function<void ()> const&, std::__ndk1::function<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > ()>&&)+116) (BuildId: e823524f9949724ddb6bbf0c05c7c51aa8f0b1ad)
#33 pc 000000000001f0f4 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libhermes-executor-debug.so (offset 0x1d2d000) (facebook::react::JSIExecutor::callFunction(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > const&, folly::dynamic const&)+1156) (BuildId: e823524f9949724ddb6bbf0c05c7c51aa8f0b1ad)
#34 pc 0000000000096f04 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreactnativejni.so (offset 0x24a9000) (BuildId: b127d3c352aecdc127a270e7dd1475e2ced29e46)
#35 pc 00000000000980f0 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreactnativejni.so (offset 0x24a9000) (BuildId: b127d3c352aecdc127a270e7dd1475e2ced29e46)
#36 pc 0000000000076794 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreactnativejni.so (offset 0x24a9000) (BuildId: b127d3c352aecdc127a270e7dd1475e2ced29e46)
#37 pc 000000000005e1b8 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreactnativejni.so (offset 0x24a9000) (facebook::jni::detail::MethodWrapper<void (facebook::react::JNativeRunnable::)(), &(facebook::react::JNativeRunnable::run()), facebook::react::JNativeRunnable, void>::dispatch(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::react::JNativeRunnable, facebook::react::Runnable>::JavaPart, facebook::react::Runnable, void>::_javaobject>)+32) (BuildId: b127d3c352aecdc127a270e7dd1475e2ced29e46)
#38 pc 000000000005e130 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/base.apk!libreactnativejni.so (offset 0x24a9000) (facebook::jni::detail::FunctionWrapper<void ()(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::react::JNativeRunnable, facebook::react::Runnable>::JavaPart, facebook::react::Runnable, void>::_javaobject>), facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::react::JNativeRunnable, facebook::react::Runnable>::JavaPart, facebook::react::Runnable, void>::_javaobject*, void>::call(_JNIEnv*, _jobject*, void ()(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::react::JNativeRunnable, facebook::react::Runnable>::JavaPart, facebook::react::Runnable, void>::_javaobject>))+60) (BuildId: b127d3c352aecdc127a270e7dd1475e2ced29e46)
#39 pc 000000000005b8bc /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/oat/arm64/base.odex (art_jni_trampoline+124)
#40 pc 0000000002029314 /memfd:jit-cache (deleted) (offset 0x2000000) (android.os.Handler.handleCallback+68)
#41 pc 000000000202ebc0 /memfd:jit-cache (deleted) (offset 0x2000000) (android.os.Handler.dispatchMessage+64)
#42 pc 000000000207b774 /memfd:jit-cache (deleted) (offset 0x2000000) (com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage+52)
#43 pc 00000000020ee1e4 /memfd:jit-cache (deleted) (offset 0x2000000) (android.os.Looper.loop+1396)
#44 pc 000000000013387c /apex/com.android.art/lib64/libart.so (art_quick_osr_stub+60) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#45 pc 000000000033e168 /apex/com.android.art/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+344) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#46 pc 000000000068bd8c /apex/com.android.art/lib64/libart.so (MterpMaybeDoOnStackReplacement+208) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#47 pc 0000000000132350 /apex/com.android.art/lib64/libart.so (MterpHelpers+240) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#48 pc 00000000003c15a0 /system/framework/framework.jar (offset 0x929000) (android.os.Looper.loop+1160)
#49 pc 00000000006805f8 /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#50 pc 000000000012d994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#51 pc 000000000054db06 /data/app/~~H5-oBC-CWpLXuYwPYlYoyQ==/com.hayasolutions.attendlab-8K-1dHbSkSLsIgU70pS8GQ==/oat/arm64/base.vdex (com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run+74)
#52 pc 000000000067f0d4 /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#53 pc 000000000012da14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#54 pc 00000000000eb840 /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
#55 pc 0000000000306cb8 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.11487796752256266877)+268) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#56 pc 000000000066c104 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#57 pc 000000000013cff8 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#58 pc 0000000000133564 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#59 pc 00000000001a8a78 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#60 pc 0000000000555b74 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValuesart::ArtMethod*(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#61 pc 00000000005a4f10 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1308) (BuildId: 8da8188d8b3a217a92b42486afb82894)
#62 pc 00000000000eb868 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: e679588de88514d3f5c28f04a93ffc0e)
#63 pc 000000000008ba88 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: e679588de88514d3f5c28f04a93ffc0e)`

@mrousavy
Copy link
Owner

huh, okay those are unfortunately not symbolicated but it looks like a frame processor access error. I'll try to figure this out soon once I have some free time..

@HyopeR
Copy link

HyopeR commented Apr 14, 2022

Will there be any regulation on this bug related to frame processors? Is there a workaround that we can use temporarily? Thanks for your hard work. @mrousavy

@mrousavy
Copy link
Owner

Hey! I've rewritten the entire Android codebase of VisionCamera from CameraX to Camera2 in the efforts of ✨ VisionCamera V3.

I just now completed the Camera2 rewrite and I believe the core structure is running, but there might be some edge cases to iron out. Can you try and test the PR #1674 for me to see if you can still reproduce this issue here?

Here's an instruction on how you can test that: #1674 (comment)

If the issue cannot be reproduced with that version/PR anymore, then hoorayy, I fixed it! 🎉
Otherwise please let me know and I'll keep this issue open to keep track of it.

Thank you!

austinbh1003 pushed a commit to austinbh1003/vision-camera that referenced this issue Jul 11, 2024
See mrousavy/react-native-vision-camera#1376

## Breaking Changes

* Frame Processors are now **synchronous**. Previously they ran on a
separate Thread. If you want to run something on a separate Thread now,
use `runAsync` inside a Frame Processor
* Frame Processor Plugins are no longer in the global object with the
`__` prefix, but rather stored directly in the `FrameProcessorPlugins`
object exported by react-native-vision-camera. (e.g. replace
`__scanQRCodes(frame)` with `FrameProcessorPlugins.scanQRCodes(frame)`)
* `frameProcessorFps` no longer exists. Use `runAtTargetFps` inside a
Frame Processor to throttle some calls.
* `onFrameProcessorPerformanceSuggestionAvailable` no longer exists. Use
the FPS display (`enableFpsGraph={true}`) to see how your Frame
Processor performs over time. This is more in-line with how React Native
works (Dev Tools / Perf Monitor)
* VisionCamera V3 will not work on RN 0.70 or below. You need to use RN
0.71. This is because the build script got way simpler and smaller,
making it faster to build and way less error prone. Backwards
compatibility is just too complex here.
* Reanimated is no longer used as a Worklet Runtime. Instead,
VisionCamera now uses
[react-native-worklets-core](https://github.com/margelo/react-native-worklets-core).

## Progress

You can test the latest V3 release by creating a new RN project with RN
0.71 and installing VisionCamera + RNWorklets:

```sh
yarn add react-native-vision-camera@3.0.0-rc.5
yarn add react-native-worklets-core
yarn add @shopify/react-native-skia
```

Things to test:

* TensorFlow Lite plugin to load any `.tflite` model!! ✨ (see [this PR
for more
info](mrousavy/react-native-vision-camera#1633),
will be a separate library soon)
* Drawing onto a Frame using Skia!! 🎉 
* Using `frame.toArrayBuffer()` to get the Frame's byte content in JS
* New Android build script. This should drastically speed up the build
time! 💨
* New Worklet library. This replaces Reanimated Worklets. Should be
faster and more stable :)
* New synchronous Frame Processors. Should be faster :)
* `runAtTargetFps` and `runAsync` in Frame Processors
* Using HostObjects or HostFunctions (like models from PyTorch) inside a
Frame Processor. This will probably require a few native bindings on
PyTorch's end to make the integration work (cc @raedle)

Overall V3 is close to completion. I have a few things to do the coming
days so not sure how much work I can put into this. **If anyone wants to
support the development of v3, I'd appreciate donations / sponsors:
https://github.com/sponsors/mrousavy** ❤️ :)


## Related issues 

features

- resolves
mrousavy/react-native-vision-camera#1376
- fixes
mrousavy/react-native-vision-camera#281
- resolves
mrousavy/react-native-vision-camera#211
- resolves
mrousavy/react-native-vision-camera#130
- resolves
mrousavy/react-native-vision-camera#117
- fixes mrousavy/react-native-vision-camera#76
- resolves
mrousavy/react-native-vision-camera#75
- resolves
mrousavy/react-native-vision-camera#562
- resolves
mrousavy/react-native-vision-camera#565
- fixes
mrousavy/react-native-vision-camera#570
- fixes
mrousavy/react-native-vision-camera#287
- resolves
mrousavy/react-native-vision-camera#311
- fixes
mrousavy/react-native-vision-camera#315
- resolves
mrousavy/react-native-vision-camera#323
- fixes
mrousavy/react-native-vision-camera#340
- fixes
mrousavy/react-native-vision-camera#354
- resolves
mrousavy/react-native-vision-camera#420
- fixes
mrousavy/react-native-vision-camera#434
- fixes
mrousavy/react-native-vision-camera#452
- fixes
mrousavy/react-native-vision-camera#496
- fixes
mrousavy/react-native-vision-camera#497
- resolves
mrousavy/react-native-vision-camera#499
- fixes
mrousavy/react-native-vision-camera#516
- fixes
mrousavy/react-native-vision-camera#527
- fixes
mrousavy/react-native-vision-camera#542
- fixes
mrousavy/react-native-vision-camera#548
- fixes
mrousavy/react-native-vision-camera#561
- fixes
mrousavy/react-native-vision-camera#740
- fixes
mrousavy/react-native-vision-camera#770


...and then pretty much every Android issue lol

- fixes
mrousavy/react-native-vision-camera#1675
(**maybe**, please test @PrernaBudhraja)
- fixes
mrousavy/react-native-vision-camera#1671

.. maybe also (not tested):

- fixes
mrousavy/react-native-vision-camera#1698
- fixes
mrousavy/react-native-vision-camera#1687
- fixes
mrousavy/react-native-vision-camera#1685
- fixes
mrousavy/react-native-vision-camera#1681
- fixes
mrousavy/react-native-vision-camera#1650
- fixes
mrousavy/react-native-vision-camera#1646
- fixes
mrousavy/react-native-vision-camera#1635
- fixes
mrousavy/react-native-vision-camera#1631
- fixes
mrousavy/react-native-vision-camera#1621
- fixes
mrousavy/react-native-vision-camera#1615
- fixes
mrousavy/react-native-vision-camera#1612
- fixes
mrousavy/react-native-vision-camera#1605
- fixes
mrousavy/react-native-vision-camera#1599
- fixes
mrousavy/react-native-vision-camera#1585
- fixes
mrousavy/react-native-vision-camera#1581
- fixes
mrousavy/react-native-vision-camera#1569
- fixes
mrousavy/react-native-vision-camera#1568
- fixes
mrousavy/react-native-vision-camera#1565
- fixes
mrousavy/react-native-vision-camera#1561
- fixes
mrousavy/react-native-vision-camera#1558
- fixes
mrousavy/react-native-vision-camera#1554
- fixes
mrousavy/react-native-vision-camera#1551
- fixes
mrousavy/react-native-vision-camera#1547
- fixes
mrousavy/react-native-vision-camera#1543
- fixes
mrousavy/react-native-vision-camera#1538
- fixes
mrousavy/react-native-vision-camera#1536
- fixes
mrousavy/react-native-vision-camera#1534
- fixes
mrousavy/react-native-vision-camera#1528
- fixes
mrousavy/react-native-vision-camera#1520
- fixes
mrousavy/react-native-vision-camera#1498
- fixes
mrousavy/react-native-vision-camera#1489
- fixes
mrousavy/react-native-vision-camera#1477
- fixes
mrousavy/react-native-vision-camera#1474
- fixes
mrousavy/react-native-vision-camera#1463
- fixes
mrousavy/react-native-vision-camera#1462
- fixes
mrousavy/react-native-vision-camera#1449
- fixes
mrousavy/react-native-vision-camera#1443
- fixes
mrousavy/react-native-vision-camera#1437
- fixes
mrousavy/react-native-vision-camera#1431
- fixes
mrousavy/react-native-vision-camera#1429
- fixes
mrousavy/react-native-vision-camera#1427
- fixes
mrousavy/react-native-vision-camera#1423
- fixes
mrousavy/react-native-vision-camera#1416
- fixes
mrousavy/react-native-vision-camera#1407
- fixes
mrousavy/react-native-vision-camera#1403
- fixes
mrousavy/react-native-vision-camera#1402
- fixes
mrousavy/react-native-vision-camera#1398
- fixes
mrousavy/react-native-vision-camera#1396
- fixes
mrousavy/react-native-vision-camera#1395
- fixes
mrousavy/react-native-vision-camera#1379
- fixes
mrousavy/react-native-vision-camera#1377
- fixes
mrousavy/react-native-vision-camera#1374
- fixes
mrousavy/react-native-vision-camera#1373
- fixes
mrousavy/react-native-vision-camera#1365
- fixes
mrousavy/react-native-vision-camera#1356
- fixes
mrousavy/react-native-vision-camera#1353
- fixes
mrousavy/react-native-vision-camera#1352
- fixes
mrousavy/react-native-vision-camera#1351
- fixes
mrousavy/react-native-vision-camera#1343
- fixes
mrousavy/react-native-vision-camera#1340
- fixes
mrousavy/react-native-vision-camera#1334
- fixes
mrousavy/react-native-vision-camera#1330
- fixes
mrousavy/react-native-vision-camera#1322
- fixes
mrousavy/react-native-vision-camera#1296
- fixes
mrousavy/react-native-vision-camera#1283
- fixes
mrousavy/react-native-vision-camera#1260
- fixes
mrousavy/react-native-vision-camera#1253
- fixes
mrousavy/react-native-vision-camera#1251
- fixes
mrousavy/react-native-vision-camera#1245
- fixes
mrousavy/react-native-vision-camera#1238
- fixes
mrousavy/react-native-vision-camera#1227
- fixes
mrousavy/react-native-vision-camera#1226
- fixes
mrousavy/react-native-vision-camera#1225
- fixes
mrousavy/react-native-vision-camera#1222
- fixes
mrousavy/react-native-vision-camera#1211
- fixes
mrousavy/react-native-vision-camera#1208
- fixes
mrousavy/react-native-vision-camera#1193
- fixes
mrousavy/react-native-vision-camera#1191
- fixes
mrousavy/react-native-vision-camera#1184
- fixes
mrousavy/react-native-vision-camera#1164
- fixes
mrousavy/react-native-vision-camera#1143
- fixes
mrousavy/react-native-vision-camera#1128
- fixes
mrousavy/react-native-vision-camera#1122
- fixes
mrousavy/react-native-vision-camera#1120
- fixes
mrousavy/react-native-vision-camera#1110
- fixes
mrousavy/react-native-vision-camera#1097
- fixes
mrousavy/react-native-vision-camera#1081
- fixes
mrousavy/react-native-vision-camera#1080
- fixes
mrousavy/react-native-vision-camera#1064
- fixes
mrousavy/react-native-vision-camera#1053
- fixes
mrousavy/react-native-vision-camera#1047
- fixes
mrousavy/react-native-vision-camera#1044
- fixes
mrousavy/react-native-vision-camera#1032
- fixes
mrousavy/react-native-vision-camera#1026
- fixes
mrousavy/react-native-vision-camera#1023
- fixes
mrousavy/react-native-vision-camera#1015
- fixes
mrousavy/react-native-vision-camera#1012
- fixes
mrousavy/react-native-vision-camera#997
- fixes
mrousavy/react-native-vision-camera#960
- fixes
mrousavy/react-native-vision-camera#959
- fixes
mrousavy/react-native-vision-camera#954
- fixes
mrousavy/react-native-vision-camera#946
- fixes
mrousavy/react-native-vision-camera#945
- fixes
mrousavy/react-native-vision-camera#922
- fixes
mrousavy/react-native-vision-camera#908
- fixes
mrousavy/react-native-vision-camera#907
- fixes
mrousavy/react-native-vision-camera#868
- fixes
mrousavy/react-native-vision-camera#855
- fixes
mrousavy/react-native-vision-camera#834
- fixes
mrousavy/react-native-vision-camera#793
- fixes
mrousavy/react-native-vision-camera#779
- fixes
mrousavy/react-native-vision-camera#746
- fixes
mrousavy/react-native-vision-camera#740
- fixes
mrousavy/react-native-vision-camera#727
- fixes
mrousavy/react-native-vision-camera#671
- fixes
mrousavy/react-native-vision-camera#613
- fixes
mrousavy/react-native-vision-camera#595
- fixes
mrousavy/react-native-vision-camera#588
- fixes
mrousavy/react-native-vision-camera#570
- fixes
mrousavy/react-native-vision-camera#569
- fixes
mrousavy/react-native-vision-camera#542
- fixes
mrousavy/react-native-vision-camera#516
- fixes
mrousavy/react-native-vision-camera#515
- fixes
mrousavy/react-native-vision-camera#434
- fixes
mrousavy/react-native-vision-camera#354
- fixes
mrousavy/react-native-vision-camera#323
- fixes
mrousavy/react-native-vision-camera#315
- fixes
mrousavy/react-native-vision-camera#281
- fixes
mrousavy/react-native-vision-camera#211
- fixes mrousavy/react-native-vision-camera#76
max71126 added a commit to max71126/react-native-vision-camera that referenced this issue Sep 19, 2024
See mrousavy/react-native-vision-camera#1376

## Breaking Changes

* Frame Processors are now **synchronous**. Previously they ran on a
separate Thread. If you want to run something on a separate Thread now,
use `runAsync` inside a Frame Processor
* Frame Processor Plugins are no longer in the global object with the
`__` prefix, but rather stored directly in the `FrameProcessorPlugins`
object exported by react-native-vision-camera. (e.g. replace
`__scanQRCodes(frame)` with `FrameProcessorPlugins.scanQRCodes(frame)`)
* `frameProcessorFps` no longer exists. Use `runAtTargetFps` inside a
Frame Processor to throttle some calls.
* `onFrameProcessorPerformanceSuggestionAvailable` no longer exists. Use
the FPS display (`enableFpsGraph={true}`) to see how your Frame
Processor performs over time. This is more in-line with how React Native
works (Dev Tools / Perf Monitor)
* VisionCamera V3 will not work on RN 0.70 or below. You need to use RN
0.71. This is because the build script got way simpler and smaller,
making it faster to build and way less error prone. Backwards
compatibility is just too complex here.
* Reanimated is no longer used as a Worklet Runtime. Instead,
VisionCamera now uses
[react-native-worklets-core](https://github.com/margelo/react-native-worklets-core).

## Progress

You can test the latest V3 release by creating a new RN project with RN
0.71 and installing VisionCamera + RNWorklets:

```sh
yarn add react-native-vision-camera@3.0.0-rc.5
yarn add react-native-worklets-core
yarn add @shopify/react-native-skia
```

Things to test:

* TensorFlow Lite plugin to load any `.tflite` model!! ✨ (see [this PR
for more
info](mrousavy/react-native-vision-camera#1633),
will be a separate library soon)
* Drawing onto a Frame using Skia!! 🎉 
* Using `frame.toArrayBuffer()` to get the Frame's byte content in JS
* New Android build script. This should drastically speed up the build
time! 💨
* New Worklet library. This replaces Reanimated Worklets. Should be
faster and more stable :)
* New synchronous Frame Processors. Should be faster :)
* `runAtTargetFps` and `runAsync` in Frame Processors
* Using HostObjects or HostFunctions (like models from PyTorch) inside a
Frame Processor. This will probably require a few native bindings on
PyTorch's end to make the integration work (cc @raedle)

Overall V3 is close to completion. I have a few things to do the coming
days so not sure how much work I can put into this. **If anyone wants to
support the development of v3, I'd appreciate donations / sponsors:
https://github.com/sponsors/mrousavy** ❤️ :)


## Related issues 

features

- resolves
mrousavy/react-native-vision-camera#1376
- fixes
mrousavy/react-native-vision-camera#281
- resolves
mrousavy/react-native-vision-camera#211
- resolves
mrousavy/react-native-vision-camera#130
- resolves
mrousavy/react-native-vision-camera#117
- fixes mrousavy/react-native-vision-camera#76
- resolves
mrousavy/react-native-vision-camera#75
- resolves
mrousavy/react-native-vision-camera#562
- resolves
mrousavy/react-native-vision-camera#565
- fixes
mrousavy/react-native-vision-camera#570
- fixes
mrousavy/react-native-vision-camera#287
- resolves
mrousavy/react-native-vision-camera#311
- fixes
mrousavy/react-native-vision-camera#315
- resolves
mrousavy/react-native-vision-camera#323
- fixes
mrousavy/react-native-vision-camera#340
- fixes
mrousavy/react-native-vision-camera#354
- resolves
mrousavy/react-native-vision-camera#420
- fixes
mrousavy/react-native-vision-camera#434
- fixes
mrousavy/react-native-vision-camera#452
- fixes
mrousavy/react-native-vision-camera#496
- fixes
mrousavy/react-native-vision-camera#497
- resolves
mrousavy/react-native-vision-camera#499
- fixes
mrousavy/react-native-vision-camera#516
- fixes
mrousavy/react-native-vision-camera#527
- fixes
mrousavy/react-native-vision-camera#542
- fixes
mrousavy/react-native-vision-camera#548
- fixes
mrousavy/react-native-vision-camera#561
- fixes
mrousavy/react-native-vision-camera#740
- fixes
mrousavy/react-native-vision-camera#770


...and then pretty much every Android issue lol

- fixes
mrousavy/react-native-vision-camera#1675
(**maybe**, please test @PrernaBudhraja)
- fixes
mrousavy/react-native-vision-camera#1671

.. maybe also (not tested):

- fixes
mrousavy/react-native-vision-camera#1698
- fixes
mrousavy/react-native-vision-camera#1687
- fixes
mrousavy/react-native-vision-camera#1685
- fixes
mrousavy/react-native-vision-camera#1681
- fixes
mrousavy/react-native-vision-camera#1650
- fixes
mrousavy/react-native-vision-camera#1646
- fixes
mrousavy/react-native-vision-camera#1635
- fixes
mrousavy/react-native-vision-camera#1631
- fixes
mrousavy/react-native-vision-camera#1621
- fixes
mrousavy/react-native-vision-camera#1615
- fixes
mrousavy/react-native-vision-camera#1612
- fixes
mrousavy/react-native-vision-camera#1605
- fixes
mrousavy/react-native-vision-camera#1599
- fixes
mrousavy/react-native-vision-camera#1585
- fixes
mrousavy/react-native-vision-camera#1581
- fixes
mrousavy/react-native-vision-camera#1569
- fixes
mrousavy/react-native-vision-camera#1568
- fixes
mrousavy/react-native-vision-camera#1565
- fixes
mrousavy/react-native-vision-camera#1561
- fixes
mrousavy/react-native-vision-camera#1558
- fixes
mrousavy/react-native-vision-camera#1554
- fixes
mrousavy/react-native-vision-camera#1551
- fixes
mrousavy/react-native-vision-camera#1547
- fixes
mrousavy/react-native-vision-camera#1543
- fixes
mrousavy/react-native-vision-camera#1538
- fixes
mrousavy/react-native-vision-camera#1536
- fixes
mrousavy/react-native-vision-camera#1534
- fixes
mrousavy/react-native-vision-camera#1528
- fixes
mrousavy/react-native-vision-camera#1520
- fixes
mrousavy/react-native-vision-camera#1498
- fixes
mrousavy/react-native-vision-camera#1489
- fixes
mrousavy/react-native-vision-camera#1477
- fixes
mrousavy/react-native-vision-camera#1474
- fixes
mrousavy/react-native-vision-camera#1463
- fixes
mrousavy/react-native-vision-camera#1462
- fixes
mrousavy/react-native-vision-camera#1449
- fixes
mrousavy/react-native-vision-camera#1443
- fixes
mrousavy/react-native-vision-camera#1437
- fixes
mrousavy/react-native-vision-camera#1431
- fixes
mrousavy/react-native-vision-camera#1429
- fixes
mrousavy/react-native-vision-camera#1427
- fixes
mrousavy/react-native-vision-camera#1423
- fixes
mrousavy/react-native-vision-camera#1416
- fixes
mrousavy/react-native-vision-camera#1407
- fixes
mrousavy/react-native-vision-camera#1403
- fixes
mrousavy/react-native-vision-camera#1402
- fixes
mrousavy/react-native-vision-camera#1398
- fixes
mrousavy/react-native-vision-camera#1396
- fixes
mrousavy/react-native-vision-camera#1395
- fixes
mrousavy/react-native-vision-camera#1379
- fixes
mrousavy/react-native-vision-camera#1377
- fixes
mrousavy/react-native-vision-camera#1374
- fixes
mrousavy/react-native-vision-camera#1373
- fixes
mrousavy/react-native-vision-camera#1365
- fixes
mrousavy/react-native-vision-camera#1356
- fixes
mrousavy/react-native-vision-camera#1353
- fixes
mrousavy/react-native-vision-camera#1352
- fixes
mrousavy/react-native-vision-camera#1351
- fixes
mrousavy/react-native-vision-camera#1343
- fixes
mrousavy/react-native-vision-camera#1340
- fixes
mrousavy/react-native-vision-camera#1334
- fixes
mrousavy/react-native-vision-camera#1330
- fixes
mrousavy/react-native-vision-camera#1322
- fixes
mrousavy/react-native-vision-camera#1296
- fixes
mrousavy/react-native-vision-camera#1283
- fixes
mrousavy/react-native-vision-camera#1260
- fixes
mrousavy/react-native-vision-camera#1253
- fixes
mrousavy/react-native-vision-camera#1251
- fixes
mrousavy/react-native-vision-camera#1245
- fixes
mrousavy/react-native-vision-camera#1238
- fixes
mrousavy/react-native-vision-camera#1227
- fixes
mrousavy/react-native-vision-camera#1226
- fixes
mrousavy/react-native-vision-camera#1225
- fixes
mrousavy/react-native-vision-camera#1222
- fixes
mrousavy/react-native-vision-camera#1211
- fixes
mrousavy/react-native-vision-camera#1208
- fixes
mrousavy/react-native-vision-camera#1193
- fixes
mrousavy/react-native-vision-camera#1191
- fixes
mrousavy/react-native-vision-camera#1184
- fixes
mrousavy/react-native-vision-camera#1164
- fixes
mrousavy/react-native-vision-camera#1143
- fixes
mrousavy/react-native-vision-camera#1128
- fixes
mrousavy/react-native-vision-camera#1122
- fixes
mrousavy/react-native-vision-camera#1120
- fixes
mrousavy/react-native-vision-camera#1110
- fixes
mrousavy/react-native-vision-camera#1097
- fixes
mrousavy/react-native-vision-camera#1081
- fixes
mrousavy/react-native-vision-camera#1080
- fixes
mrousavy/react-native-vision-camera#1064
- fixes
mrousavy/react-native-vision-camera#1053
- fixes
mrousavy/react-native-vision-camera#1047
- fixes
mrousavy/react-native-vision-camera#1044
- fixes
mrousavy/react-native-vision-camera#1032
- fixes
mrousavy/react-native-vision-camera#1026
- fixes
mrousavy/react-native-vision-camera#1023
- fixes
mrousavy/react-native-vision-camera#1015
- fixes
mrousavy/react-native-vision-camera#1012
- fixes
mrousavy/react-native-vision-camera#997
- fixes
mrousavy/react-native-vision-camera#960
- fixes
mrousavy/react-native-vision-camera#959
- fixes
mrousavy/react-native-vision-camera#954
- fixes
mrousavy/react-native-vision-camera#946
- fixes
mrousavy/react-native-vision-camera#945
- fixes
mrousavy/react-native-vision-camera#922
- fixes
mrousavy/react-native-vision-camera#908
- fixes
mrousavy/react-native-vision-camera#907
- fixes
mrousavy/react-native-vision-camera#868
- fixes
mrousavy/react-native-vision-camera#855
- fixes
mrousavy/react-native-vision-camera#834
- fixes
mrousavy/react-native-vision-camera#793
- fixes
mrousavy/react-native-vision-camera#779
- fixes
mrousavy/react-native-vision-camera#746
- fixes
mrousavy/react-native-vision-camera#740
- fixes
mrousavy/react-native-vision-camera#727
- fixes
mrousavy/react-native-vision-camera#671
- fixes
mrousavy/react-native-vision-camera#613
- fixes
mrousavy/react-native-vision-camera#595
- fixes
mrousavy/react-native-vision-camera#588
- fixes
mrousavy/react-native-vision-camera#570
- fixes
mrousavy/react-native-vision-camera#569
- fixes
mrousavy/react-native-vision-camera#542
- fixes
mrousavy/react-native-vision-camera#516
- fixes
mrousavy/react-native-vision-camera#515
- fixes
mrousavy/react-native-vision-camera#434
- fixes
mrousavy/react-native-vision-camera#354
- fixes
mrousavy/react-native-vision-camera#323
- fixes
mrousavy/react-native-vision-camera#315
- fixes
mrousavy/react-native-vision-camera#281
- fixes
mrousavy/react-native-vision-camera#211
- fixes mrousavy/react-native-vision-camera#76
isaaccolson pushed a commit to isaaccolson/deliveries-mobile that referenced this issue Oct 30, 2024
See mrousavy#1376

## Breaking Changes

* Frame Processors are now **synchronous**. Previously they ran on a
separate Thread. If you want to run something on a separate Thread now,
use `runAsync` inside a Frame Processor
* Frame Processor Plugins are no longer in the global object with the
`__` prefix, but rather stored directly in the `FrameProcessorPlugins`
object exported by react-native-vision-camera. (e.g. replace
`__scanQRCodes(frame)` with `FrameProcessorPlugins.scanQRCodes(frame)`)
* `frameProcessorFps` no longer exists. Use `runAtTargetFps` inside a
Frame Processor to throttle some calls.
* `onFrameProcessorPerformanceSuggestionAvailable` no longer exists. Use
the FPS display (`enableFpsGraph={true}`) to see how your Frame
Processor performs over time. This is more in-line with how React Native
works (Dev Tools / Perf Monitor)
* VisionCamera V3 will not work on RN 0.70 or below. You need to use RN
0.71. This is because the build script got way simpler and smaller,
making it faster to build and way less error prone. Backwards
compatibility is just too complex here.
* Reanimated is no longer used as a Worklet Runtime. Instead,
VisionCamera now uses
[react-native-worklets-core](https://github.com/margelo/react-native-worklets-core).

## Progress

You can test the latest V3 release by creating a new RN project with RN
0.71 and installing VisionCamera + RNWorklets:

```sh
yarn add react-native-vision-camera@3.0.0-rc.5
yarn add react-native-worklets-core
yarn add @shopify/react-native-skia
```

Things to test:

* TensorFlow Lite plugin to load any `.tflite` model!! ✨ (see [this PR
for more
info](mrousavy#1633),
will be a separate library soon)
* Drawing onto a Frame using Skia!! 🎉 
* Using `frame.toArrayBuffer()` to get the Frame's byte content in JS
* New Android build script. This should drastically speed up the build
time! 💨
* New Worklet library. This replaces Reanimated Worklets. Should be
faster and more stable :)
* New synchronous Frame Processors. Should be faster :)
* `runAtTargetFps` and `runAsync` in Frame Processors
* Using HostObjects or HostFunctions (like models from PyTorch) inside a
Frame Processor. This will probably require a few native bindings on
PyTorch's end to make the integration work (cc @raedle)

Overall V3 is close to completion. I have a few things to do the coming
days so not sure how much work I can put into this. **If anyone wants to
support the development of v3, I'd appreciate donations / sponsors:
https://github.com/sponsors/mrousavy** ❤️ :)


## Related issues 

features

- resolves
mrousavy#1376
- fixes
mrousavy#281
- resolves
mrousavy#211
- resolves
mrousavy#130
- resolves
mrousavy#117
- fixes mrousavy#76
- resolves
mrousavy#75
- resolves
mrousavy#562
- resolves
mrousavy#565
- fixes
mrousavy#570
- fixes
mrousavy#287
- resolves
mrousavy#311
- fixes
mrousavy#315
- resolves
mrousavy#323
- fixes
mrousavy#340
- fixes
mrousavy#354
- resolves
mrousavy#420
- fixes
mrousavy#434
- fixes
mrousavy#452
- fixes
mrousavy#496
- fixes
mrousavy#497
- resolves
mrousavy#499
- fixes
mrousavy#516
- fixes
mrousavy#527
- fixes
mrousavy#542
- fixes
mrousavy#548
- fixes
mrousavy#561
- fixes
mrousavy#740
- fixes
mrousavy#770


...and then pretty much every Android issue lol

- fixes
mrousavy#1675
(**maybe**, please test @PrernaBudhraja)
- fixes
mrousavy#1671

.. maybe also (not tested):

- fixes
mrousavy#1698
- fixes
mrousavy#1687
- fixes
mrousavy#1685
- fixes
mrousavy#1681
- fixes
mrousavy#1650
- fixes
mrousavy#1646
- fixes
mrousavy#1635
- fixes
mrousavy#1631
- fixes
mrousavy#1621
- fixes
mrousavy#1615
- fixes
mrousavy#1612
- fixes
mrousavy#1605
- fixes
mrousavy#1599
- fixes
mrousavy#1585
- fixes
mrousavy#1581
- fixes
mrousavy#1569
- fixes
mrousavy#1568
- fixes
mrousavy#1565
- fixes
mrousavy#1561
- fixes
mrousavy#1558
- fixes
mrousavy#1554
- fixes
mrousavy#1551
- fixes
mrousavy#1547
- fixes
mrousavy#1543
- fixes
mrousavy#1538
- fixes
mrousavy#1536
- fixes
mrousavy#1534
- fixes
mrousavy#1528
- fixes
mrousavy#1520
- fixes
mrousavy#1498
- fixes
mrousavy#1489
- fixes
mrousavy#1477
- fixes
mrousavy#1474
- fixes
mrousavy#1463
- fixes
mrousavy#1462
- fixes
mrousavy#1449
- fixes
mrousavy#1443
- fixes
mrousavy#1437
- fixes
mrousavy#1431
- fixes
mrousavy#1429
- fixes
mrousavy#1427
- fixes
mrousavy#1423
- fixes
mrousavy#1416
- fixes
mrousavy#1407
- fixes
mrousavy#1403
- fixes
mrousavy#1402
- fixes
mrousavy#1398
- fixes
mrousavy#1396
- fixes
mrousavy#1395
- fixes
mrousavy#1379
- fixes
mrousavy#1377
- fixes
mrousavy#1374
- fixes
mrousavy#1373
- fixes
mrousavy#1365
- fixes
mrousavy#1356
- fixes
mrousavy#1353
- fixes
mrousavy#1352
- fixes
mrousavy#1351
- fixes
mrousavy#1343
- fixes
mrousavy#1340
- fixes
mrousavy#1334
- fixes
mrousavy#1330
- fixes
mrousavy#1322
- fixes
mrousavy#1296
- fixes
mrousavy#1283
- fixes
mrousavy#1260
- fixes
mrousavy#1253
- fixes
mrousavy#1251
- fixes
mrousavy#1245
- fixes
mrousavy#1238
- fixes
mrousavy#1227
- fixes
mrousavy#1226
- fixes
mrousavy#1225
- fixes
mrousavy#1222
- fixes
mrousavy#1211
- fixes
mrousavy#1208
- fixes
mrousavy#1193
- fixes
mrousavy#1191
- fixes
mrousavy#1184
- fixes
mrousavy#1164
- fixes
mrousavy#1143
- fixes
mrousavy#1128
- fixes
mrousavy#1122
- fixes
mrousavy#1120
- fixes
mrousavy#1110
- fixes
mrousavy#1097
- fixes
mrousavy#1081
- fixes
mrousavy#1080
- fixes
mrousavy#1064
- fixes
mrousavy#1053
- fixes
mrousavy#1047
- fixes
mrousavy#1044
- fixes
mrousavy#1032
- fixes
mrousavy#1026
- fixes
mrousavy#1023
- fixes
mrousavy#1015
- fixes
mrousavy#1012
- fixes
mrousavy#997
- fixes
mrousavy#960
- fixes
mrousavy#959
- fixes
mrousavy#954
- fixes
mrousavy#946
- fixes
mrousavy#945
- fixes
mrousavy#922
- fixes
mrousavy#908
- fixes
mrousavy#907
- fixes
mrousavy#868
- fixes
mrousavy#855
- fixes
mrousavy#834
- fixes
mrousavy#793
- fixes
mrousavy#779
- fixes
mrousavy#746
- fixes
mrousavy#740
- fixes
mrousavy#727
- fixes
mrousavy#671
- fixes
mrousavy#613
- fixes
mrousavy#595
- fixes
mrousavy#588
- fixes
mrousavy#570
- fixes
mrousavy#569
- fixes
mrousavy#542
- fixes
mrousavy#516
- fixes
mrousavy#515
- fixes
mrousavy#434
- fixes
mrousavy#354
- fixes
mrousavy#323
- fixes
mrousavy#315
- fixes
mrousavy#281
- fixes
mrousavy#211
- fixes mrousavy#76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants