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)
- π Hello, Which version of react-native-vision-camera supports RN 0.67? HOT 1
- Build failed with face-detector pluginπ§ HOT 3
- π Torch does not work on CodeScanner HOT 2
- π How to translate preview point to screen point with resizeMode contain? HOT 2
- π Error when switching front camera on iPhone HOT 2
- π On some Android devices, the camera image is very dark and almost invisible HOT 1
- π Different metadata frame count and decoded frame count HOT 4
- π Camera preview blank screen when using Skia Frame Processors HOT 10
- π Camera Preview is Stretched on ShadowLens App on a Samsung J6 (Android 10)
- β¨ How can I save the video recording when the app state changes to "background" or "inactive". HOT 1
- π Mirror issue with front camera HOT 6
- Using react-native-vision-camera 4.0.5 there is increase of 3MB size in android bundle HOT 3
- π ERROR Camera.onError(session/recoverable-error): An unknown error occurred while creating the Camera Session, but the Camera can recover from it. [session/recoverable-error: An unknown error occurred while creating the Camera Session, but the Camera can recover from it.] HOT 4
- π Android's getCameraPermissionStatus and getLocationPermissionStatus always returned 'denied' on a fresh install of the app HOT 1
- Disable Frame processor on route changeπ HOT 4
- π No onOutputOrientationChanged event on v4.1.0 HOT 2
- π useSkiaFrameProcessor renders black screen using front cameras HOT 15
- I am getting react-native-vision-camera:compileDebugKotlin'. errorπ§ HOT 5
- π Camera preview doesn't show the full image even with resizeMode='contain' HOT 2
- orientationOutput isn't applied in IOS with skia HOT 15
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.