mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
6.64k stars 983 forks source link

fix: Fix CodeScanner crash #2819

Closed mrousavy closed 2 weeks ago

mrousavy commented 2 weeks ago

What

Fixes an issue where the CodeScanner would crash because it threw an error that didn't go into the Task<T>, but instead threw already before creating the Task<T>. This is Google's fault, but whatever we can catch it.

Changes

Tested on

Related issues

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 10:36am
mrousavy commented 2 weeks ago

actually I don't know if this changes anything. The errors people were seeing were C++ SIGSEV errors, which are memory access errors and cannot be "caught" with a try/catch.