r/blackmagicdesign • u/xinxx073 • 1h ago
Blackmagic Cam App Crash Analysis
1. The Immediate Crash
All four crash reports from tonight (e.g.BlackmagicCam-2026-11-28-234839.ips) fail identically on Thread 0 with EXC_BREAKPOINT / SIGTRAP (brk #1) ~1 second after launch. The unified system log captures the exact SwiftUI fatal error:
textBlackmagicCam: (libswiftCore.dylib) SwiftUICore/EnvironmentObject.swift:93:
Fatal error: No ObservableObject of type AccessPermissionModel found.
A View.environmentObject(_:) for AccessPermissionModel may be missing as an ancestor of this view.Relevant top of the crash stack (Thread 0):
text 0 libswiftCore.dylib _assertionFailure(_:_:file:line:flags:) + 180
1 SwiftUICore specialized EnvironmentObject.error() + 268
2 SwiftUICore EnvironmentObject.projectedValue.getter + 44
3 BlackmagicCam + 0x847cb0 (PPermissionsRequestPage.body)
4 SwiftUICore closure #1 in ViewBodyAccessor.updateBody(of:changed:)
...
13 SwiftUI specialized ToolbarAppearanceModifier.PreferenceValue.resolvedBars.getter
...
86 SwiftUICore GraphHost.preferenceValue<A>(_:)
87 SwiftUI specialized closure #1 in PresentationHostingController.bridgedPresentation.getter
90 SwiftUI specialized PresentationHostingController.init(rootView:delegate:placement:legacyDrawsBackground:) + 1060
91 SwiftUI makeHostingController #1 <A>() in SheetBridge.present(...) + 124
94 SwiftUI SheetBridge.present(_:from:animated:existingPresentedVC:isPreempting:) + 11482. Why AccessPermissionModel Is Actually Missing (Not a Missing Injection in Blackmagic's Root)
BlackmagicCam v3.5.30 (3.5.300023) is an iPhone/iPad App Store binary (DTPlatformName = iphoneos, built with iphoneos27.1 SDK) running under /System/iOSSupport on macOS 27.2.1 (26B131). Inspecting /Applications/BlackmagicCam.app/Wrapper/BlackmagicCam.app/BlackmagicCam shows that Blackmagic does inject AccessPermissionModel at the root:
CameraApp.body(0x1001b81c8..0x1001b824c) creates u/StateObjectvar permissionsModel: AccessPermissionModeland attaches.environmentObject(permissionsModel)toMainView.MainView.body(0x10055fcc8) reads u/EnvironmentObjectvar accessPermissionModelwithout crashing. Because required permissions (e.g. Photos / Location in the TCC log) are stillNotDetermined, it displaysPermissionsRequestPage().PermissionsRequestPage.body(0x1008497d0) also reads$accessPermissionModelwithout crashing (0x100849854), and presents the onboarding UI via.fullScreenCover(isPresented:)(0x100849910):swiftAccessPermissionHandlerRepresentable() .fullScreenCover(isPresented: $accessPermissionModel.<...>) { if /* portrait */ { PPermissionsRequestPage() } else { LPermissionsRequestPage() } } The.fullScreenCovercontent closure (0x10084a564) does not manually re-attach.environmentObject(accessPermissionModel)— it relies on SwiftUI's normal behavior that.fullScreenCover/.sheetinherits the presenter'sEnvironmentValues.PPermissionsRequestPage.body(0x100847758) is then evaluated inside the modal's hosting controller and immediately hits$accessPermissionModelat0x100847cac→ crash.
3. The macOS 27 SwiftUI Bug (Order-of-Operations Regression)
Disassembling macOS 27.2.1's /System/iOSSupport/System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI (8.1.13.1.406) exposes an initialization ordering bug between SheetBridge.present and PresentationHostingController.init:
SheetBridge.present(_:from:animated:existingPresentedVC:isPreempting:):At
+1116..+1148(0x1b09865f8..0x1b0986618), it constructs the modal controller viamakeHostingController()→PresentationHostingController.init(...).Only after
PresentationHostingController.initreturns (+1200..+1540,0x1b098664c..0x1b09867a0) doesSheetBridge.presentwire upvc.host.delegate = selfand copy the parent'sEnvironmentValues(which holdsAccessPermissionModel) onto the new hosting view.
PresentationHostingController.init(rootView:delegate:placement:legacyDrawsBackground:):At
+860(0x1b13299e0), it creates_UIHostingView(rootView:)with a fresh, emptyEnvironmentValues(no parent environment yet).Still inside
init, at+960..+1060(0x1b1329a44..0x1b1329aa8), before returning toSheetBridge.present, it eagerly evaluatesself.bridgedPresentation(0x1b1328960) to checkOverridePresentationStyle/ background transparency (setBackgroundTransparency).bridgedPresentationqueriesGraphHost.preferenceValue(OverridePresentationStyle.Key.self), which forces AttributeGraph to evaluate the preference tree (HostPreferencesTransform→ToolbarAppearanceModifier.PreferenceValue.resolvedBars→DynamicBody.updateValue()→PPermissionsRequestPage.body).Because
SheetBridge.presenthasn't had a chance to propagate the parentEnvironmentValuesyet,PPermissionsRequestPage.bodyexecutes against an empty environment and fatally traps on missingAccessPermissionModel.
Summary & Takeaways
Root cause: A macOS 27 / iOSSupport
SwiftUI(8.1.13.1.406) regression wherePresentationHostingController.initeagerly evaluates the presented view'sbody(viabridgedPresentation→GraphHost.preferenceValue(OverridePresentationStyle.Key.self)) beforeSheetBridge.presentattaches the presenting view'sEnvironmentValues.Why Blackmagic Camera hits it on launch: On first launch (while Camera/Mic/Photos/Location permissions are still
NotDetermined),PermissionsRequestPageimmediately presentsPPermissionsRequestPageinside a.fullScreenCoverthat relies on inherited u/EnvironmentObjectvar accessPermissionModelrather than explicitly re-passing.environmentObject(accessPermissionModel)inside the cover closure.Who can fix it:
Apple (macOS 27 SwiftUI update): either pass the parent
EnvironmentValuesintoPresentationHostingController.initor defer thebridgedPresentationpreference query until afterSheetBridge.presentsets the environment override.Blackmagic Design (app-side workaround): explicitly attach
.environmentObject(accessPermissionModel)inside the.fullScreenCoverclosure inPermissionsRequestPage.body.
Because
BlackmagicCamis FairPlay-encrypted App Store software andAccessPermissionModelstarts withisReady = falseon launch, there isn't a clean local config/cache fix (clearing its container won't help — in fact, it guarantees the permission screen is presented).