superwall / Superwall-iOS

Remotely configure every aspect of your paywall and double your revenue.
https://superwall.com
MIT License
82 stars 22 forks source link

[BUG] Crashes during transaction #201

Open vladimir-d-1 opened 4 months ago

vladimir-d-1 commented 4 months ago

New issue checklist

General information

Describe the bug

I have just crashlogs from production

1) Thread 4 Crashed: 0 libobjc.A.dylib 0x000000018f1c4820 objcmsgSend + 32 (:-1) 1 SuperwallKit 0x0000000106256020 PurchasingCoordinator.completePurchase(of:result:) + 132 (PurchasingCoordinator.swift:125) 2 SuperwallKit 0x000000010624126c ProductPurchaserSK1.updatePurchaseCompletionBlock(for:purchaseDate:) + 44 (ProductPurchaserSK1.swift:219) 3 SuperwallKit 0x0000000106240855 closure #1 in ProductPurchaserSK1.paymentQueue(:updatedTransactions:) + 1 (ProductPurchaserSK1.swift:126) 4 SuperwallKit 0x000000010624292d partial apply for closure #1 in ProductPurchaserSK1.paymentQueue(_:updatedTransactions:) + 1 (:0) 5 SuperwallKit 0x00000001062278f5 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1 6 SuperwallKit 0x00000001062434a5 thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A)specialized partial apply + 1 7 libswift_Concurrency.dylib 0x00000001a213ba41 completeTaskWithClosure(swift::AsyncContext, swift::SwiftError) + 1 (Task.cpp:463)

2) Last Exception Backtrace: 0 CoreFoundation 0x1ab54e678 exceptionPreprocess + 164 (NSException.m:249) 1 libobjc.A.dylib 0x1a3803c80 objc_exception_throw + 60 (objc-exception.mm:356) 2 CoreFoundation 0x1ab49b1a8 -[NSArrayM removeObjectsInRange:] + 2284 (NSArrayM.m:0) 3 CoreFoundation 0x1ab49c27c -[NSMutableArray removeObject:] + 132 (NSMutableArray.m:272) 4 StoreKit 0x1d3d56e0c -[SKPaymentQueue removeLocalTransaction:] + 128 (SKPaymentQueue.m:1321) 5 StoreKit 0x1d3d5114c -[SKPaymentQueue finishTransaction:] + 356 (SKPaymentQueue.m:345) 6 SuperwallKit 0x1076a4d84 ProductPurchaserSK1.updatePurchaseCompletionBlock(for:purchaseDate:) + 396 (ProductPurchaserSK1.swift:213) 7 SuperwallKit 0x1076a4855 closure #1 in ProductPurchaserSK1.paymentQueue(:updatedTransactions:) + 1 (ProductPurchaserSK1.swift:126) 8 SuperwallKit 0x1076a692d partial apply for closure #1 in ProductPurchaserSK1.paymentQueue(_:updatedTransactions:) + 1 (:0) 9 SuperwallKit 0x10768b8f5 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1 10 SuperwallKit 0x1076a74a5 thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A)specialized partial apply + 1 11 libswift_Concurrency.dylib 0x1b674fa41 completeTaskWithClosure(swift::AsyncContext, swift::SwiftError) + 1 (Task.cpp:463)

3) Thread 5 Crashed: 0 libobjc.A.dylib 0x0000000199ddac14 objcretain + 16 (:-1) 1 SuperwallKit 0x0000000106bc4a74 DependencyContainer.makeStoreTransaction(from:) + 56 (DependencyContainer.swift:416) 2 SuperwallKit 0x0000000106c5d8c9 ProductPurchaserSK1.record(:) + 1 (ProductPurchaserSK1.swift:291) 3 SuperwallKit 0x0000000106c5f491 closure #1 in closure #1 in ProductPurchaserSK1.paymentQueue(:updatedTransactions:) + 1 4 SuperwallKit 0x0000000106c5f495 partial apply for closure #1 in closure #1 in ProductPurchaserSK1.paymentQueue(:updatedTransactions:) + 1 5 SuperwallKit 0x0000000106c438f5 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1 6 SuperwallKit 0x0000000106c43959 thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A)specialized partial apply + 1 7 libswift_Concurrency.dylib 0x00000001acd8ba41 completeTaskWithClosure(swift::AsyncContext, swift::SwiftError) + 1 (Task.cpp:463)