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

🐛 Lens switching 'broken' on iOS 18 #3230

Open
4 of 5 tasks
kbrandwijk opened this issue Oct 6, 2024 · 3 comments
Open
4 of 5 tasks

🐛 Lens switching 'broken' on iOS 18 #3230

kbrandwijk opened this issue Oct 6, 2024 · 3 comments
Labels
🐛 bug Something isn't working

Comments

@kbrandwijk
Copy link

What's happening?

Since upgrading to iOS 18, we are seeing a regression in lens switching behavior. It only switches lenses once when using a virtual device, but doesn't switch back, or is almost impossible to get to switch back. We verified this also happens in the ShadowLens demo app. Try getting close to an object, the lens switches, then move back away until the lens switches again. From that point on, it's impossible to get closer without the image being blurry (the lens doesn't switch back anymore).

Reproduceable Code

No code involved here, just a default triple back camera virtual device.

Relevant log output

-

Camera Device

{
    "formats": [],
    "hardwareLevel": "full",
    "hasFlash": true,
    "hasTorch": true,
    "id": "com.apple.avfoundation.avcapturedevice.built-in_video:7",
    "isMultiCam": true,
    "maxExposure": 8,
    "maxZoom": 123.75,
    "minExposure": -8,
    "minFocusDistance": 2,
    "minZoom": 1,
    "name": "Back Triple Camera",
    "neutralZoom": 2,
    "physicalDevices": [
      "ultra-wide-angle-camera",
      "wide-angle-camera",
      "telephoto-camera"
    ],
    "position": "back",
    "sensorOrientation": "portrait",
    "supportsFocus": true,
    "supportsLowLightBoost": false,
    "supportsRawCapture": false
  }

Device

iPhone 14 Pro (18.0.1)

VisionCamera Version

4.5.3

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

@kbrandwijk kbrandwijk added the 🐛 bug Something isn't working label Oct 6, 2024
Copy link

Guten Tag, Hans here! 🍻 Thank you for your support as a sponsor!

I see you are having some trouble with lens switching since upgrading to iOS 18. However, I noticed that you didn’t include any relevant log output or specific code to reproduce the issue. Could you please provide logs from Xcode? To gather these logs, you can check the console output while running the app, which might give us more insight into the problem.

With this additional information, we can dig deeper into it. Looking forward to your update!

Note: If you think I made a mistake, please ping @mrousavy to take a look.

@kbrandwijk
Copy link
Author

@mrousavy Marc, curious to hear if you have observed this as well on iOS 18. Getting XCode logs is a bit more involved, as I'm just seeing this using the ShadowLens app from the app store as well, and I use Expo so I don't run my RN projects through XCode. Lmk if you need any additional information!

@mrousavy
Copy link
Owner

mrousavy commented Oct 7, 2024

  1. You can run your Expo app through Xcode as well. Without logs, I cannot help.
  2. This clearly needs a video demo as well

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

No branches or pull requests

2 participants