Comments (2)
After some more deep tests I noticed that if my frame processor is still running when I unmount the camera the app will crash.
Here's an example:
detectFacesImageByteBufferMultiPlanes.start() // this log means that my frame processor begin it's long running task (in my case face detection)
detectFacesImageByteBuffer.end() // this log is printed when this long taks has finished and frame will now return data to JS
If, when camera gets unmounted, the last log printed by logcat is detectFacesImageByteBuffer.end()
then is everything ok, no crash gonna happen.
But if the last log is detectFacesImageByteBufferMultiPlanes.start()
the app will crash.
Is there any way I can prevent my plugin to crash app if camera is unmounted?
from react-native-vision-camera.
it seems to be fixed on v4 beta 11
from react-native-vision-camera.
Related Issues (20)
- 🐛 camera keeps being restarted when using codeScanner HOT 11
- 🐛 Camera really broken. Doesn't fix flat tires HOT 3
- Hello! Love the work you've done, but I am having issues trying to send frames from my mobile app to my flask backend over websockets.💭 HOT 12
- 🐛 Document typo(android frame processor plugin) HOT 1
- 💭4.0.1 unable to run HOT 1
- 🔧 4.0.1 unable to run HOT 1
- 🐛 runAsync not executing or app crash HOT 21
- Which Slider Library are we using in ShadowLens app for Exposure? 💭 HOT 1
- build error HOT 1
- IllegalArgumentException: getCameraCharacteristics:1278: Unable to retrieve camera characteristics for unknown device 0: No such file or directory (-2)🐛 HOT 1
- 💭 Wait to focus when im using flash
- 🐛 Android ImageAnalysis setBackpressureStrategy STRATEGY_BLOCK_PRODUCER causing lag with OCR libraries HOT 4
- [V4] [iOS] Error: react-native-worklets-core is not installed! 🐛 HOT 9
- 🐛 Selfie camera recording on Android is inverted / upside down HOT 1
- 🐛 Failed to install Frame Processor JSI bindings when using "enableFrameProcessors": false HOT 1
- 🐛Build false HOT 1
- Android build fails - Task configureCMakeDebug[arm64-v8a] - due linkage with react-native-reanimated 🔧 HOT 3
- Black screen with useSkiaProcessor 🐛 HOT 1
- IOS 12 does not work with version 4.0.0? (according to the guide, it should) HOT 2
- 🐛 Camera FPS throttles on low light, and torch doesn't always work HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-vision-camera.