Sent from my iPhone

On Apr 7, 2009, at 9:01 PM, Christopher Wright <[email protected]> wrote:

I've found that certain character sequences explode the Image With String patch and cause QC to crash -- the backtrace is rather interesting:

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000010
Crashed Thread:  0

Thread 0 Crashed:
0 com.apple.CoreText 0x955686fe TLine::GetMappedCharsInRange(CFRange, TStackBuffer<long, 30ul>&) const + 170 1 com.apple.CoreText 0x9555857a TCombiningEngine::ResolveCombiningMarks() + 354 2 com.apple.CoreText 0x9554249c TTypesetter::FinishEncoding(TLine&, unsigned char) const + 258 3 com.apple.CoreText 0x95566b3b TTypesetter::RelayoutRun(CTRun const*) const + 473 4 com.apple.CoreText 0x9555b602 TTypesetter::MakeLineConsistent(TLine&) const + 60 5 com.apple.CoreText 0x955498b9 TTypesetter::FinishLineFill(TLine&, double) const + 43 6 com.apple.CoreText 0x9556c6e2 TFramesetter::FrameInRect(TFrame&, CFRange) const + 862 7 com.apple.CoreText 0x9556cc1f TFramesetter::CreateFrame(CFRange, CGPath const*, __CFDictionary const*) const + 93 8 com.apple.QuartzComposer 0x947264ca -[QCTextRenderer _updateCache] + 282 9 com.apple.QuartzComposer 0x947261c8 -[QCTextRenderer typographicBounds] + 76 10 com.apple.QuartzComposer 0x94725984 -[QCTextImage execute:time:arguments:] + 2317 11 com.apple.QuartzComposer 0x946fafa0 -[QCPatch(Private) _execute:arguments:] + 1231 12 com.apple.QuartzComposer 0x946fb362 -[QCPort _execute:arguments:] + 83

looks like it might be CoreText related, which may mean that this could be found elsewhere in OS X (? pure speculation ?)

Anyway, here's the composition -- this _will_ crash QC, so make sure you don't have any unsaved work, and make sure your preferences are set such that it opens the editor only, not the viewer, if you want to actually see the composition.

Essentially, a string with a sufficient number of newlines which then have "bad" characters appended (the fn+delete key, in this case) will eventually cause the above crash.

The string in question is initialized with a bunch of newlines -- fewer may still work, but I'm not sure how low one can go. Then, each frame it appends a garbage character, and feeds it to Image With String.

<Untitled-crashsave.2009-04-07-23-16.pid-18402.qtz-crashsave. 2009-04-07-23-41.pid-18567.qtz>



does this crash for anyone else? Troy/Alessandro/Kevin, shall I file a bug with QC, or is this a CoreText/other-department problem? If it's the latter, can you point me in the right direction?

--
[ christopher wright ]
[email protected]
http://kineme.net/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/tkoelling%40apple.com

This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to