Hi,
Has anyone experienced this crash in the StoreKit(for iOS)?
Every so often (like in 40-50% of the inApp purchases transactions) I get this crash and the app dies.
It does not happen every time and it does not happen for a particular purchase item - it is random.
When I restart the App the purchase seems to get completed.
I have attached a screenshots with the error and with the running thread stack trace.
Any ideas?
Thanks
Vlad
Comments
Can you put NSLog statement printing out transaction variable and see what values it has on crash?
@ar2rsawseen, SKPaymentTransaction it is not NULL. I checked several times with the debugger.
I will put a NSLog, but I think it will crash too because it seems like the pointer points to a freed memory.
I have to see what to print since this is a class file. I guess I will print some of the properties.
I did some research -people get similar crashes when they release (do not retain) the observer, but the plugin does not seem to have such problem.
I will let you know.
I am sorry I wasted your time.
The problem was in my LUA code.
I was calling "finishTransaction" twice (but it was not obvious) and sometimes this crashed, sometimes it worked (I guess depending when the Objective C garbage collector comes or when Apple store kit releases some resources).
Please do not look further and thank you for your help!
Likes: ar2rsawseen, atilim