I’m getting crashing on device (iOS) only (and only when multi-touch is enabled) on a button group with an image with a mask on it, and only when quitting and returning back to a scene and only when the button is hit and re-hit more than once. A weird bug, but I fixed it when I initialized my button image with imageWithMask.isHitTestMasked = false (without this it will crash at some point)
To re-iterate
Crash
- device only (simulator has no problems)
- multi-touch enabled (when it’s off, no crash)
- story-board gets purged, then re-created (I guess this cause something to destabilize behind the scenes)
- a button group with touch event where one of the children is an image with a mask, but isHitTestMasked is not defined on the image containing the mask
- happens on multiple clicking, usually with nothing else happen between these events(in my case it was clicking the button to pull up game option buttons, then resuming, then hitting the button again (in this time, physics is getting paused)
I spent 2 days figuring out what was going on, and it was such an odd set of things that have to happen before it crashes it was driving me nuts [import]uid: 88628 topic_id: 22215 reply_id: 322215[/import]