Closed rsainiWin closed 1 month ago
Guten Tag, Hans here.
[!NOTE] New features, bugfixes, updates and other improvements are all handled mostly by
@mrousavy
in his free time. To support@mrousavy
, please consider 💖 sponsoring him on GitHub 💖. Sponsored issues will be prioritized.
Any reason you are on 4 beta? Why not the latest stable release?
It was the latest at the point of time And current latest build requires us to update react native to 0.74 We've updated to the latest build but this is pipeline
Not sure if I understood that, but can you please try to upgrade to VisionCamera 4.4.2 and try if this problem still exists?
I've tried with latest version as well The crash happened randomly after giving the permission . I wasn't able to replicate it next time
Aditionally I was able to click the picture without any issues however after like 2-3 mintues of using the app it crashed FYI I was not on the Camera screen when it crashed
To be honest this doesn't sound like a VisionCamera issue - maybe you are rolling a custom RN fork or an old RN version, but I have never seen this happen before.
I'm using the latest RN and I'm not using a custom fork Let me know if i can help any further
@mrousavy and @rsainiWin finded a issue on rn repo, https://github.com/facebook/react-native/issues/41077 and it's about react-native-vision-camera and the same problem
What's happening?
I want to take a picture. Sometime very rare but when a user takes a picture this leads to a crash going via the crash reporting tool. It says it happened due to NullPointerException: Attempt to invoke virtual method 'void android.view.View.dispatchCancelPendingInputEvents()' on a null object reference Backtracking further it takes me to the Camera Module
Reproduceable Code
Relevant log output
Camera Device
Device
Samsung Galaxy S23 Ultra,,Google Pixel 7 , Samsung Galaxy S21 FE 5G , Samsung Galaxy S22,Samsung Galaxy S23 , Samsung Galaxy S24 , Samsung Galaxy Tab S6 Lite , Samsung Galaxy Tab S7+ 5G (SM-T978U)
VisionCamera Version
4.0.0-beta.13
Can you reproduce this issue in the VisionCamera Example app?
Intermittent issue unable to replicate
Additional information