Skip to main content
Participating Frequently
November 15, 2016
Answered

Game crashes on iOS when using Korean characters

  • November 15, 2016
  • 1 reply
  • 614 views

Hi,

My game is localized to English, Korean, Chinese (traditional and simplified). When I switch to Korean in the iOS version of the game from English it will hardcrash/close the app. It works fine on Android, web and desktop versions of the game.

What is really strange is that if I change from English to Chinese, then go from Chinese to Korean (via the language select screen I have in-game), it will work fine. It will however crash the game when it next loads the app (as it saves the Korean preference).

I'm embedding the fonts in their own swf's and packaging them locally with the following code:

  public class ChineseFontEmbed extends Sprite

  {

  [Embed(source='../../../../../../Fonts/msyhbd.ttc', fontName='ChineseDefault', fontWeight="bold", mimeType='application/x-font', embedAsCFF='false', unicodeRange='U+000a-U+007e, U+00A2-U+00A5, <lots of other characters specifically used by the game>, U+ff1f')]

  public var ChineseDefault:Class;

  }

public class KoreanFontEmbed extends Sprite

  {

  [Embed(source='../../../../../../Fonts/NanumGothic-Bold.ttf', fontName='KoreanDefault', fontWeight="bold", mimeType='application/x-font', embedAsCFF='false', unicodeRange='U+000a-U+007e, U+00A2-U+00A5, <lots of other characters specifically used by the game>, U+d79b')]

  public var KoreanDefault:Class;

  }

I'm using AIR22, I've been unable to test on AIR23/24 due other issues with those versions of the sdk.

I'm not using TTF textfields.

I'm using Flash CC to generate the swf's and building the IPA via the console on Windows.

This is the game on iOS (with Korean toggled off due to the crash)

https://itunes.apple.com/nz/app/terrapets/id507039696?mt=8

This is the same version built for Android and working with Korean on Android

Terrapets - Android Apps on Google Play

Any insights would be most welcome.

Cheers,
Steven.

This topic has been closed for replies.
Correct answer deesharm

Hi Steven,

I am able to reproduce the bug using AIRSDK 22 and your sample application on iPhone 6 plus (iOS 9.3)

But when I package the same application using AIR 23 or AIR 24 latest release, Issue doesn't seem to occur anymore.

Could you please try the same at your end and confirm if the problem is fixed with our latest AIRSDK?

Thanks,

Adobe AIR Team

1 reply

deesharm
Adobe Employee
Adobe Employee
November 16, 2016

Hi Steven,

Could you please share a small sample application with us where we can reproduce the problem and investigate it further.

Thanks,

Adobe AIR Team

Participating Frequently
November 20, 2016

Thanks for that. Sorry for the delay, had releases

I've put together a sample app that replicates the issue.

Bug#4197955 - Korean text crashes on iOS when using dynamically loaded fonts

Cheers,

Steven.

deesharm
Adobe Employee
deesharmCorrect answer
Adobe Employee
November 21, 2016

Hi Steven,

I am able to reproduce the bug using AIRSDK 22 and your sample application on iPhone 6 plus (iOS 9.3)

But when I package the same application using AIR 23 or AIR 24 latest release, Issue doesn't seem to occur anymore.

Could you please try the same at your end and confirm if the problem is fixed with our latest AIRSDK?

Thanks,

Adobe AIR Team