Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registerIconFontWithURL without SIM card inserted will hang app #25

Open
yangyi opened this issue Jul 22, 2014 · 3 comments
Open

registerIconFontWithURL without SIM card inserted will hang app #25

yangyi opened this issue Jul 22, 2014 · 3 comments

Comments

@yangyi
Copy link

yangyi commented Jul 22, 2014

It seems an bug from iOS, the app hangs when call CGFontCreateWithDataProvider

The issue reproduced on iOS 7.1.2(iPhone 4S), and the bug reported here https://alpha.app.net/jaredsinclair/post/18555292

There is a workaround, call [UIFont familyNames] before call CGFontCreateWithDataProvider

But the issue does not happened on every app, another app (also developed by me) using FontAwesomeKit is working fine (using the same code for init font, [FAKFontAwesome spoonIconWithSize:28] will cause the problem).

Is there any debug log is helpful for your guys?

@PrideChung
Copy link
Owner

Can't reproduce on my iPhone5 iOS 7.1.2, maybe it's hardware related? I will test it on more devices.

@matthewkrueger
Copy link

I can reproduce this issue simply by enabling airplane mode on my iPhone 5, iOS 7.1. The app will hang every time on

CGFontRef newFont = CGFontCreateWithDataProvider(fontDataProvider);

in registerIconForUrl.

@matthewkrueger
Copy link

Calling [UIFont familyNames] before the offending line resolves it for me! The link in the original post describes the issue and work around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants