Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[android] maxImages (3) has already been acquired #24

Open
theabhishek2511 opened this issue Feb 5, 2024 · 0 comments
Open

[android] maxImages (3) has already been acquired #24

theabhishek2511 opened this issue Feb 5, 2024 · 0 comments

Comments

@theabhishek2511
Copy link
Contributor

on setting up the lib and opening the camera, the camera briefly shows and then I get the error "java.lang.IllegalStateException: maxImages (3) has already been acquired, call #close before acquiring more."

i'm using "@mgcrea/vision-camera-barcode-scanner": "^0.8.3", "react-native-vision-camera": "^3.8.2" and "react-native-worklets-core": "^0.3.0" in an expo project.

on checking node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/CameraSession.kt, maxImages is set to 10, so I don't know what is causing the issue here.

output of npx expo-env-info

expo-env-info 1.2.0 environment info:
    System:
      OS: macOS 12.7.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 20.8.0 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 10.1.0 - /usr/local/bin/npm
      Watchman: 2024.01.22.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.11.3 - /Users/Newton/.rbenv/shims/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    IDEs:
      Android Studio: 2022.3 AI-223.8836.35.2231.10811636
      Xcode: 14.2/14C18 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^49.0.21 => 49.0.22 
      react: 18.2.0 => 18.2.0 
      react-dom: 18.2.0 => 18.2.0 
      react-native: 0.72.6 => 0.72.6 
      react-native-web: ~0.19.6 => 0.19.10 
    npmGlobalPackages:
      eas-cli: 5.9.3
    Expo Workflow: bare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant