luicfrr / react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector
https://www.npmjs.com/package/react-native-vision-camera-face-detector
MIT License
75 stars 16 forks source link

[BUG 🐛] java.lang.IllegalStateException: maxImages (6) has already been acquired, call #close before acquiring more. #55

Closed flexingCode closed 2 months ago

flexingCode commented 2 months ago

When the camera is showing and using the example code on android on log show:

Captura de pantalla 2024-05-03 a la(s) 14 32 07

and on Logcat from Android studio show:

Captura de pantalla 2024-05-03 a la(s) 14 33 11

Just run the example code.

Device: Tablet Urovo P8100 Android: 10

Package.json ` { "name": "ExcelMarcacion", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest", "postinstall": "patch-package" }, "dependencies": { "@eva-design/eva": "^2.2.0", "@react-native-async-storage/async-storage": "^1.23.1", "@react-navigation/native": "^6.1.17", "@react-navigation/native-stack": "^6.9.26", "@reduxjs/toolkit": "^2.2.3", "axios": "^1.6.8", "lucide-react-native": "^0.376.0", "moment": "^2.30.1", "native-base": "^3.4.28", "patch-package": "^8.0.0", "postinstall-postinstall": "^2.1.0", "ramda": "^0.29.1", "react": "18.2.0", "react-native": "0.73.8", "react-native-blob-util": "^0.19.9", "react-native-config": "^1.5.1", "react-native-gesture-handler": "^2.16.1", "react-native-reanimated": "^3.9.0", "react-native-safe-area-context": "^4.10.1", "react-native-screens": "^3.31.1", "react-native-svg": "^15.2.0", "react-native-vision-camera": "^4.0.1", "react-native-vision-camera-face-detector": "^1.6.2", "react-native-worklets-core": "^1.3.0", "react-redux": "^9.1.1", "redux": "^5.0.1", "redux-persist": "^6.0.0" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.74.81", "@react-native/eslint-config": "0.74.81", "@react-native/metro-config": "0.74.81", "@react-native/typescript-config": "0.74.81", "@types/ramda": "^0.29.12", "@types/react": "^18.2.6", "@types/react-redux": "^7.1.24", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "babel-plugin-module-resolver": "^5.0.2", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.2.0", "typescript": "5.0.4" }, "engines": { "node": ">=18" } }

`

flexingCode commented 2 months ago

using the second code example method works!