SKStoreProductViewController Crash

I'm getting the following crash report in Crashlytics:

0 libobjc.A.dylib

objc_msgSend + 16

1 StoreKit

-[SKStoreProductViewController _didFinish] + 68

2 CoreFoundation

___invoking___ + 144

3 CoreFoundation

-[NSInvocation invoke] + 284

4 FrontBoardServices

___FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36

5 FrontBoardServices

-[FBSSerialQueue _performNext] + 176

6 FrontBoardServices

-[FBSSerialQueue _performNextFromRunLoopSource] + 56

7 CoreFoundation

___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24

8 CoreFoundation

___CFRunLoopDoSources0 + 524

9 CoreFoundation

___CFRunLoopRun + 804

10 CoreFoundation

CFRunLoopRunSpecific + 444

11 GraphicsServices

GSEventRunModal + 180

12 UIKit

-[UIApplication _run] + 684

13 UIKit

UIApplicationMain + 208

14 PingAnData

main (main.m:14)


0 libobjc.A.dylib

objc_msgSend + 5

1 StoreKit

-[SKStoreProductViewController _resetRemoteViewController] + 249

2 UIKit

___57-[_UIRemoteViewController _terminateUnconditionallyThen:]_block_invoke_3 + 285

3 libdispatch.dylib

__dispatch_call_block_and_release + 11

4 libdispatch.dylib

__dispatch_client_callout + 23

5 libdispatch.dylib

__dispatch_main_queue_callback_4CF$VARIANT$mp + 1525

6 CoreFoundation

___CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9

7 CoreFoundation

___CFRunLoopRun + 1575

8 CoreFoundation

CFRunLoopRunSpecific + 520

9 CoreFoundation

CFRunLoopRunInMode + 108

10 GraphicsServices

GSEventRunModal + 160

11 UIKit

UIApplicationMain + 144

12 PingAnData

main (main.m:14)

Replies

I got same crash.


0 libobjc.A.dylib 0x000000018e1079c8 objc_msgSend + 8

1 StoreKit 0x0000000184fd9c3c -[SKStoreProductViewController _loadDidFinishWithResult:error:] + 72

2 CoreFoundation 0x0000000182193810 __invoking___ + 144

3 CoreFoundation 0x00000001820acdbc -[NSInvocation invoke] + 308

4 libdispatch.dylib 0x000000018e6dc420 _dispatch_call_block_and_release + 24

5 libdispatch.dylib 0x000000018e6dc3e0 _dispatch_client_callout + 16

6 libdispatch.dylib 0x000000018e6df56c _dispatch_main_queue_callback_4CF + 344

7 CoreFoundation 0x000000018214ed64 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12

8 CoreFoundation 0x000000018214d0a4 __CFRunLoopRun + 1452

9 CoreFoundation 0x000000018208db38 CFRunLoopRunSpecific + 452

10 GraphicsServices 0x0000000187ab3830 GSEventRunModal + 168

11 UIKit 0x00000001850cc0e8 UIApplicationMain + 1156


Did you find the reason and solution?

Any update?

I got the same crashes


Crashed: com.apple.main-thread

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010


===================


Crashed: com.apple.main-thread

0 libobjc.A.dylib 0x180928910 objc_msgSend + 16

1 StoreKit 0x1956d32f4 -[SKStoreProductViewController _didFinish] + 68

2 CoreFoundation 0x181762580 __invoking___ + 144

3 CoreFoundation 0x181641748 -[NSInvocation invoke] + 284

4 libdispatch.dylib 0x18104ca60 _dispatch_client_callout + 16

5 libdispatch.dylib 0x181088b2c _dispatch_block_invoke_direct$VARIANT$armv81 + 216

6 FrontBoardServices 0x183f8f878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36

7 FrontBoardServices 0x183f8f51c -[FBSSerialQueue _performNext] + 404

8 FrontBoardServices 0x183f8fab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56

9 CoreFoundation 0x181703404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24

10 CoreFoundation 0x181702c2c __CFRunLoopDoSources0 + 276

11 CoreFoundation 0x18170079c __CFRunLoopRun + 1204

12 CoreFoundation 0x181620da8 CFRunLoopRunSpecific + 552

13 GraphicsServices 0x183605020 GSEventRunModal + 100

14 UIKit 0x18b63d758 UIApplicationMain + 236

15 MyApp 0x102640464 main + 30 (MyAppClass.swift:30)

16 libdyld.dylib 0x1810b1fc0 start + 4

Did you manage to find a solution?


Some of our devs think it's an issue with compiling the app in xcode 11.X as well as SKStoreProductViewController not being handled correctly in landscape orientation. Some people have suggested subclassing it but apprently this is no longer allowed with iOS 13.


However this issue is only occuring with one of our apps and limited to iOS 9,10,11 and is proving difficult to reliably reporduce. Any help would be greatly appreciated!

same issue in iOS9 iOS10 iOS11
libobjc.A.dylibobjcoptisKindOfClass + 201 Foundation-[NSXPCConnection sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 10922 CoreFoundationforwarding + 5923 CoreFoundationCFforwardingprep0 + 924 CoreFoundationinvoking + 1445 CoreFoundation-[NSInvocation invoke] + 3006 CoreFoundation-[NSInvocation invokeWithTarget:] + 767 UIKitCore-[UIViewServiceImplicitAnimationEncodingProxy forwardInvocation:] + 2288 CoreFoundationforwarding + 6769 CoreFoundationCFforwardingprep0 + 9210 CoreFoundationinvoking + 14411 CoreFoundation-[NSInvocation invoke] + 30012 CoreFoundation-[NSInvocation invokeWithTarget:] + 7613 StoreKit-[SKInvocationQueueProxy setInvocationTarget:] + 22814 StoreKit60-[SKStoreProductViewController requestRemoteViewController]blockinvoke.346 + 18015 libdispatch.dylibdispatchcallblockandrelease + 2416 libdispatch.dylibdispatchclientcallout + 1617 libdispatch.dylibdispatchmainqueuecallback4CF$VARIANT$armv81 + 86018 CoreFoundationCFRUNLOOPISSERVICINGTHEMAINDISPATCHQUEUE + 1219 CoreFoundation_CFRunLoopRun + 172420 CoreFoundationCFRunLoopRunSpecific + 42421 GraphicsServicesGSEventRunModal + 16022 UIKitCoreUIApplicationMain + 193223 WDSUnivmain (main.m:0)24 libdyld.dylibstart + 4