Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash at ATSUI API: ATSUDirectGetLayoutDataArrayPtrFromTextLayout()



There was not anything in particular that had been changed in this routine or deeper in the ApplyKerning between the builds you noted.  So a few questions:
• Does ATSUDrawText crash when you pass it the same objects and settings?
• What font and text are you using when it crashes?
• Does it crash every time?

If you can file a bug, preferably with your example test that demonstrates the crash, that would be a good start (or just send me the answers to the above questions at least).  I'll investigate it further for you.

Dan Fenwick



On Oct 30, 2007, at 10:25 PM, Shuang Qin wrote:

Hi,
Our carbon application works well at Mac OS X 10.4, 10.5(9A527), but from 10.5(9A559), it will crash on a ATSUI API call: ATSUDirectGetLayoutDataArrayPtrFromTextLayout(), but not all calls for this API will crash. We want to know, what is the difference of ATSUI in these versions? Does it a bug with Mac OS X? Can you give us some suggestions? Thanks in advance!

code segment:

short utf16 = 0;
ItemCount glyphCount;
ATSLayoutRecord *layoutRecords;
ATSUTextLayout textLayout;

ATSUCreateTextLayout(&textLayout);

ATSUSetTextPointerLocation(textLayout, &utf16, kATSUFromTextBeginning, kATSUToTextEnd, 0);

ATSUDirectGetLayoutDataArrayPtrFromTextLayout(textLayout, 0,
kATSUDirectDataLayoutRecordATSLayoutRecordCurrent, (void *)&layoutRecords, &glyphCount);


crash call stack:

Thread 33 Crashed:
0 ...ple.ApplicationServices.ATS 0x90d5fc7a ProcessKerningRun + 786
1 ...ple.ApplicationServices.ATS 0x90d4d75b ApplyKerning + 456
2 ...ple.ApplicationServices.ATS 0x90d4b2b7 _eLLCLayoutText + 345
3 ...ple.ApplicationServices.ATS 0x90d4b147 LLCLayoutText + 83
4 com.apple.QD 0x96bed408 ATSULayoutGlyphs(TATSUGlyphRecordArray*, ATSLineLayoutLineParams*, long, ATSUTab const*, unsigned long, __CFString const*, unsigned short const*, unsigned long, unsigned long) + 196
5 com.apple.QD 0x96bed2f4 TTextLineLayout::LayoutGlyphVector(TATSUGlyphRecordArray*, ATSLineLayoutLineParams*, TLayoutControls*, long, unsigned long) + 172
6 com.apple.QD 0x96bfe3f2 TTextLineLayout::EnsureLayoutIsUpToDate(unsigned long, unsigned char, unsigned long, TATSUGlyphRecordArray**) + 996
7 com.apple.QD 0x96c1b4b8 ATSUDirectGetLayoutDataArrayPtrFromTextLayout + 92



Best Regards
Shuang Qin
Email:email@hidden
Tel:82782244 ext.2462


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Crash at ATSUI API: ATSUDirectGetLayoutDataArrayPtrFromTextLayout() (From: Shuang Qin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.