• 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
Crash in NSControl's sizeToFit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash in NSControl's sizeToFit


  • Subject: Crash in NSControl's sizeToFit
  • From: "email@hidden" <email@hidden>
  • Date: Sun, 31 Jan 2010 16:39:31 +0100

This looks like a bug in AppKit but I'm not sure. Any ideas? (I cannot
reproduce the problem.)
Thanks.

2010-01-23 17:34:40 +0000: *** Terminating app due to uncaught
exception 'NSGenericException', reason: '*** Collection  was mutated
while being enumerated.{type = mutable dict, count = 4,
entries =>
	1 : {contents = "NSFont"} = "LucidaGrande 12.00 pt. P [] (0xa36c80)
fobj=0xd13210, spc=3.80"
	2 : {contents = "NSColor"} = NSNamedColorSpace System controlTextColor
	5 : {contents = "NSOriginalFont"} = "LucidaGrande 12.00 pt. P []
(0xa36c80) fobj=0xd13210, spc=3.80"
	6 : {contents = "NSParagraphStyle"} = Alignment 0, LineSpacing 0,
ParagraphSpacing 0, ParagraphSpacingBefore 0, HeadIndent 0, TailIndent
0, FirstLineHeadIndent 0, LineHeight 0/0, LineHeightMultiple 0,
LineBreakMode 0, Tabs (
    28L,
    56L,
    84L,
    112L,
    140L,
    168L,
    196L,
    224L,
    252L,
    280L,
    308L,
    336L
), DefaultTabInterval 0, Blocks (null), Lists (null),
BaseWritingDirection -1, HyphenationFactor 0, TighteningFactor 0.05,
HeaderLevel 0
}
'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x9476a40a __raiseError + 410
	1   libobjc.A.dylib                     0x97713509 objc_exception_throw + 56
	2   CoreFoundation                      0x947b4579
__NSFastEnumerationMutationHandler + 377
	3   CoreFoundation                      0x94704b05
-[NSMutableDictionary addEntriesFromDictionary:] + 165
	4   Foundation                          0x906d6ee8
-[NSMutableAttributedString addAttributes:range:] + 318
	5   AppKit                              0x9567cd31 -[NSTokenFieldCell
_attributedStringForRepresentedObjects:] + 1539
	6   AppKit                              0x9567ade3 -[NSTokenFieldCell
_unformattedAttributedStringValue:] + 111
	7   AppKit                              0x951235ff -[NSCell
attributedStringValue] + 180
	8   AppKit                              0x950d8643
__NSGetStringAndAttributesFromTextCell + 83
	9   AppKit                              0x950d7ec1
_NSGetTextCellBoundingRect + 157
	10  AppKit                              0x950d7dcb -[NSCell
cellSizeForBounds:] + 337
	11  AppKit                              0x95120836 -[NSTextFieldCell
cellSizeForBounds:] + 504
	12  AppKit                              0x9507b1b8 -[NSCell cellSize] + 71
	13  AppKit                              0x9507b052 -[NSControl sizeToFit] + 46
	14  myProject                            0x000540c4 0x0 + 344260
	15  myProject                            0x00042a96 0x0 + 273046
	16  Foundation                          0x906838d8 -[NSThread main] + 45
	17  Foundation                          0x90683888 __NSThread__main__ + 1499
	18  libSystem.B.dylib                   0x93494fbd _pthread_start + 345
	19  libSystem.B.dylib                   0x93494e42 thread_start + 34
)
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Crash in NSControl's sizeToFit
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Node hierarchy with subclasses
  • Next by Date: Re: NSTextView Drag and Drop
  • Previous by thread: Re: NSTextView Drag and Drop
  • Next by thread: Re: Crash in NSControl's sizeToFit
  • Index(es):
    • Date
    • Thread