Show stopping - Spritesheet Masking issue -HTC Sensation - HTC Desire - any other phones affected?

The below code works perfectly in simulator and on the IPhone 4s. The problem appears when this program is deployed to a HTC Desire or HTC Sensation Andriod phone. What happens is that the masking is applied correctly to the lightningGroup but everything else in the display list is rendered black i.e no colour.

Initial feedback from ansca is that this may be a HTC driver issue, has anyone else run into this problem?

Can we expect a fix anytime soon?

If the line lightningGroup:setMask(masks) is removed the issue is fixed.

[code]
local background = display.newImageRect( “assets/levels/Street_01.png” ,760,380)

–local oldStyleSpriteSheetData = require (“sprite_lighting”).getSpriteSheetData()
local lightningoptions =
{
– The params below are optional; used for dynamic resolution support
width = 14,
height = 200,
numFrames = 10,
sheetContentWidth = 140, – width of original 1x size of entire sheet
sheetContentHeight = 200 – height of original 1x size of entire sheet

}
local imageSheet = graphics.newImageSheet( “assets/animation/lightning.png”, lightningoptions )

for i=1, 300 do

local sequenceData = {
name=“firing”,
start=1,
count=10–,
–time=100, – Optional. In ms. If not supplied, then sprite is frame-based.
– loopCount = 0 – Optional. Default is 0 (loop indefinitely)
– loopDirection = “bounce” – Optional. Values include: “forward”,“bounce”
}

local character = display.newSprite( imageSheet, sequenceData )
–character:setReferencePoint(display.BottomCenterReferencePoint);
character:setSequence( “firing”)
character:play()
–character.x = 100
–character.rotation = 40
local masks = graphics.newMask( “assets/animation/lightningMask.png” )
–masks:setReferencePoint(display.BottomCenterReferencePoint);

local lightningGroup = display.newGroup()
lightningGroup.blendMode = “add”
lightningGroup:insert(character)
lightningGroup:setReferencePoint(display.BottomCenterReferencePoint);
lightningGroup.x = 260
lightningGroup.y = math.random() * 200
lightningGroup.rotation = 270
lightningGroup:setMask(masks)
–mask.scaleX

–lightningGroup.maskScaleY = .7
lightningGroup.maskY = 100

end
[/code] [import]uid: 121261 topic_id: 23535 reply_id: 323535[/import]

Hi,

I’m having the same problem on a Sony Ericsson Arc S. Everything is black, except the mask. [import]uid: 79136 topic_id: 23535 reply_id: 94454[/import]

Hey guys, can I get your bug # please?

Thanks,
Peach :slight_smile: [import]uid: 52491 topic_id: 23535 reply_id: 94708[/import]

Hi Peach, the bug # is 12872.

Best,
Steven [import]uid: 121261 topic_id: 23535 reply_id: 94730[/import]

Thank you Steven :slight_smile: [import]uid: 52491 topic_id: 23535 reply_id: 95027[/import]

I’ve just tested my app with build 775 and the problem persists. Some Android devices turn black and only the display object where the mask is applied is shown. [import]uid: 96891 topic_id: 23535 reply_id: 97135[/import]

Hi Pedro,

We are currently working to get this resolved. [import]uid: 52491 topic_id: 23535 reply_id: 97252[/import]

Thanks a lot Peach! [import]uid: 96891 topic_id: 23535 reply_id: 97295[/import]

Hi Guys,

Any update on this issue? [import]uid: 121261 topic_id: 23535 reply_id: 98196[/import]

Not yet, no, keep an eye on daily build notes and @carlosicaza twitter account though - hopefully we’ll have some news very soon. [import]uid: 52491 topic_id: 23535 reply_id: 98214[/import]

Have just spoken with another member of the team, this is considered high priority and we’re hoping we’ll have a fix very soon - in the meantime please consider using build 758 if an option for your particular project.

Thanks,
Peach :slight_smile: [import]uid: 52491 topic_id: 23535 reply_id: 98454[/import]

Thanks Peach [import]uid: 121261 topic_id: 23535 reply_id: 98468[/import]

No fix yet (at least not according to the release notes) - come on guys! This makes recent builds SDK useless for Android Development if you’re using a Scrollview!

Surely this is a critical bug? [import]uid: 95579 topic_id: 23535 reply_id: 99757[/import]

Hey Kevin,

We are working on overhauling how we tackle bugs (and new features) to make things more efficient, hopefully we will see bugs like this getting fixed faster in the future - for now all I can say is it is being worked on.

Hope to have more info very soon, I know it is important to you. [import]uid: 52491 topic_id: 23535 reply_id: 100029[/import]

I’ve been checking the builds daily for a fix to this :s
[import]uid: 121261 topic_id: 23535 reply_id: 100043[/import]

Thanks Peach. [import]uid: 95579 topic_id: 23535 reply_id: 100054[/import]

Any update on this issue guys? is a fix even possibble on andriod? if so when is it likely to be released? [import]uid: 121261 topic_id: 23535 reply_id: 101816[/import]

Hear hear!! This seems to me to be a critical bug as it affects a huge proportion of the Android devices out there and one of the most used widgets. [import]uid: 95579 topic_id: 23535 reply_id: 101823[/import]