Reputation: 407
Just moved into the open iOS 9 Beta (version 3) and my app is now crashing on this line:
[self removeAllActions]; // where "self" is an SKNode
Edit: After digging a little further I found the problem occurs when removeAllActions is inside a completion handler:
[self runAction: someSKAction completion:^{
[self removeAllActions]; // this will cause the crash
}];
The error in the console states:
libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: vector
Is anyone else having this sort of problem?
Edit: I was not having this problem with any versions of iOS7 or iOS8. I submitted a bug report to Apple, report #21788047
Upvotes: 2
Views: 176
Reputation: 7582
I'm having this issue and it happens because there is concurrent access to the actions
array of a SKNode
.
I got rid of it by using a semaphore
. It's not the ideal solution but at least it stops crashing.
Upvotes: 2
Reputation: 407
This issue was resolved with iOS 9 Beta 4. After updating, I ran a few tests and everything seems to be working smoothly.
Upvotes: 0