Masked image touch event crashing device only and multi-touch only when isHitTestMasked is not defined

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]

Hi Ernest,

Can you please file a bug report for this please? [import]uid: 52491 topic_id: 22215 reply_id: 88595[/import]

Will do, it’s just that posting bugs here will help other people who are experiencing similar problems who search for the same symptoms [import]uid: 88628 topic_id: 22215 reply_id: 88673[/import]

Yes, definitely - I think it’s important to post about it too but sometimes people post rather than filing a bug, so I always like to make sure :slight_smile: [import]uid: 52491 topic_id: 22215 reply_id: 88792[/import]

@ Ernest

I want to give you a HUGE THANK YOU for making this post. This issue has been kicking my butt for well over a day, and if not for this post, I am not sure I would have figured it out at all…

@peach

Is the bugs DB searchable? Is it the same as http://developer.anscamobile.com/forums/show-must-go? Just curious, because it would definitely be greatly beneficial if the bugs report is as searchable as this forum post is… And if it’s a different place I need to search, let me know that as well. Right now, I only see the link to report a bug. And these types are bugs are real killers.

My app got rejected by Apple because of it, and it was super hard to duplicate and chase down. Our experience is that this issue seems more prominent on iOS5.1, especially iPad3 for some reason.
[import]uid: 41124 topic_id: 22215 reply_id: 99879[/import]

It seems at present the bug base is not searchable, I believed it was at one point however I may be mistaken. (My involvement in that area is limited but no, it’s not like the link you posted, it’s fogbugz.)

That said we’re in the process of changing things up (see Tuesday’s blog post) and hopefully making it MUCH easier for everyone to get info on this kind of thing.

Sorry to hear about your issue but happy that it was resolved :slight_smile: [import]uid: 52491 topic_id: 22215 reply_id: 100524[/import]