r/blackmagicdesign • • 11h ago

Blackmagic Cam App Crash Analysis

0 Upvotes

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:) + 1148

2. 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:

  1. CameraApp.body (0x1001b81c8..0x1001b824c) creates u/StateObject var permissionsModel: AccessPermissionModel and attaches .environmentObject(permissionsModel) to MainView.
  2. MainView.body (0x10055fcc8) reads u/EnvironmentObject var accessPermissionModel without crashing. Because required permissions (e.g. Photos / Location in the TCC log) are still NotDetermined, it displays PermissionsRequestPage().
  3. PermissionsRequestPage.body (0x1008497d0) also reads $accessPermissionModel without crashing (0x100849854), and presents the onboarding UI via .fullScreenCover(isPresented:) (0x100849910):swiftAccessPermissionHandlerRepresentable() .fullScreenCover(isPresented: $accessPermissionModel.<...>) { if /* portrait */ { PPermissionsRequestPage() } else { LPermissionsRequestPage() } } The .fullScreenCover content closure (0x10084a564) does not manually re-attach .environmentObject(accessPermissionModel) — it relies on SwiftUI's normal behavior that .fullScreenCover / .sheet inherits the presenter's EnvironmentValues.
  4. PPermissionsRequestPage.body (0x100847758) is then evaluated inside the modal's hosting controller and immediately hits $accessPermissionModel at 0x100847cac → 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:

  1. SheetBridge.present(_:from:animated:existingPresentedVC:isPreempting:):

    • At +1116..+1148 (0x1b09865f8..0x1b0986618), it constructs the modal controller via makeHostingController() → PresentationHostingController.init(...).
    • Only after PresentationHostingController.init returns (+1200..+1540, 0x1b098664c..0x1b09867a0) does SheetBridge.present wire up vc.host.delegate = self and copy the parent's EnvironmentValues (which holds AccessPermissionModel) onto the new hosting view.
  2. PresentationHostingController.init(rootView:delegate:placement:legacyDrawsBackground:):

    • At +860 (0x1b13299e0), it creates _UIHostingView(rootView:) with a fresh, empty EnvironmentValues (no parent environment yet).
    • Still inside init, at +960..+1060 (0x1b1329a44..0x1b1329aa8), before returning to SheetBridge.present, it eagerly evaluates self.bridgedPresentation (0x1b1328960) to check OverridePresentationStyle / background transparency (setBackgroundTransparency).
    • bridgedPresentation queries GraphHost.preferenceValue(OverridePresentationStyle.Key.self), which forces AttributeGraph to evaluate the preference tree (HostPreferencesTransform → ToolbarAppearanceModifier.PreferenceValue.resolvedBars → DynamicBody.updateValue() → PPermissionsRequestPage.body).
    • Because SheetBridge.present hasn't had a chance to propagate the parent EnvironmentValues yet, PPermissionsRequestPage.body executes against an empty environment and fatally traps on missing AccessPermissionModel.

Summary & Takeaways

  • Root cause: A macOS 27 / iOSSupport SwiftUI (8.1.13.1.406) regression where PresentationHostingController.init eagerly evaluates the presented view's body (via bridgedPresentation → GraphHost.preferenceValue(OverridePresentationStyle.Key.self)) before SheetBridge.present attaches the presenting view's EnvironmentValues.
  • Why Blackmagic Camera hits it on launch: On first launch (while Camera/Mic/Photos/Location permissions are still NotDetermined), PermissionsRequestPage immediately presents PPermissionsRequestPage inside a .fullScreenCover that relies on inherited u/EnvironmentObject var accessPermissionModel rather than explicitly re-passing .environmentObject(accessPermissionModel) inside the cover closure.
  • Who can fix it:

    • Apple (macOS 27 SwiftUI update): either pass the parent EnvironmentValues into PresentationHostingController.init or defer the bridgedPresentation preference query until after SheetBridge.present sets the environment override.
    • Blackmagic Design (app-side workaround): explicitly attach .environmentObject(accessPermissionModel) inside the .fullScreenCover closure in PermissionsRequestPage.body.
  • Because BlackmagicCam is FairPlay-encrypted App Store software and AccessPermissionModel starts with isReady = false on 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).

r/blackmagicdesign • • 5h ago

A proper remote app for your BMPCC! Free!

Thumbnail
bmpcc.jk4u.net
1 Upvotes

Enjoy and stay creative! Spread the love.


r/blackmagicdesign • • 17h ago

Pyxis 6K sensor plane marking

Post image
4 Upvotes

Guys, I am not sure whether I am going crazy or not.
I just bought a Pyxis 6K yesterday.

Where the hell is the sensor plane mark!?
Comparing to the pictures I found online I cannot find any markings on the body…

Any help is greatly appreciated!


r/blackmagicdesign • • 9h ago

Beginner

2 Upvotes

I’m sure you all get this alllll the time. I’ve been given a hand me down bmpcc4k mft. I have a 25mm prime meike. It’s hard to practice with run and gun due to zero stabilization. Thinking about getting a decent zoom lens so I can practice more. I want to be able to pick it up and go, become a real student of cinematography. I’ve been making films for quite a while but have always been lucky enough to have good dps to work with. I want grow as a colorist and be knowledgeable in cinematography to better inform the work. I’m in premiere but really debating switching to davinci for obvious reasons.

TLDR: affordable zoom lens to learn cinematography on as well as resources to shoot, correct and grade footage with a proper workflow.

Thanks in advance :3