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

🐛 camera freezing when pointing to a "Face" #3055

Closed
4 of 5 tasks
marcosrjjunior opened this issue Jul 8, 2024 · 7 comments
Closed
4 of 5 tasks

🐛 camera freezing when pointing to a "Face" #3055

marcosrjjunior opened this issue Jul 8, 2024 · 7 comments
Labels
🐛 bug Something isn't working

Comments

@marcosrjjunior
Copy link

marcosrjjunior commented Jul 8, 2024

What's happening?

The camera is freezing when pointing to a face. Please check videos below.

30 fps
60 fps

Found these issues pointing to the same error: #2313, #2329. Not sure if is direct related because I'm not even using any zoom option.

Seems like the camera is trying to perform some face identification when focus is on a face. I'm guessing it is related to the iOS version.

**

  • This issue is also happening when using a different camera library.
  • I could not reproduce on the "ShadowLens 1.1.2 (17)" app.

Reproduceable Code

function App() {
  const device = useCameraDevice('back')

  if (device == null) return <View />

  return (
    <Camera
      style={StyleSheet.absoluteFill}
      device={device}
      isActive
      enableZoomGesture={false}
    />
  )
}

Relevant log output

output on the videos above.

[unknown/unknown: Error Domain=AVFoundationErrorDomain Code=-11819 "Cannot Complete Action" UserInfo={NSLocalizedDescription=Cannot Complete Action, NSLocalizedRecoverySuggestion=Try again later.}]

IMG_0165
IMG_0163

Camera Device

{
  "isMultiCam": false,
  "minFocusDistance": 10,
  "formats": [],
  "name": "Back Camera",
  "minExposure": -8,
  "hasFlash": false,
  "id": "com.apple.avfoundation.avcapturedevice.built-in_video:0",
  "physicalDevices": [
    "wide-angle-camera"
  ],
  "neutralZoom": 1,
  "supportsFocus": true,
  "supportsRawCapture": false,
  "hasTorch": false,
  "maxZoom": 95.625,
  "maxExposure": 8,
  "supportsLowLightBoost": false,
  "sensorOrientation": "landscape-left",
  "minZoom": 1,
  "hardwareLevel": "full",
  "position": "back"
}

Device

iPad iOS 17.5.1 9th gen.
Couldn't reproduce on 8th gen or iPhone 13 Pro.
Maybe something related to the hardware performance.

VisionCamera Version

first identified on "2.16.7", also happening on 4.3.2 after update

Can you reproduce this issue in the VisionCamera Example app?

I didn't try but followed examples and even tried disabling some props.

Additional information

@marcosrjjunior marcosrjjunior added the 🐛 bug Something isn't working label Jul 8, 2024
Copy link

maintenance-hans bot commented Jul 8, 2024

Guten Tag, Hans here.

Note

New features, bugfixes, updates and other improvements are all handled mostly by @mrousavy in his free time.
To support @mrousavy, please consider 💖 sponsoring him on GitHub 💖.
Sponsored issues will be prioritized.

@arjunmenon1302
Copy link

bump

@mrousavy
Copy link
Owner

@arjunmenon1302 why are you bumping an issue on the same exact day it was created at?

@mrousavy
Copy link
Owner

@marcosrjjunior sorry I cannot help you. I cannot reproduce the issue with the sample code you provided (tested on iPhone 15 Pro and iPhone 8), and if you didn't try to reproduce it in the example app then we don't know where it is coming from. Maybe you are using a Frame Processor Plugin that does something weird.

@mrousavy mrousavy closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2024
@kurt-idu
Copy link

bump

@mrousavy
Copy link
Owner

😂

@mrousavy
Copy link
Owner

@marcosrjjunior AVFoundationErrorDomain code -11819 means that the daemon has crashed, I think you need to file this bug using Apple's Feedback Assistant.

I don't think this is related to VisionCamera at all, but it doesn't hurt to also tell them that you use VisionCamera (provide a link to the github repo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
4 participants