Page 1 of 1

Intermittent crash on set textFont

Posted: Mon Sep 21, 2015 4:26 pm
by francis6425
Hi,

I need to set the textFont to a custom font for a number fields according to the user's choice.
There is no problem when running in windows, but when I test it out in android, it crash intermittently.

After numerous days of trying, I still can't figure out where is the problem.
Sometimes after setting the default textSize to certain value, it becomes stable, but when I try the same thing in another stack it still crash.
I also tried to set the textFont and textSize (one after another) and it crash faster.

So I believe its a bug. Please verify.
I have also attached some test code.

Regards,
Francis

Re: Intermittent crash on set textFont

Posted: Thu Sep 24, 2015 5:28 am
by francis6425
I've added a newer sample to show that it will crash in android after changing the textFont and the textSize.
I've also set the text field fixed line height to false to make it slightly more stable but will still crash intermittently.

Anyone tried this, please advise if you encounter it crashing or not.

Re: Intermittent crash on set textFont

Posted: Thu Sep 24, 2015 6:08 am
by SparkOut
I had an issue recently with "frequent crashes (90% of the time) but not reliably reproducible" on Android when using FontAwesome glyph fonts and setting textSize. Mostly it would crash when the first card opened and the textFont and textSize was being set. Very occasionally it would work and then crash when the orientation changed and the card layout script was resetting the text. I will revisit the issue when I can, but for now I have worked around it by using images instead of glyph fonts.
When I can I will test your stack, but I think we have seen the same bug.