I get a mysterious crash after I tap "buy" or "cancel" in the "Confirm your In-App Purchase" dialogue. When I debug in XCode I get a bunch of machine code errors, rather than readable stuff.
Any ideas?!
When debugging I've concluded that:
- The crash always happens if I use event listeners (Event.PRODUCTS_COMPLETE, Event.PRODUCTS_ERROR)
- If no event listeners are used it doesn't crash and the purchase appears to complete successfully. When I tap to purchase a second time, however, the app immediately closes down (without a dialogue).
- Exporting to iOS 7 doesn't solve the problem
Build info:
- Using 2016-06 "iab" plugin
- It's a modified version of GiderosiOSPlayer with the name and package changed to work with iTunes
- Also uses the "gaming" plugin, which works fine
Comments
http://docs.giderosmobile.com/interface/iab
This produced the exact same error as above. Could this be a Gideros issue perchance?
I tried it without any prints, just the purchase() call and it behaves the same. Before the crash everything works, including loading the items from iTunes.
It seems the purchase part is stable and works, even if the Gideros app flakes out; the app sometimes crashes before any dialogue is displayed, and then the dialogue displays on top of the home screen as if nothing had happened.
https://deluxepixel.com
What kind of crash was it (BAD_ACCESS ?) and at which CPU address did it occur ?
Reading the backtrace, it crashed in network code while trying to print something to gideros studio from your event callback in lua.
Yes, the error appears to be EXC_BAD_ACCESS. I don't understand the XCode output, but have attached a bunch of screenshots. What I have messed up now @hgy29?!
Two videos showing the crash in action on an iPod Touch:
It seems to me it has to be the plugin. Going back to triple check I've installed it correctly.
Still the same error.
I'm out of ideas. A clean player with a clean project with a clean plugin, using just the example code. Since my code is out of the loop, it has to be something to do with Gideros surely?!
I checked release notes for 2016.06 and it had nothing new regarding print, but had fake threads in it.
Unfortunately if no one has any ideas, next step is finding last Gideros version on which it worked.
Likes: talis, totebo