• 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
strange crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange crash


  • Subject: strange crash
  • From: email@hidden
  • Date: Thu, 23 May 2002 08:29:09 -0700

my app has started crashing in a very strange place.

i have a custom cell in an outline view... it draws text and with an icon. In very rare cases, e.g. after running for hours...

I get a segfault (EXC_BAD_ACCESS) with the follow stack trace...

#0 0x706bab64 in objc_msgSend ()
#1 0x70c02778 in -[NSLayoutManager(NSTextViewSupport) layoutManagerOwnsFirstResponderInWindow:] ()
#2 0x70e4466c in -[NSLayoutManager(NSPrivate) _drawGlyphsForGlyphRange:atPoint:parameters:] ()
#3 0x70bbcea8 in -[NSLayoutManager(NSTextViewSupport) drawGlyphsForGlyphRange:atPoint:] ()
#4 0x70e5437c in -[NSStringDrawingTextStorage drawTextContainer:inRect:onView:pinToTop:] ()
#5 0x70e392e0 in -[NSAttributedString(NSStringDrawing) drawInRect:] ()
#6 0x70be5244 in -[NSString(NSStringDrawing) drawInRect:withAttributes:] ()
#7 0x0001ab88 in -[ImageCell drawInteriorWithFrame:inView:] (self=0x2095050, _cmd=0x706e9520, cellFrame={origin = {x = 17, y = 39}, size = {width = 115, height = 17}}, controlView=0x45a8d0) at ImageCell.m:274
#8 0x0001a3c8 in -[ImageCell drawWithFrame:inView:] (self=0x2095050, _cmd=0x706e9224, cellFrame={origin = {x = 17, y = 39}, size = {width = 115, height = 17}}, controlView=0x45a8d0) at ImageCell.m:220
#9 0x70ba3444 in -[NSTableView drawRow:clipRect:] ()
#10 0x70bdc34c in -[NSOutlineView drawRow:clipRect:] ()
#11 0x70bba4cc in -[NSTableView drawRect:] ()
#12 0x70c39cf8 in -[NSView _drawRect:clip:] ()

I'm just calling [text drawInRect:rect withAttributes:dict];
and all of text, rect and dict look good in the debugger...

Anyone have a clue what this might be?

thanks!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: NSOutlineView reloadData speed tips needed
  • Next by Date: Re: TIFFs and Resolution
  • Previous by thread: NSOutlineView reloadData speed tips needed
  • Next by thread: Re: TIFFs and Resolution
  • Index(es):
    • Date
    • Thread