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()



Thanks for the info.  Filed bug 5579678.  I'll check it out today and get back to you with an update.

Dan

On Nov 2, 2007, at 1:10 AM, Shuang Qin wrote:

some additional information:

It is unrelated with the string and font, I test different args, the crash are the same.
As for "crash every time", not all invokes for our function (see code segment in first mail, call entry for this API) will crash. but in a certain call, it crash all times. This certain call is second time this function is invoked, use the same arguments with first call which won't crash, so strange.

Thanks!



----- Forwarded by Shuang Qin/China/IBM on 2007-11-02 15:16 -----

Hi, Daniel, thanks for your quick response,

For your questions:
• Does ATSUDrawText crash when you pass it the same objects and settings?
Yes
• What font and text are you using when it crashes?
Tahoma,the string is "aemnnxEM"
• Does it crash every time?
Yes, it always crashed in one certain call.

Sorry, I think we can hardly provide the sample test code at that time.

Thanks for your help again!




<graycol.gif>Daniel Fenwick <email@hidden>

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


      _______________________________________________
      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: 
 >Re: 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.