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

Seeing intermittent crash when calling attributesForAttributedStringRepresentation on DHTMLElement #739

Closed
echoz opened this issue Mar 13, 2014 · 2 comments

Comments

@echoz
Copy link
Contributor

echoz commented Mar 13, 2014

Using DTCoreText 1.6.10.
iOS Version: 6.1.5 (iPod Touch 4th gen) and 7.1 (iPhone 5s)

Crash case 1:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM fontAttributes]: unrecognized selector sent to instance 0x23a29c00'

Stack Trace (Thread 15):

Last Exception Backtrace:
0   CoreFoundation                       0x328232a3 __exceptionPreprocess + 163
1   libobjc.A.dylib                      0x3a4a397f objc_exception_throw + 28
2   CoreFoundation                       0x32826e07 -[NSObject(NSObject) doesNotRecognizeSelector:] + 168
3   CoreFoundation                       0x32825531 ___forwarding___ + 390
4   CoreFoundation                       0x3277cf68 _CF_forwarding_prep_0 + 22
5   Meow                                 0x003f5c6b -[DTCoreTextFontDescriptor _findOrMakeMatchingFont] (DTCoreTextFontDescriptor.m:582)
6   Meow                                 0x00405c59 -[DTHTMLElement attributesForAttributedStringRepresentation] (DTHTMLElement.m:125)
7   Meow                                 0x00117967 +[NSString(MinusRichTextParser) attributedStyleForParagraphWithFont:fontColor:lineHeight:] (NSString+MinusRichTextParser.m:207)
8   Meow                                 0x0011610b -[NSString(MinusRichTextParser) attributedStringWithParseTypes:options:] (NSString+MinusRichTextParser.m:45)
9   Meow                                 0x00182a65 +[MMessageTextCell attributedStringForCodedString:withLinks:font:color:linkFont:linkColor:lineHeight:] (MMessageTextCell.m:222)
10  Meow                                 0x000f024f __83-[MMessageThreadViewController reloadTableViewAndScrollToBottomOptions:completion:]_block_invoke_2 (MMessageThreadViewController.m:1477)
11  Meow                                 0x0010dcb3 __43-[MinusStore performOnQueue:coreDataBlock:]_block_invoke (MinusStore.m:326)
12  Meow                                 0x0010dd51 +[MinusStore performOnQueue:block:] (MinusStore.m:337)
13  Meow                                 0x0010dbc1 -[MinusStore performOnQueue:coreDataBlock:] (MinusStore.m:319)
14  Meow                                 0x000efab5 __83-[MMessageThreadViewController reloadTableViewAndScrollToBottomOptions:completion:]_block_invoke (MMessageThreadViewController.m:1449)
15  libdispatch.dylib                    0x3a8bb11f _dispatch_call_block_and_release + 8
16  libdispatch.dylib                    0x3a8ba99b _dispatch_queue_drain$VARIANT$up + 144
17  libdispatch.dylib                    0x3a8ba895 _dispatch_queue_invoke$VARIANT$up + 34
18  libdispatch.dylib                    0x3a8c9215 _dispatch_root_queue_drain + 190
19  libdispatch.dylib                    0x3a8c93b9 _dispatch_worker_thread2 + 82
20  libsystem_c.dylib                    0x3a8efa11 _pthread_wqthread + 358
21  libsystem_c.dylib                    0x3a8ef8a4 start_wqthread + 6

Crash Case 2:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_UIFontCacheKey italicTrait]: unrecognized selector sent to instance 0x1aee7090'

StackTrace (Thread 10):

Last Exception Backtrace:
0   CoreFoundation                       0x30a4bf03 __exceptionPreprocess + 131
1   libobjc.A.dylib                      0x3b1dcce7 objc_exception_throw + 36
2   CoreFoundation                       0x30a4f837 -[NSObject(NSObject) doesNotRecognizeSelector:] + 200
3   CoreFoundation                       0x30a4e12f ___forwarding___ + 704
4   CoreFoundation                       0x3099d0d8 __forwarding_prep_0___ + 22
5   Meow                                 0x003e91d1 -[DTCoreTextFontDescriptor _findOrMakeMatchingFont] (DTCoreTextFontDescriptor.m:645)
6   Meow                                 0x003f8ff9 -[DTHTMLElement attributesForAttributedStringRepresentation] (DTHTMLElement.m:125)
7   Meow                                 0x0010abef +[NSString(MinusRichTextParser) attributedStyleForParagraphWithFont:fontColor:lineHeight:] (NSString+MinusRichTextParser.m:207)
8   Meow                                 0x001093a3 -[NSString(MinusRichTextParser) attributedStringWithParseTypes:options:] (NSString+MinusRichTextParser.m:45)
9   Meow                                 0x00175c87 +[MMessageTextCell attributedStringForCodedString:withLinks:font:color:linkFont:linkColor:lineHeight:] (MMessageTextCell.m:222)
10  Meow                                 0x0009b6e5 __61-[MMessageInboxViewController reloadTableViewWithCompletion:]_block_invoke_2 (MMessageInboxViewController.m:279)
11  Meow                                 0x00100f63 __43-[MinusStore performOnQueue:coreDataBlock:]_block_invoke (MinusStore.m:326)
12  Meow                                 0x00101001 +[MinusStore performOnQueue:block:] (MinusStore.m:337)
13  Meow                                 0x00100e71 -[MinusStore performOnQueue:coreDataBlock:] (MinusStore.m:319)
14  Meow                                 0x0009b431 __61-[MMessageInboxViewController reloadTableViewWithCompletion:]_block_invoke (MMessageInboxViewController.m:275)
15  libdispatch.dylib                    0x3b6c5d53 _dispatch_call_block_and_release + 8
16  libdispatch.dylib                    0x3b6cacbd _dispatch_queue_drain + 486
17  libdispatch.dylib                    0x3b6c7c6f _dispatch_queue_invoke + 40
18  libdispatch.dylib                    0x3b6cb5f1 _dispatch_root_queue_drain + 74
19  libdispatch.dylib                    0x3b6cb8dd _dispatch_worker_thread2 + 54
20  libsystem_pthread.dylib              0x3b7f6c17 _pthread_wqthread + 296
21  libsystem_pthread.dylib              0x3b7f6adc start_wqthread + 6

Be happy to provide any other details

@odrobnik
Copy link
Collaborator

Need reliable steps to reproduce to do anything about this. Seems like a new iOS 7.1 bug. To get that fixed or find a workaround we need to determine the actual cause.

@odrobnik
Copy link
Collaborator

odrobnik commented Jun 4, 2014

Nothing received back from reporter. Closing issue for that reason.

@odrobnik odrobnik closed this as completed Jun 4, 2014
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