bizz84 / SwiftyStoreKit

Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+ ⛺
MIT License
6.57k stars 796 forks source link

Unattended App crashes #420

Open Vithanco opened 6 years ago

Vithanco commented 6 years ago

Platform

In app purchase type

Environment

Version

067d464

Report

Issue summary

App crashes after lengthy time, most likely in combination with macOS "sleeping"

What did you expect to happen

no crash. :-)

What happened instead

I am developing an App that is using SwiftyStoreKit (which is great! - thanks for the good work). I regularly leave the App under development running (started from Xcode) when I close my MacBook. When I come back it has often crashed. See the 2 examples below.

Happy to provide more information if needed.

1st example

*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (null)

(lldb) bt

2nd example

*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (null)

objc[8824]: Attempt to use unknown class 0x600000dd3630. 105553170013504

(lldb) bt

hzlzh commented 2 years ago

Did anyone solve this issues?