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

NIAttributeLabel exception #521

Closed
arnoldxt opened this issue Mar 9, 2014 · 2 comments
Closed

NIAttributeLabel exception #521

arnoldxt opened this issue Mar 9, 2014 · 2 comments

Comments

@arnoldxt
Copy link

arnoldxt commented Mar 9, 2014

After updated to latest NimbusKit, NIAttruibuteLabel will cause exception sometimes.
Below is the exception trace:

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000000000defe
Triggered by Thread: 0

Thread 0 Crashed:
0 CoreFoundation 0x2d4ee404 CFRelease + 1136
1 AppName 0x000be596 -NIAttributedLabel textFrame
2 AppName 0x000c1e2c -NIAttributedLabel linkAtPoint:
3 AppName 0x000c335a -NIAttributedLabel touchesBegan:withEvent:
4 UIKit 0x2ffa8ac8 -[UIWindow _sendTouchesForEvent:] + 316
5 UIKit 0x2ffa3af2 -[UIWindow sendEvent:] + 754
6 UIKit 0x2ff78ce8 -[UIApplication sendEvent:] + 192
7 UIKit 0x2ff773bc _UIApplicationHandleEventQueue + 7116
8 CoreFoundation 0x2d588fe4 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 12
9 CoreFoundation 0x2d5884aa __CFRunLoopDoSources0 + 202
10 CoreFoundation 0x2d586c9a __CFRunLoopRun + 626
11 CoreFoundation 0x2d4f17a4 CFRunLoopRunSpecific + 520
12 CoreFoundation 0x2d4f1586 CFRunLoopRunInMode + 102
13 GraphicsServices 0x3262c6ce GSEventRunModal + 134
14 UIKit 0x2ffd76d4 UIApplicationMain + 1132

@arnoldxt
Copy link
Author

arnoldxt commented Mar 9, 2014

the bug seems to be fixed by checking if framesetter is nil before execute CFRelease

if (framesetter) {
  CFRelease(framesetter);
}

@jverkoey
Copy link
Owner

jverkoey commented Mar 9, 2014

Fixed, thanks for the report! This'll go in to the 1.2.2 release.

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

No branches or pull requests

2 participants