Author Topic: Dynamic Font 2.6.1e: serious problem (attached demo)  (Read 7359 times)

anhpham

  • Guest
Dynamic Font 2.6.1e: serious problem (attached demo)
« on: May 27, 2013, 08:29:21 AM »
Hi.

We have the serious problem with Dynamic Font 2.6.1e, sometime text is showed strangely, sometime the text lost some random chars. These bugs only appeared on mobile (iOS and Android), no problem in PC

We tried to make a demo which has high probability bug appears.
Download Link: (unity package + apk) (work with NGUI 2.6.1.e but we do not attach NGUI in this package)
http://www.mediafire.com/?x8pfrdxcfri6ugg

About this demo:
1. Play _Base scene as start scene, it contain a AppController which control the demo.
2. When you play _Base scene, first it load ProcessorPanel scene.
3. Tap "Next Scene" button, it deactive ProcessorPanel then load ExchangePanel scene.

Problem:
1. If you tap "Next Scene" button without tapping any other button before, the ExchangePanel will be loaded and all UILabel on it are correct.
2. If you tap all buttons many times before tap "Next Scene", the ExchangePanel will be loaded and some UILabel lost  characters (the probability of this bug appear ~50% in this demo)

Notes
1. Maximum attached file is 1mb, so we have to upload files to mediafire.
2. Important: if you tap buttons as the orders in this pictures, the bug probability is very high
http://gyazo.com/e446f66375cdd3151da10265894e1445
(Tapping button make the UILabel change its text.) Please try at least 10 times until the bug appear.
3. We tried to cut many parts of projects for making this simple demo (Because I can't make bugs appear with a new project). The main sources for this demo in 3 files: AppController (in _Base scene), ExchangeSSController (in ExchangePanel scene), and ProcessorWindowController (in ProcessorPanel scene)
4. Path to _Base scene: Assets/_PROJECT/Scenes/Release/_Base
5. All unity teams in my company are stuck because of this bug. So please fix it asap. We thanks so much! You can email to anh-pham@kayac.com for more information. Thank you.
« Last Edit: May 27, 2013, 08:53:20 AM by anhpham »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

anhpham

  • Guest
Re: Dynamic Font 2.6.1e: serious problem (attached demo)
« Reply #2 on: May 27, 2013, 08:25:10 PM »
About this solution:
"The function that gets called when the font changes is UIFont.OnFontChanged -- line 1057 of UIFont.cs. You can try adding a NGUITools.Broadcast("Refresh"); right after MarkAsChanged() there to see if that helps."

1. Have no MarkAsChanged() , I just found MarkAsDirty() in that Line
2. I tried to add NGUITools.Broadcast("Refresh"); right after MarkAsDirty() but the bug isn't fixed. You can try it on my demo which is attached.

p/s: I tested this demo on Samsung Galaxy S2 & iPhone 5, both appear this bug. But I think many other devices same problem. If you have other idea for fixing, please tell us asap, we are ready to support. Thank you.

jarjin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Dynamic Font 2.6.1e: serious problem (attached demo)
« Reply #3 on: May 28, 2013, 06:03:34 PM »
Me too~

anhpham

  • Guest
Re: Dynamic Font 2.6.1e: serious problem (attached demo)
« Reply #4 on: May 28, 2013, 08:14:27 PM »
I realized that if my scene is very heavy, the bug appear with higher probability.
Maybe has problem with the memory? The Japanese font contains thousands of Kanji (Chinese characters).

We really need your answer soon and if we can't use NGUI Dynamic font for Japanese/Chinese, we will change whole project back to System Font again. But if you can bring to us a solution for this problem, it's the best and we thank you so much!

Wait for your answer. Thank you.

haoxiucai001

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Dynamic Font 2.6.1e: serious problem (attached demo)
« Reply #5 on: May 28, 2013, 08:16:49 PM »
 :(,Me too.

Our project using NGUI, dynamic font, font messed up our game, won't appear this kind of request on the computer, also won't appear this kind of situation on ios, only on android machines will appear garbled, waiting for the official address
The device does not support Chinese characters android

anhpham

  • Guest
Re: Dynamic Font 2.6.1e: serious problem (attached demo)
« Reply #6 on: May 28, 2013, 08:25:44 PM »
In my case, iphone has problem too, even iphone5. The bug is easy to be appeared when the scene is very heavy.

Otherwise, the System Font library for Unity3d always be worked correctly although the draw call number is high. It use one material for one label. I think ok if NGUI creates more materials when the dynamic font material over 2k x 2k. If it's impossible, one material for one label still ok too. Because UI Label can use external font and support effect, we really want to use it.

Wait for your answer. Thank you
« Last Edit: May 28, 2013, 08:35:02 PM by anhpham »

gdeglin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 18
    • View Profile
Re: Dynamic Font 2.6.1e: serious problem (attached demo)
« Reply #7 on: May 29, 2013, 12:20:59 AM »
Haven't experienced this problem myself, but I'm worried I might once I localize my game to Chinese & Japanese.

Has anyone experiencing this problem tried reducing the font size they're using and seeing if that solves the issue?

eddieB

  • Guest
Re: Dynamic Font 2.6.1e: serious problem (attached demo)
« Reply #8 on: May 29, 2013, 12:41:43 AM »
Haven't experienced this problem myself, but I'm worried I might once I localize my game to Chinese & Japanese.

Has anyone experiencing this problem tried reducing the font size they're using and seeing if that solves the issue?

I test it and changing the font size to a smaller one don't solves the problem.

anhpham

  • Guest
Re: Dynamic Font 2.6.1e: serious problem (attached demo)
« Reply #9 on: May 30, 2013, 12:12:19 AM »
The problem is still not be resolved! Please help!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic Font 2.6.1e: serious problem (attached demo)
« Reply #10 on: May 30, 2013, 12:16:32 AM »
I am not able to reproduce this on my android devices. Is it only affecting specific models? Any additional debugging you guys may provide would be helpful here. NGUI has open code for a reason.