-
Notifications
You must be signed in to change notification settings - Fork 473
Description
Is there an existing issue for this?
- I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
Maui.Camera delivers a grey preview picture (bug 1)
Taking a picture is not working (bug 2)
Expected Behavior
Taking a picture works, as it does on every other device
Steps To Reproduce
- Use Maui.Camera (reproduced on 4.0.0 and 5.0.0)
- Look at the previewcontrol of the camera (bug 1)
- Take a picture using CameraView.CaptureImage (bug2)
Link to public reproduction project repository
https://github.com/DodoTheDuck/CTMauiCameraProblem
Environment
- .NET MAUI CommunityToolkit: 13.0.0
- OS: Windows for Deployment, iOS 26.2 to reproduce
- .NET MAUI: workload version 10.0.1 (installation source SDK 10.0.100)Anything else?
I caught the following error in my app:
Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] No active and enabled video connection
Native stack trace:
0 CoreFoundation 0x0000000195602970 0BE54DBE-1ADC-3588-BFFA-E7C99E8D8208 + 809328
1 libobjc.A.dylib 0x00000001924f1814 objc_exception_throw + 88
2 AVFCapture 0x00000001bbb46274 758D6CE7-543C-309E-B569-3E79A971AA9B + 967284
3 CodexApp 0x00000001088d2870 xamarin_log + 7428
4 CodexApp 0x0000000103bdcb98 CodexApp + 14912408
5 CodexApp 0x000000010882fa38 CodexApp + 94943800
6 CodexApp 0x0000000103ae7bf4 CodexApp + 13908980
7 CodexApp 0x0000000105244fdc CodexApp + 38408156
8 CodexApp 0x0000000103ae7bf4 CodexApp + 13908980
9 CodexApp 0x0000000105240964 CodexApp + 38390116
10 CodexApp 0x0000000103ae7bf4 CodexApp + 13908980
11 CodexApp 0x0000000104c10fc8 CodexApp + 31903688
12 CodexApp 0x000000010855d2f0 CodexApp + 91984624
13 CodexApp 0x0000000108544084 CodexApp + 91881604
14 CodexApp 0x000000010852c49c CodexApp + 91784348
15 CodexApp 0x0000000108a3f740 BrotliEncoderHasMoreOutput + 1140240
16 CodexApp 0x00000001089f0090 BrotliEncoderHasMoreOutput + 814944
17 CodexApp 0x0000000108a00608 BrotliEncoderHasMoreOutput + 881880
18 libsystem_pthread.dylib 0x00000001f1e2344c _pthread_start + 136
19 libsystem_pthread.dylib 0x00000001f1e1f8cc thread_start + 8
at AVFoundation.AVCapturePhotoOutput.CapturePhoto(AVCapturePhotoSettings , IAVCapturePhotoCaptureDelegate )
at CommunityToolkit.Maui.Core.CameraManager.d__45.MoveNext()
at CommunityToolkit.Maui.Views.CameraView.CaptureImage(CancellationToken token)
at CodexApp.View.Kamera.FastCamera.CaptureAndProcessImageAsync()
ObjCRuntime.ObjCException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] No active and enabled video connection
Native stack trace:
0 CoreFoundation 0x0000000195602970 0BE54DBE-1ADC-3588-BFFA-E7C99E8D8208 + 809328
1 libobjc.A.dylib 0x00000001924f1814 objc_exception_throw + 88
2 AVFCapture 0x00000001bbb46274 758D6CE7-543C-309E-B569-3E79A971AA9B + 967284
3 CodexApp 0x00000001088d2870 xamarin_log + 7428
4 CodexApp 0x0000000103bdcb98 CodexApp + 14912408
5 CodexApp 0x000000010882fa38 CodexApp + 94943800
6 CodexApp 0x0000000103ae7bf4 CodexApp + 13908980
7 CodexApp 0x0000000105244fdc CodexApp + 38408156
8 CodexApp 0x0000000103ae7bf4 CodexApp + 13908980
9 CodexApp 0x0000000105240964 CodexApp + 38390116
10 CodexApp 0x0000000103ae7bf4 CodexApp + 13908980
11 CodexApp 0x0000000104c10fc8 CodexApp + 31903688
12 CodexApp 0x000000010855d2f0 CodexApp + 91984624
13 CodexApp 0x0000000108544084 CodexApp + 91881604
14 CodexApp 0x000000010852c49c CodexApp + 91784348
15 CodexApp 0x0000000108a3f740 BrotliEncoderHasMoreOutput + 1140240
16 CodexApp 0x00000001089f0090 BrotliEncoderHasMoreOutput + 814944
17 CodexApp 0x0000000108a00608 BrotliEncoderHasMoreOutput + 881880
18 libsystem_pthread.dylib 0x00000001f1e2344c _pthread_start + 136
19 libsystem_pthread.dylib 0x00000001f1e1f8cc thread_start + 8
at AVFoundation.AVCapturePhotoOutput.CapturePhoto(AVCapturePhotoSettings , IAVCapturePhotoCaptureDelegate )
at CommunityToolkit.Maui.Core.CameraManager.d__45.MoveNext()
at CommunityToolkit.Maui.Views.CameraView.CaptureImage(CancellationToken token)
at CodexApp.View.Kamera.FastCamera.CaptureAndProcessImageAsync()
Native stack trace:
0 CoreFoundation 0x0000000195602970 0BE54DBE-1ADC-3588-BFFA-E7C99E8D8208 + 809328
1 libobjc.A.dylib 0x00000001924f1814 objc_exception_throw + 88
2 AVFCapture 0x00000001bbb46274 758D6CE7-543C-309E-B569-3E79A971AA9B + 967284
3 CodexApp 0x00000001088d2870 xamarin_log + 7428
4 CodexApp 0x0000000103bdcb98 CodexApp + 14912408
5 CodexApp 0x000000010882fa38 CodexApp + 94943800
6 CodexApp 0x0000000103ae7bf4 CodexApp + 13908980
7 CodexApp 0x0000000105244fdc CodexApp + 38408156
8 CodexApp 0x0000000103ae7bf4 CodexApp + 13908980
9 CodexApp 0x0000000105240964 CodexApp + 38390116
10 CodexApp 0x0000000103ae7bf4 CodexApp + 13908980
11 CodexApp 0x0000000104c10fc8 CodexApp + 31903688
12 CodexApp 0x000000010855d2f0 CodexApp + 91984624
13 CodexApp 0x0000000108544084 CodexApp + 91881604
14 CodexApp 0x000000010852c49c CodexApp + 91784348
15 CodexApp 0x0000000108a3f740 BrotliEncoderHasMoreOutput + 1140240
16 CodexApp 0x00000001089f0090 BrotliEncoderHasMoreOutput + 814944
17 CodexApp 0x0000000108a00608 BrotliEncoderHasMoreOutput + 881880
18 libsystem_pthread.dylib 0x00000001f1e2344c _pthread_start + 136
19 libsystem_pthread.dylib 0x00000001f1e1f8cc thread_start + 8