You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some users have reported crashes when they land on the screen where the Camera preview is. This is a tablet app. Looking at the Bugsnag reports it happens only in the landscape orientation and only on iPadOS . This seems to be an issue:
I have not been able to reproduce the hang but each time I land on the Camera screen I've got this warning about unsupported layout (it only appears in landscape mode), which may or may not be related.
Thanks for providing detailed information about your issue. It's great that you've shared the logs and a reproducible code snippet. However, I noticed you mentioned you haven't tried reproducing the issue in the VisionCamera Example app. This is crucial, as it helps determine if it’s an issue with your implementation or the library itself.
Please try to run the example app and see if you can replicate the behavior there. If you can, that information would be really helpful for mrousavy to investigate further. Additionally, if you can get any more logs from Xcode or adb logcat while trying to reproduce the issue, that would be fantastic as well!
Let us know how it goes!
Note: If you think I made a mistake, please ping @mrousavy to take a look.
marcinnexudus
changed the title
🐛 Camera Preview sometimes hangs in landscape view on iOS
🐛 Camera Preview sometimes hangs in landscape view on iPadOS
Jan 7, 2025
What's happening?
Some users have reported crashes when they land on the screen where the Camera preview is. This is a tablet app. Looking at the Bugsnag reports it happens only in the landscape orientation and only on iPadOS . This seems to be an issue:
0 libsystem_kernel.dylib +0x1598 ___ulock_wait2
1 libsystem_platform.dylib +0x1d98 __os_unfair_lock_lock_slow
2 libobjc.A.dylib +0xb5d4 _objc_sync_enter
3 AVFCapture +0x20d40 -[AVCaptureVideoPreviewLayer layerDidBecomeVisible:]
The full stack trace is on pastebin: https://pastebin.com/YUwXzp4U
I have not been able to reproduce the hang but each time I land on the Camera screen I've got this warning about unsupported layout (it only appears in landscape mode), which may or may not be related.
Please advise. Also in my RN component, am I doing anything that can lead to crashes/hangs?
Reproduceable Code
Relevant log output
Camera Device
n/a - I don't have access to the customers' devices.
Device
iPad Mini 6 (WiFi) (iPad14,1),iPad 9 (WiFi) (iPad12,1), iPad 5 (iPad6,11)
VisionCamera Version
4.5.2
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information
The text was updated successfully, but these errors were encountered: