iOS easy crash with just a few lines

I reported this bug a couple of months ago but haven’t heard anything at all. This bug is a major issue for us, and I’m not sure what to do next.

The bug does not occur in the simulator, only on physical iOS devices.

These few lines of code, where a mask is applied to a display group, will crash the app every time on an iPad, simply when the user taps the white block. On iPhone it takes a while of touching the screen around and on the white block. This is still happening in the latest daily build, 2012.722. It does not happen in the second to last stable build: 591.

[code]local group = display.newGroup()

local block = display.newRect(0,0,200,50)

group:insert(block)

local mask = graphics.newMask(“mask.png”)
group:setMask(mask)

group.x = 160
group.y = 240[/code]

mask.png is a simple mask, a white block 200x80 with a 3 pixel black border.

Any help, or confirmation from someone else that this is a bug, and I’m not doing something stoopid, would be sincerely appreciated. [import]uid: 35618 topic_id: 20142 reply_id: 320142[/import]

Hey there,

Can you please file a bug report using the link in the top right?

Thanks,
Peach :slight_smile: [import]uid: 52491 topic_id: 20142 reply_id: 78749[/import]

Not exactly similar to yours but I’ve had various issues with setMask and simulator/iOS crashes for a while now. I was forced to work around it, and not use them. I already sent a bug report about my issue. Hopefully they will fix this issue soon since its basic functionality.

  1. Masks used like a hit area causes crashes.
  2. Too many masks (16+) will result in very slow FPS.
  3. Masks DO NOT rotate with the group, neither do physics bodies.

http://developer.anscamobile.com/forum/2011/12/14/puzzle-games-showstopper-video [import]uid: 99244 topic_id: 20142 reply_id: 78761[/import]

Hi there Peach,

Thanks for your response.

I have already reported this as a bug quite a few weeks ago now, case #9872 :slight_smile:

Let me know if you’d like me to report it again. [import]uid: 35618 topic_id: 20142 reply_id: 78790[/import]

Jeremy, no need to file again - thanks for the case# - I’ll bring this up in our next meeting.

Peach :slight_smile: [import]uid: 52491 topic_id: 20142 reply_id: 78868[/import]