adaptyteam / AdaptySDK-iOS

iOS SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
374 stars 39 forks source link

Crash on SKQueueManager.receivedFailedTransaction #84

Open AlexSaraev opened 6 months ago

AlexSaraev commented 6 months ago

Operating System: iOS 17.4.1 Device: Phone 12 Pro Max SDK Version: Adapty 2.10.3

Fatal Exception: NSRangeException *** -[__NSArrayM removeObjectsInRange:]: range {0, 1} extends beyond bounds for empty array

SK1QueueManager+MakePurchase.swift - Line 40 closure #1 in SK1QueueManager.receivedFailedTransaction(_:) + 40

This crash affected users of App Store. But we don't observe and don't finish the transactions, in contrast to the previous justification. All we do is use Adapty throughout the entire purchasing process.

Originally posted by @AlexSaraev in https://github.com/adaptyteam/AdaptySDK-iOS/issues/77#issuecomment-2095849950

x401om commented 6 months ago

Hi, @AlexSaraev! Could you please share the full stacktrace of this crash so we could analyze it deeper? For now it looks like you have encountered the same iOS bug as described in #77.