Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes in SDK (placements) #115

Closed
levochkaa opened this issue Apr 24, 2024 · 1 comment
Closed

Crashes in SDK (placements) #115

levochkaa opened this issue Apr 24, 2024 · 1 comment

Comments

@levochkaa
Copy link
Contributor

Started to appear after updating from 3.2.8 to 3.3.2.
My guess is that storeKitProductsFetchedCallbacks can get the same callback twice, somehow.
The stacktrace is always the same for us, we call only Apphud.placement on our paywall appear/disappear

Crashed: com.apple.main-thread
0  libswiftCore.dylib             0x383fc _assertionFailure(_:_:file:line:flags:) + 264
1  libswift_Concurrency.dylib     0x5824 CheckedContinuation.resume(returning:) + 504
2  ArtWorkout                     0x3e1118 closure #1 in closure #1 in static Apphud.placements(maxAttempts:) + 4381184280
3  ArtWorkout                     0x3e9958 partial apply for closure #1 in closure #1 in static Apphud.paywalls(maxAttempts:) + 4381219160
4  ArtWorkout                     0x3a2be4 closure #1 in closure #1 in ApphudInternal.fetchOfferingsFull(maxAttempts:callback:) + 255 (ApphudInternal+Product.swift:255)
5  ArtWorkout                     0x3a6f6c partial apply for thunk for @escaping @callee_guaranteed (@guaranteed ApphudError?) -> () + 4380946284 (<compiler-generated>:4380946284)
6  ArtWorkout                     0x39f99c ApphudInternal.performAllStoreKitProductsFetchedCallbacks(error:) + 43 (ApphudInternal+Product.swift:43)
7  ArtWorkout                     0x3a4c9c specialized ApphudInternal.handleDidFetchAllProducts(storeKitProducts:error:) + 128 (ApphudInternal+Product.swift:128)
8  libswift_Concurrency.dylib     0x41ac4 swift::runJobInEstablishedExecutorContext(swift::Job*) + 436
9  libswift_Concurrency.dylib     0x42d54 swift_job_runImpl(swift::Job*, swift::ExecutorRef) + 72
10 libdispatch.dylib              0x128a8 _dispatch_main_queue_drain + 744
11 libdispatch.dylib              0x125b0 _dispatch_main_queue_callback_4CF + 44
12 CoreFoundation                 0x3701c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
13 CoreFoundation                 0x33d28 __CFRunLoopRun + 1996
14 CoreFoundation                 0x33478 CFRunLoopRunSpecific + 608
15 GraphicsServices               0x34f8 GSEventRunModal + 164
16 UIKitCore                      0x22c62c -[UIApplication _run] + 888
17 UIKitCore                      0x22bc68 UIApplicationMain + 340
18 UIKitCore                      0x4563d0 __swift_destroy_boxed_opaque_existential_1Tm + 12220
19 ArtWorkout                     0x26e84 main + 4377276036 (AppDelegate.swift:4377276036)
20 ???                            0x1c7e56dcc (Missing)
@ren6
Copy link
Contributor

ren6 commented Apr 26, 2024

This was happening very rare when using await method of placements(). Fixed in v3.3.6. Thank you!

@ren6 ren6 closed this as completed Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants