Custom NSTypesetter problems
Custom NSTypesetter problems
- Subject: Custom NSTypesetter problems
- From: Gian Luca Cannata <email@hidden>
- Date: Thu, 22 Jul 2004 16:18:52 +0200
Hi, all
I'm using a subclass of NSTypesetter for a fast text layout but in some
circumstances the application crash in characterIndexForGlyphAtIndex.
This method is called in my typesetter first time to retrieve the
corresponding caracter to startGlyphIndex.
In order to prevent the crash which control I would have to make? And
because the app crash with EXC_BAD_ACCESS?
Thanks
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004
Thread 0 Crashed:
0 com.apple.CoreFoundation 0x901cdfdc __CFStorageFindByte + 0x20
1 com.apple.CoreFoundation 0x901ce070 __CFStorageFindByte + 0xb4
2 com.apple.CoreFoundation 0x9019dbec CFStorageGetValueAtIndex +
0x68
3 com.apple.AppKit 0x92e04f44 -[NSLayoutManager
characterIndexForGlyphAtIndex:] + 0x11c
4 XIChannelViewTypesetter.ob 0x0562d4f8 -[XIChannelViewTypesetter
layoutGlyphsInLayoutManager:startingAtGlyphIndex:
maxNumberOfLineFragments:nextGlyphIndex:] + 0x96c
(XIChannelViewTypesetter.m:397)
5 com.apple.AppKit 0x92dd8d30
-[NSLayoutManager(NSPrivate)
_fillLayoutHoleAtIndex:desiredNumberOfLines:] + 0x43c
6 com.apple.AppKit 0x92e61a30
+[NSLayoutManager(NSPrivate) _doSomeBackgroundLayout] + 0x224
7 com.apple.AppKit 0x92e2d91c _NSPostBackgroundLayout +
0xa0
8 com.apple.CoreFoundation 0x90191d30 __CFRunLoopDoObservers +
0x194
9 com.apple.CoreFoundation 0x90191618 __CFRunLoopRun + 0x1d8
10 com.apple.CoreFoundation 0x90195f1c CFRunLoopRunSpecific + 0x148
11 com.apple.HIToolbox 0x927d62d8 RunCurrentEventLoopInMode +
0xac
12 com.apple.HIToolbox 0x927dca40 ReceiveNextEventCommon +
0x17c
13 com.apple.HIToolbox 0x927feb18
BlockUntilNextEventMatchingListInMode + 0x60
14 com.apple.AppKit 0x92dd2a34 _DPSNextEvent + 0x180
15 com.apple.AppKit 0x92de93b0 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 0x74
16 com.apple.AppKit 0x92dfd718 -[NSApplication run] + 0x21c
17 com.apple.AppKit 0x92eb9b80 NSApplicationMain + 0x1d0
18 main.ob 0x0170cf74 main + 0x38 (main.m:16)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.