Need help with objc_fatalv crash

Hey there! My app's top crash is a mysterious one and I can't seem to figure it out. Hopefully someone here can shed some light. For context we use a lot of UIHostingController's to bridge our SwiftUI views.

Crashed: com.apple.main-thread

0 libsystem_kernel.dylib 0x13ec4 __abort_with_payload + 8

1 libsystem_kernel.dylib 0x33bec abort_with_payload_wrapper_internal + 104

2 libsystem_kernel.dylib 0x33b84 abort_with_payload_wrapper_internal + 30

3 libobjc.A.dylib 0xbea0 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 116

4 libobjc.A.dylib 0xbe2c _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 30

5 libobjc.A.dylib 0xb040 weak_register_no_lock + 396

6 libobjc.A.dylib 0xa9bc objc_initWeak + 440

7 libswiftCore.dylib 0x43abe8 swift_unknownObjectWeakInit + 92

8 SwiftUI 0xf40cc NavigationBridge_PhoneTV.pushTarget(isDetail:) + 376

9 SwiftUI 0xf9490 UIKitNavigationBridge.update(environment:) + 1060

10 SwiftUI 0x5b51c UIHostingController._update(environment:) + 156

11 SwiftUI 0x96a30 _UIHostingView.updateEnvironment() + 3484

12 SwiftUICore 0xa0d0a0 closure #1 in ViewRendererHost.updateGraph() + 364

13 SwiftUICore 0xa0ca08 ViewRendererHost.updateGraph() + 180

14 SwiftUICore 0xa0d7d4 closure #1 in ViewRendererHost.render(interval:updateDisplayList:targetTimestamp:) + 368

15 SwiftUICore 0xa0b0d4 ViewRendererHost.render(interval:updateDisplayList:targetTimestamp:) + 556

16 SwiftUI 0x8f1634 UIHostingViewBase.renderForPreferences(updateDisplayList:) + 168

17 SwiftUI 0x8f495c closure #1 in UIHostingViewBase.requestImmediateUpdate() + 72

18 SwiftUI 0xcc700 thunk for @escaping @callee_guaranteed () -> () + 36

19 libdispatch.dylib 0x2370 _dispatch_call_block_and_release + 32

20 libdispatch.dylib 0x40d0 _dispatch_client_callout + 20

21 libdispatch.dylib 0x129e0 _dispatch_main_queue_drain + 980

22 libdispatch.dylib 0x125fc _dispatch_main_queue_callback_4CF + 44

23 CoreFoundation 0x56204 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16

24 CoreFoundation 0x53440 __CFRunLoopRun + 1996

25 CoreFoundation 0x52830 CFRunLoopRunSpecific + 588

26 GraphicsServices 0x11c4 GSEventRunModal + 164

27 UIKitCore 0x3d2eb0 -[UIApplication _run] + 816

28 UIKitCore 0x4815b4 UIApplicationMain + 340

29 (MyApp) 0x1a7e0 main + 8 (main.swift:8)

30 ??? 0x1bf97eec8 (Missing)

Answered by DTS Engineer in 816581022

I’m not sure why you started a new thread but, hey, that’s cool. I’ve closed out this one and I’ll go look at your new one now.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Here's another variant if that helps

Crashed: com.apple.main-thread

0 libsystem_kernel.dylib 0x133c0 __abort_with_payload + 8

1 libsystem_kernel.dylib 0x31bb0 abort_with_payload_wrapper_internal + 100

2 libsystem_kernel.dylib 0x31b4c abort_with_payload_wrapper_internal + 26

3 libobjc.A.dylib 0x9a48 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 112

4 libobjc.A.dylib 0x99d8 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 26

5 libobjc.A.dylib 0x8da8 weak_register_no_lock + 336

6 libobjc.A.dylib 0x8800 objc_initWeak + 316

7 libswiftCore.dylib 0x33bcc8 swift_unknownObjectWeakInit + 56

8 SwiftUI 0x35a710 OUTLINED_FUNCTION_283 + 209544

9 SwiftUI 0x368644 OUTLINED_FUNCTION_283 + 266684

10 SwiftUI 0x1c3c38 __swift_memcpy65_8 + 53124

11 SwiftUI 0x263424 -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled] + 345316

12 SwiftUI 0x259c14 -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled] + 306388

13 SwiftUI 0x22db00 -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled] + 125888

14 SwiftUI 0x22b118 -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled] + 115160

15 SwiftUI 0x22a778 -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled] + 112696

16 SwiftUI 0x229500 -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled] + 107968

17 SwiftUI 0x1450c0 OUTLINED_FUNCTION_223 + 4768

18 SwiftUI 0x145060 OUTLINED_FUNCTION_223 + 4672

19 libdispatch.dylib 0x61c9c _dispatch_call_block_and_release + 24

20 libdispatch.dylib 0x62cc0 _dispatch_client_callout + 16

21 libdispatch.dylib 0x10548 _dispatch_main_queue_drain + 988

22 libdispatch.dylib 0x1015c _dispatch_main_queue_callback_4CF$VARIANT$mp + 36

23 CoreFoundation 0x52ff8 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12

24 CoreFoundation 0x50440 __CFRunLoopRun + 2084

25 CoreFoundation 0x4f7c8 CFRunLoopRunSpecific + 572

26 GraphicsServices 0x1814 GSEventRunModal + 160

27 UIKitCore 0x3d3268 -[UIApplication _run] + 868

28 UIKitCore 0x47d90c UIApplicationMain + 312

29 (MyApp) 0x1a7e0 main + 8 (main.swift:8)

30 ??? 0x1afb2f228 (Missing)

Please post a full crash report, per the advice in Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Reposted here

I’m not sure why you started a new thread but, hey, that’s cool. I’ve closed out this one and I’ll go look at your new one now.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Need help with objc_fatalv crash
 
 
Q