Skip to content

[BUG] No active and enabled video connection on iOS 18.6.2 #113

@bogdan

Description

@bogdan

Update update to iOS 18.6.2 App experiences random crashes when capturing a photo with error:

CrashReporter Key:  3f95e34cd9e7415e65e7a9d0b02173176a0a6c45
Hardware Model:     iPhone12,1
Process:            RealPhotos
Identifier:         photos.real.App
Version:            1.4.7
Role:               Foreground
OS Version:         iOS 18.6.2


NSInvalidArgumentException: *** -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] No active and enabled video connection

0  CoreFoundation +0x11a0bc ___exceptionPreprocess
1  libobjc.A.dylib +0x31ab8 _objc_exception_throw
2  AVFCapture +0xddd78      -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:]
3  RealPhotos +0x181be0     CameraManagerPhotoOutput.capture() (CameraManager+PhotoOutput.swift:45:16)
4  RealPhotos +0x187558     CameraManager.captureOutput() (CameraManager.swift:155:38)
5  RealPhotos +0x1949ec     specialized MCameraScreen.captureOutput() (Public+UI+MCameraScreen.swift:97:42)
6  SwiftUI +0x9b20bc        partial apply for closure #1 in closure #2 in UICollectionViewListCoordinator.collectionView(_:willPerformPreviewActionForMenuWith:animator:)
7  SwiftUI +0x8c2290        partial apply for specialized thunk for @callee_guaranteed () -> (@out A, @error @owned Error)
8  SwiftUI +0xf643e8        specialized static MainActor.assumeIsolated<A>(_:file:line:)
9  SwiftUI +0xf38a0c        ButtonAction.callAsFunction()
10 SwiftUI +0x4643f4        partial apply for implicit closure #2 in implicit closure #1 in PlatformItemListButtonStyle.makeBody(configuration:)
11 SwiftUI +0x9647d0        ButtonBehavior.ended()
12 SwiftUI +0x9659c4        partial apply for implicit closure #2 in implicit closure #1 in ButtonBehavior.body.getter
13 SwiftUI +0xeb7570        partial apply for closure #1 in closure #2 in closure #1 in _ButtonGesture.internalBody.getter
14 SwiftUI +0x8c2290        partial apply for specialized thunk for @callee_guaranteed () -> (@out A, @error @owned Error)
15 SwiftUI +0xf643e8        specialized static MainActor.assumeIsolated<A>(_:file:line:)
16 SwiftUI +0xeb434c        closure #2 in closure #1 in _ButtonGesture.internalBody.getter
17 SwiftUI +0xeb6b74        closure #2 in PrimitiveButtonGestureCallbacks.dispatch(phase:state:)
18 SwiftUICore +0xfd5bc     thunk for @callee_guaranteed () -> ()
19 SwiftUICore +0xfd590     thunk for @escaping @callee_guaranteed () -> (@out ())
20 SwiftUI +0x63cba8        thunk for @callee_guaranteed () -> ()
21 SwiftUI +0x8690b4        closure #2 in Collection<>.dismiss(from:)
22 SwiftUICore +0x5e3258    Update.Action.callAsFunction()
23 SwiftUICore +0x120d8     static Update.dispatchActions()
24 SwiftUICore +0x11574     static Update.end()
25 SwiftUICore +0x5e2da8    static Update.enqueueAction(reason:_:)
26 SwiftUI +0xb6d8e0        UIKitResponderEventBindingBridge.flushActions()
27 SwiftUI +0xb6d958        @objc UIKitResponderEventBindingBridge.flushActions()
28 UIKitCore +0x68158       -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]
29 UIKitCore +0x67fc8       __UIGestureRecognizerSendTargetActions
30 UIKitCore +0x67d98       __UIGestureRecognizerSendActions
31 UIKitCore +0x6768c       -[UIGestureRecognizer _updateGestureForActiveEvents]
32 UIKitCore +0x5e90        __UIGestureEnvironmentUpdate
33 UIKitCore +0x53278       -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]
34 UIKitCore +0x53100       -[UIGestureEnvironment _updateForEvent:window:]
35 UIKitCore +0x52c14       -[UIWindow sendEvent:]
36 UIKitCore +0x5f504       -[UIApplication sendEvent:]
37 UIKit +0x7cac            -[UIApplicationAccessibility sendEvent:]
38 UIKitCore +0x1099c       ___dispatchPreprocessedEventFromEventQueue
39 UIKitCore +0xfbe0        ___processEventQueue
40 UIKitCore +0x94e0        _updateCycleEntry
41 UIKitCore +0x9400        __UIUpdateSequenceRun
42 UIKitCore +0x8ab0        _schedulerStepScheduledMainSection
43 UIKitCore +0x41e0        _runloopSourceCallback
44 CoreFoundation +0xf928   ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
45 CoreFoundation +0xf740   ___CFRunLoopDoSource0
46 CoreFoundation +0xf59c   ___CFRunLoopDoSources0
47 CoreFoundation +0xff1c   ___CFRunLoopRun
48 CoreFoundation +0x11ad8  _CFRunLoopRunSpecific
49 GraphicsServices +0x1450 _GSEventRunModal
50 UIKitCore +0x135270      -[UIApplication _run]
51 UIKitCore +0x100a24      _UIApplicationMain
52 SwiftUI +0x3037a0        closure #1 in KitRendererCommon(_:)
53 SwiftUI +0x9018          runApp<A>(_:)
54 SwiftUI +0x8ecc          static App.main()
55 RealPhotos +0x52c04      static RealPhotosApp.$main() (RealPhotosApp.swift)
56 dyld +0x3ef04            start
Name Version
SDK 3.0.0
Xcode 14.0
Operating System iOS 18.6.2
Device iPhone12,1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions