Image Mask hard crash on movement - case #11679.

Having a graphics.newMask on my images that are being moved by physics causes a hard crash.

removing the mask from my image removes the crash bug

the images are 512x512 to comply with the multiple of 4 requirement.

Original code pulls remote images, this repro example has been hard coded to use rects.

Long and short of the code is load a mask onto a rect, make it a physics object, make 20 of them and have other phyics objects push them around. BOOM crash 9 out of 10 times on xcode sim and corona simulator. Build 726

Zip’ed test code sent to Ansca.
Bug’s kind of a show stopper for me :frowning:

[import]uid: 110373 topic_id: 20740 reply_id: 320740[/import]

Did you ever get this resolved?
I’m having mask related crashing too. Hoping there is a fix in newer builds but I’m still not a subscriber. [import]uid: 119678 topic_id: 20740 reply_id: 97715[/import]

Yes, they found the issue, it was part me and part them.
Masks must be a power of 2 size and 24bit png.
They did find some issues in the mask code and fixed it around the 730s or 740s. [import]uid: 110373 topic_id: 20740 reply_id: 97716[/import]

Awesome, thanks for the reply!
I wasn’t sure if I wanted to subscribe because of a couple major bugs that are pressent in the free version but sounds like they are mostly taken care of in the newer builds. [import]uid: 119678 topic_id: 20740 reply_id: 97770[/import]

If masks need to be ^2 sized, the documentation should be updated to reflect that. Of course with 512x512 masks you were covering all the bases (multiple-of-4 and power-of-2), so what, were you using non 24-bit pngs?

I have intermittent nondeterministic crashes in my app that may or may not be related to masks. They’re all multiple-of-4 but not power-of-2. I’ll size 'em up and see what happens. [import]uid: 44647 topic_id: 20740 reply_id: 97772[/import]

I was using 8bit indexed png’s and the system does not like that. In addition they found some issues if you rapidly changed masks on objects and move them with physics, which I was doing.
I think it’s all fixed now.

They have fixed a TON of stuff since those public builds.

Frankly I have made back the cost of corona many times over this month on sales.

My new app Learn My Name made it back in the first week on sale in 4 app stores. Corona is worth it
to me.

http://developer.anscamobile.com/forum/2012/03/09/learn-my-name-teaching-game-kids-itunes-amazon-nook-google-play [import]uid: 110373 topic_id: 20740 reply_id: 97784[/import]