Question
Intermittant dialog draw proc CRASH
Hi,
I am developing Illustrator CS2 plugin for Mac using Xcode 1.5/OS 10.3.9. I have intermittant problem with display of certain dialog. I have overridden dialog's draw procedure with my own, which calls default draw and then adds some additional text and icon.
Usually it dislays fine.
Sometimes however, it starts to draw my text and then I get bad crash out of Illustrator. Some of crash log is below. Perhaps it is recursivly calling my display proc?
Tried debugging. I put breakpoint in my draw proc. First time it is hit, nothing shows up in Illustrator. After continue, dialog pops up and breakpoint is hit again (why?). Continue again, and back in Illustrator we can hit OK to dismiss dialog. Now breakpoint is hit a third time, after continue all is normal.
HELP please!
Chunky
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0xbf7ffaf0
Thread 0:
0 com.apple.CoreGraphics 0x936ade74 aa_moveto + 0xc
1 com.apple.CoreGraphics 0x936928f8 CGPathApply + 0x224
2 libRIP.A.dylib 0x9073bac8 ripr_Path + 0x538
3 libRIP.A.dylib 0x907352dc ripc_GetClippingState + 0x5b8
4 libRIP.A.dylib 0x907377a8 ripc_GetRenderingState + 0x2c
5 libRIP.A.dylib 0x9073632c ripc_DrawGlyphs + 0x98
6 com.apple.CoreGraphics 0x936aa270 drawGlyphs + 0x94
7 com.apple.CoreGraphics 0x936ab4e0 CGContextShowGlyphsWithAdvances + 0xd0
8 com.apple.QD 0x951d6ccc RenderGlyphRecordArrayWithCG + 0x650
9 com.apple.QD 0x951d3500 ATSUDrawGlyphs(ATSGlyphVector*, unsigned long, unsigned long, FixedPoint*, CGContext*) + 0x58
10 com.apple.QD 0x951d347c TTextLineLayout::DrawText(unsigned long, unsigned long, long, long) + 0x298
11 com.apple.QD 0x951d31b8 ATSUDrawText + 0x98
12 com.apple.HIToolbox 0x9288fbac TATSUTextLayout::DrawBox(_HIThemeTextInfo*, CGRect const&, CGContext*) + 0x278
13 com.apple.HIToolbox 0x9288fce0 DataEngine::DrawThemeTextBox(__CFString const*, CGRect const*, _HIThemeTextInfo*, CGContext*) + 0xa4
14 com.apple.HIToolbox 0x92895278 HIThemeDrawTextBox + 0x100
15 com.apple.HIToolbox 0x928a91c0 _DrawThemeTextBox + 0x22c
16 com.adobe.coretech.adm 0x0ee2d160 dyld_stub_binding_helper + 0x77e30
17 com.adobe.coretech.adm 0x0edde400 dyld_stub_binding_helper + 0x290d0
18 com.mycompany.myplugin 0x12516b10 MyDlgDrawProc(_Opaque_ADMDialog*, _Opaque_ADMDrawer*) + 0xd0
19 com.adobe.coretech.adm 0x0edc915c dyld_stub_binding_helper + 0x13e2c
20 com.adobe.coretech.adm 0x0ee27ed8 dyld_stub_binding_helper + 0x72ba8
21 com.adobe.coretech.adm 0x0ee2a454 dyld_stub_binding_helper + 0x75124
22 com.adobe.coretech.adm 0x0ee2ae4c dyld_stub_binding_helper + 0x75b1c
23 com.adobe.coretech.adm 0x0ee2af7c dyld_stub_binding_helper + 0x75c4c
24 com.adobe.coretech.adm 0x0ee2fc08 dyld_stub_binding_helper + 0x7a8d8
25 com.adobe.coretech.adm 0x0edb9248 dyld_stub_binding_helper + 0x3f18
26 com.adobe.coretech.adm 0x0ee003c8 dyld_stub_binding_helper + 0x4b098
27 com.mycompany.myplugin 0x12516c50 MyDlgDrawProc(_Opaque_ADMDialog*, _Opaque_ADMDrawer*) + 0x210
28 com.adobe.coretech.adm 0x0edc915c dyld_stub_binding_helper + 0x13e2c
29 com.adobe.coretech.adm 0x0ee27ed8 dyld_stub_binding_helper + 0x72ba8
30 com.adobe.coretech.adm 0x0ee2a454 dyld_stub_binding_helper + 0x75124
31 com.adobe.coretech.adm 0x0ee2ae4c dyld_stub_binding_helper + 0x75b1c
32 com.adobe.coretech.adm 0x0ee2af7c dyld_stub_binding_helper + 0x75c4c
33 com.adobe.coretech.adm 0x0ee2fc08 dyld_stub_binding_helper + 0x7a8d8
34 com.adobe.coretech.adm 0x0edb9248 dyld_stub_binding_helper + 0x3f18
35 com.adobe.coretech.adm
I am developing Illustrator CS2 plugin for Mac using Xcode 1.5/OS 10.3.9. I have intermittant problem with display of certain dialog. I have overridden dialog's draw procedure with my own, which calls default draw and then adds some additional text and icon.
Usually it dislays fine.
Sometimes however, it starts to draw my text and then I get bad crash out of Illustrator. Some of crash log is below. Perhaps it is recursivly calling my display proc?
Tried debugging. I put breakpoint in my draw proc. First time it is hit, nothing shows up in Illustrator. After continue, dialog pops up and breakpoint is hit again (why?). Continue again, and back in Illustrator we can hit OK to dismiss dialog. Now breakpoint is hit a third time, after continue all is normal.
HELP please!
Chunky
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0xbf7ffaf0
Thread 0:
0 com.apple.CoreGraphics 0x936ade74 aa_moveto + 0xc
1 com.apple.CoreGraphics 0x936928f8 CGPathApply + 0x224
2 libRIP.A.dylib 0x9073bac8 ripr_Path + 0x538
3 libRIP.A.dylib 0x907352dc ripc_GetClippingState + 0x5b8
4 libRIP.A.dylib 0x907377a8 ripc_GetRenderingState + 0x2c
5 libRIP.A.dylib 0x9073632c ripc_DrawGlyphs + 0x98
6 com.apple.CoreGraphics 0x936aa270 drawGlyphs + 0x94
7 com.apple.CoreGraphics 0x936ab4e0 CGContextShowGlyphsWithAdvances + 0xd0
8 com.apple.QD 0x951d6ccc RenderGlyphRecordArrayWithCG + 0x650
9 com.apple.QD 0x951d3500 ATSUDrawGlyphs(ATSGlyphVector*, unsigned long, unsigned long, FixedPoint*, CGContext*) + 0x58
10 com.apple.QD 0x951d347c TTextLineLayout::DrawText(unsigned long, unsigned long, long, long) + 0x298
11 com.apple.QD 0x951d31b8 ATSUDrawText + 0x98
12 com.apple.HIToolbox 0x9288fbac TATSUTextLayout::DrawBox(_HIThemeTextInfo*, CGRect const&, CGContext*) + 0x278
13 com.apple.HIToolbox 0x9288fce0 DataEngine::DrawThemeTextBox(__CFString const*, CGRect const*, _HIThemeTextInfo*, CGContext*) + 0xa4
14 com.apple.HIToolbox 0x92895278 HIThemeDrawTextBox + 0x100
15 com.apple.HIToolbox 0x928a91c0 _DrawThemeTextBox + 0x22c
16 com.adobe.coretech.adm 0x0ee2d160 dyld_stub_binding_helper + 0x77e30
17 com.adobe.coretech.adm 0x0edde400 dyld_stub_binding_helper + 0x290d0
18 com.mycompany.myplugin 0x12516b10 MyDlgDrawProc(_Opaque_ADMDialog*, _Opaque_ADMDrawer*) + 0xd0
19 com.adobe.coretech.adm 0x0edc915c dyld_stub_binding_helper + 0x13e2c
20 com.adobe.coretech.adm 0x0ee27ed8 dyld_stub_binding_helper + 0x72ba8
21 com.adobe.coretech.adm 0x0ee2a454 dyld_stub_binding_helper + 0x75124
22 com.adobe.coretech.adm 0x0ee2ae4c dyld_stub_binding_helper + 0x75b1c
23 com.adobe.coretech.adm 0x0ee2af7c dyld_stub_binding_helper + 0x75c4c
24 com.adobe.coretech.adm 0x0ee2fc08 dyld_stub_binding_helper + 0x7a8d8
25 com.adobe.coretech.adm 0x0edb9248 dyld_stub_binding_helper + 0x3f18
26 com.adobe.coretech.adm 0x0ee003c8 dyld_stub_binding_helper + 0x4b098
27 com.mycompany.myplugin 0x12516c50 MyDlgDrawProc(_Opaque_ADMDialog*, _Opaque_ADMDrawer*) + 0x210
28 com.adobe.coretech.adm 0x0edc915c dyld_stub_binding_helper + 0x13e2c
29 com.adobe.coretech.adm 0x0ee27ed8 dyld_stub_binding_helper + 0x72ba8
30 com.adobe.coretech.adm 0x0ee2a454 dyld_stub_binding_helper + 0x75124
31 com.adobe.coretech.adm 0x0ee2ae4c dyld_stub_binding_helper + 0x75b1c
32 com.adobe.coretech.adm 0x0ee2af7c dyld_stub_binding_helper + 0x75c4c
33 com.adobe.coretech.adm 0x0ee2fc08 dyld_stub_binding_helper + 0x7a8d8
34 com.adobe.coretech.adm 0x0edb9248 dyld_stub_binding_helper + 0x3f18
35 com.adobe.coretech.adm