-
-
Notifications
You must be signed in to change notification settings - Fork 137
Labels
bugSomething isn't workingSomething isn't workingembeddedPertaining to IOT or low-power devicesPertaining to IOT or low-power devicesfixedBug has been resolvedBug has been resolved
Description
Search before asking
- I have searched https://github.com/ultralytics/yolo-flutter-app/issues and did not find a similar report.
Project area
iOS build
Bug
The package crashes immediately when camera permission is denied or not yet granted on iOS. This is caused by the use of try! when initializing AVCaptureDeviceInput in VideoCapture.swift.
Steps to Reproduce
1.Run the app on an iOS device.
2.When the camera permission dialog appears, select "Don't Allow" (or disable camera permission in Settings).
3.The app crashes with a fatal error.
Error Log
ultralytics_yolo/VideoCapture.swift:89: Fatal error: 'try!' expression unexpectedly raised an error:
Error Domain=AVFoundationErrorDomain Code=-11852 "背面カメラを使用できません"
UserInfo={NSLocalizedDescription=背面カメラを使用できません, ...}
Environment
- OS: macOS Sequoia 15.5
- Language or framework version: Flutter 3.38.5
- Package or app version: ultralytics_yolo 0.1.40
- Hardware: iphone 16e
- iOS Version: 18.6.2
- Any other environment details: The crash occurs specifically when camera permission is denied or restricted.
Minimal Reproducible Example
- Install the app on an iOS device.
- When the system camera permission dialog appears, select "Don't Allow".
- The app crashes immediately due to a Fatal error in the native Swift code.
Additional
No response
Are you willing to submit a PR?
- Yes I'd like to help by submitting a PR!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingembeddedPertaining to IOT or low-power devicesPertaining to IOT or low-power devicesfixedBug has been resolvedBug has been resolved