Hi folks,
I'm trying to use Amazon's noSQL datastore service DynamoDB in order to store user scores (I'm currently on Cocos2D 1.0.1), but it crashes on the device.
The issue (I guess) is Amazon's API uses an NSTimer in order to poll requests for completion ( https://forums.aws.amazon.com/thread.jspa?threadID=72885 ).
This web service call works just fine in the simulator, but it crashes with EXC_BAD_ACCESS on the device. The reason behind the crash is: for some reason Amazon's code keeps calling itself recursively when running from the device (precisely in the code line where it uses the NSTimer). At a given point the stack overflows and an EXC_BAD_ACCESS is raised.
Now the interesting part :-). If invoked from onEnter, init it works fine even on the device :). It only crashes from onEnterTransitionFinished onwards.
Any clues/patches/whatever?
Thanks a lot!
- Anderson