Interpreting glyph layout exception
Interpreting glyph layout exception
- Subject: Interpreting glyph layout exception
- From: Martin Hewitson <email@hidden>
- Date: Sun, 24 Feb 2013 08:17:48 -0500
Dear list,
I maintain an editor app (for LaTeX) and I have a report from a user of strange behaviour when using a particular font (Brill: http://www.brill.com/author-gateway/brill-fonts).
The error seems to happen when the user is editing text via more than one NSTextView (multiple editor windows looking at the same underlying NSTextStorage). The user made a movie showing the issue, and he's just typing 'normal' text at the time of the problem.
The error log is attached below. I installed these Brill fonts myself but so far I failed to reproduce the error. I'm not too sure how to interpret the error log, so if anyone else can glean some information from it which would help me reproduce/fix the issue, I'd appreciate it.
Best wishes,
Martin
----
23/02/13 5:39:49.387 PM TeXnicle[5487]: An uncaught exception was raised
23/02/13 5:39:49.387 PM TeXnicle[5487]: *** -[NSConcreteTextStorage attributesAtIndex:effectiveRange:]: Range or index out of bounds
23/02/13 5:39:49.394 PM TeXnicle[5487]: (
0 CoreFoundation 0x00007fff972a80a6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff9678e3f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff972a7e7c +[NSException raise:format:] + 204
3 AppKit 0x00007fff8a6d913f -[NSConcreteTextStorage attributesAtIndex:effectiveRange:] + 125
4 AppKit 0x00007fff8a668369 -[NSTextView(NSSharing) setSelectedRanges:affinity:stillSelecting:] + 2473
5 AppKit 0x00007fff8a62faf8 -[NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:] + 406
6 AppKit 0x00007fff8a62f94a -[NSTextStorage _notifyEdited:range:changeInLength:invalidatedRange:] + 154
7 AppKit 0x00007fff8a6d87a5 -[NSTextStorage processEditing] + 202
8 AppKit 0x00007fff8a53a284 -[NSTextStorage endEditing] + 79
9 AppKit 0x00007fff8a480b75 -[NSTextView insertText:replacementRange:] + 2316
10 AppKit 0x00007fff8aade587 -[NSTextView insertText:] + 324
11 TeXnicle 0x0000000100061204 TeXnicle + 397828
12 AppKit 0x00007fff8a536fbf -[NSTextInputContext insertText:replacementRange:] + 337
13 AppKit 0x00007fff8a535200 -[NSTextInputContext handleTSMEvent:] + 2781
14 AppKit 0x00007fff8a5346fa _NSTSMEventHandler + 202
15 HIToolbox 0x00007fff9432cf0a _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1206
16 HIToolbox 0x00007fff9432c3d9 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 410
17 HIToolbox 0x00007fff943421bd SendEventToEventTarget + 40
18 HIToolbox 0x00007fff943226b2 SendTSMEvent + 35
19 HIToolbox 0x00007fff94322230 SendUnicodeTextAEToUnicodeDoc + 477
20 HIToolbox 0x00007fff94321f62 TSMKeyEvent + 610
21 HIToolbox 0x00007fff943721b5 TSMProcessRawKeyEvent + 2568
22 AppKit 0x00007fff8a533347 -[NSTextInputContext handleEvent:] + 823
23 AppKit 0x00007fff8a532f87 -[NSView interpretKeyEvents:] + 183
24 AppKit 0x00007fff8a47ff67 -[NSTextView keyDown:] + 723
25 TeXnicle 0x000000010005fba1 TeXnicle + 392097
26 AppKit 0x00007fff8a69b120 -[NSWindow sendEvent:] + 9687
27 AppKit 0x00007fff8a696744 -[NSApplication sendEvent:] + 5761
28 AppKit 0x00007fff8a5ac2fa -[NSApplication run] + 636
29 AppKit 0x00007fff8a550cb6 NSApplicationMain + 869
30 TeXnicle 0x0000000100001cb2 TeXnicle + 7346
31 TeXnicle 0x0000000100001c84 TeXnicle + 7300
)
23/02/13 5:39:49.396 PM TeXnicle[5487]: !!! _NSLayoutTreeLineFragmentRectForGlyphAtIndex invalid glyph index 1
23/02/13 5:39:49.396 PM TeXnicle[5487]: !!! _NSLayoutTreeLineFragmentRectForGlyphAtIndex invalid glyph index 1
23/02/13 5:39:49.396 PM TeXnicle[5487]: !!! _NSLayoutTreeLineFragmentRectForGlyphAtIndex invalid glyph index 1
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden