• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSLayoutManager Background Layout Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLayoutManager Background Layout Crash


  • Subject: NSLayoutManager Background Layout Crash
  • From: Philip Dow <email@hidden>
  • Date: Fri, 29 Jul 2005 16:56:05 +0200

Hiya, I'm having a problem with the layout manager crashing as it attempts to do background layout.

I'm using a custom text view that I make direct changes to every once in a while, by way of the text storage. I add images, links, and plain text in attributed string format. I'm calling the begin editing and end editing methods, as I'm told to.

Every now and then, more or less randomly, sometimes after I've completely replaced the text, sometimes when the user is simply typing, sometimes when the app is idle, I get a crash (report follows). I'm not running any threads that access the textview or its textstorage. It does not happen on every machine. I experience the crash once every two weeks or so, others don't experience at all, others have the crash happen almost daily. Any advice would be appreciated.

Please note that the exact nature of the crash differs, ie the lines 0 - 6 or so, however it always occurs during the _NSPostBackgroundLayout method.

Thread 0 Crashed:
0 libobjc.A.dylib 0x909b5cc0 _objc_trap + 0
1 libobjc.A.dylib 0x909b5c34 _objc_error + 76
2 libobjc.A.dylib 0x909b5bc4 __objc_error + 64
3 com.apple.AppKit 0x93875d28 -[NSLayoutManager (NSPrivate) _doLayoutWithFullContainerStartingAtGlyphIndex:nextGlyphIndex:] + 168
4 com.apple.AppKit 0x9369d984 -[NSLayoutManager (NSPrivate) _fillLayoutHoleAtIndex:desiredNumberOfLines:] + 2668
5 com.apple.AppKit 0x936ef868 +[NSLayoutManager (NSPrivate) _doSomeBackgroundLayout] + 556
6 com.apple.AppKit 0x936ef4b8 _NSPostBackgroundLayout + 364
7 com.apple.CoreFoundation 0x9074a09c __CFRunLoopDoObservers + 352
8 com.apple.CoreFoundation 0x9074a384 __CFRunLoopRun + 492
9 com.apple.CoreFoundation 0x90749ddc CFRunLoopRunSpecific + 268
10 com.apple.HIToolbox 0x93122ca0 RunCurrentEventLoopInMode + 264
11 com.apple.HIToolbox 0x93122334 ReceiveNextEventCommon + 380
12 com.apple.HIToolbox 0x931221a0 BlockUntilNextEventMatchingListInMode + 96
13 com.apple.AppKit 0x9361d1a4 _DPSNextEvent + 384
14 com.apple.AppKit 0x9361ce68 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
15 com.apple.AppKit 0x936193cc -[NSApplication run] + 472
16 com.apple.AppKit 0x93709c1c NSApplicationMain + 452
17 com.phildow.journler 0x00002e6c 0x1000 + 7788
18 com.phildow.journler 0x00002d0c 0x1000 + 7436


-Phil
http://phildow.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSLayoutManager Background Layout Crash
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Capturing mousedown in WebFrameView
  • Next by Date: Re: New looks replacing Metal?
  • Previous by thread: Re: Wrapping Command Line Tools
  • Next by thread: Re: NSLayoutManager Background Layout Crash
  • Index(es):
    • Date
    • Thread