[Resolved] newRetinaText sometimes displaying a block of color instead of text

Hi everyone,

I use newRetinaText throughout my project and it used to work just fine. Since a few days I notice that sometimes instead of text I see a big block of color displayed - basically the entire rectangular area where the text is supposed to be is filled with color. It only happens on the Android device and not in Simulator or iPhone.

Has anybody seen this? I’m trying to determine if there was a code change I made that caused this; so far I couldn’t see anything that would be related.

Any ideas? Anyone had this before and has a hint for debugging?

–wunderwuzzi [import]uid: 118947 topic_id: 22999 reply_id: 322999[/import]

I’m seeing strangeness with the new build and Android as well. Are you using any Masks if so removed them and see if it goes away. [import]uid: 7177 topic_id: 22999 reply_id: 91924[/import]

Hi Darkmod and thanks for your reply,

I’m using build 731 and my previous version of the game, still builds and runs with out this problem. So it looks like some code changes introduced this, although I have no idea what and the newRetinaText display item that has this is random. I’m not using any masks that I’m aware of. I did change some re-ordering of display groups, and use z-layering - not sure if that could cause something like that…

This will be a big pain to debug… :frowning:

–wunderwuzzi [import]uid: 118947 topic_id: 22999 reply_id: 91980[/import]

Raise it as a bug ? :slight_smile: [import]uid: 10389 topic_id: 22999 reply_id: 92082[/import]

wunderwuzzi,

I ran into something similar last week, and with an older build. In my case I was trying to display an XML file directly to the screen with out parsing it. Does the block display consistently when trying to display the same text? If so, you could change the text and see if you get the same results, or share a portion of the offending text here for the rest of us to test. -Shane [import]uid: 64596 topic_id: 22999 reply_id: 92088[/import]

Hey there and thanks for the reply!

I debugged this today for a good hour and was able to determine the issue and work around it. The problem seems to occur if I pass an empty string “” to newRetinaText.

Afterwards some other newRetinaText display object is going to be screwed up down the road, as said not deterministically. I haven’t yet tried to come up with a simple repro, but when I pass in just a space in my game, like " " as initialization value for the text then things are good and I don’t get the odd color block behavior.

–wunderwuzzi [import]uid: 118947 topic_id: 22999 reply_id: 92109[/import]