NaN passed to _regionForOpaqueDescendants from inside _drawRect:clip:
NaN passed to _regionForOpaqueDescendants from inside _drawRect:clip:
- Subject: NaN passed to _regionForOpaqueDescendants from inside _drawRect:clip:
- From: "Steve Shepard" <email@hidden>
- Date: Wed, 20 Dec 2006 12:53:19 -0800
I've filed this as radar://4894376 and am hoping someone on the list
recognizes the problem and can recommend a fix/workaround.
When resizing a window that contains an NSSplitView, one of the the
split view's subviews crashes trying to allocate a huge block of
memory. In doing some investigating, I find that
_regionForOpaqueDescendants:forMove: is being called from somewhere in
_drawRect:clip: with NaN in the first argument (an NSRect according to
class dump).
Here is the following backtrace. The methods in my code simply call
super (they are there only to get the arguments to the methods.
#0 0x9010c1e7 in malloc_printf ()
#1 0x900116f3 in large_and_huge_malloc ()
#2 0x90003fc8 in szone_malloc ()
#3 0x90013d26 in szone_realloc ()
#4 0x9002a33d in malloc_zone_realloc ()
#5 0x903d4676 in shape_union_rectangle_list ()
#6 0x903d3f1e in shape_alloc_rectangle_list ()
#7 0x903d3e81 in CGSNewRegionWithRectList ()
#8 0x932fc23b in -[NSView _regionForOpaqueDescendants:forMove:] ()
#9 0xc000e29a in -[STPageView _regionForOpaqueDescendants:forMove:]
(self=0x162e7570, _cmd=0x90a83b38, rect={origin = {x = 0, y = 0}, size
= {width = 649.5, height = 2397.5}}, fp24=0 '\000') at
/Users/steve/src/Storyist/mac/Frameworks/STAppKit/STPageView.m:226
#10 0x932fa92a in -[NSView _drawRect:clip:] ()
#11 0xc000e3d7 in -[STPageView _drawRect:clip:] (self=0x162e7570,
_cmd=0x90a71b8c, fp8={origin = {x = 0, y = 0}, size = {width = 649.5,
height = 2397.5}}, fp24=0 '\000') at
/Users/steve/src/Storyist/mac/Frameworks/STAppKit/STPageView.m:241
#12 0x932fa40b in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#13 0x9330c36f in _recursiveDisplayInRect2 ()
#14 0x9083ab70 in CFArrayApplyFunction ()
#15 0x932fa613 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#16 0x9330c36f in _recursiveDisplayInRect2 ()
#17 0x9083ab70 in CFArrayApplyFunction ()
#18 0x932fa613 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#19 0x9330c36f in _recursiveDisplayInRect2 ()
#20 0x9083ab70 in CFArrayApplyFunction ()
#21 0x932fa613 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#22 0x9330c36f in _recursiveDisplayInRect2 ()
#23 0x9083ab70 in CFArrayApplyFunction ()
#24 0x932fa613 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#25 0x9330c36f in _recursiveDisplayInRect2 ()
#26 0x9083ab70 in CFArrayApplyFunction ()
#27 0x932fa613 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#28 0x9330c36f in _recursiveDisplayInRect2 ()
#29 0x9083ab70 in CFArrayApplyFunction ()
#30 0x932fa613 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#31 0x9330c36f in _recursiveDisplayInRect2 ()
#32 0x9083ab70 in CFArrayApplyFunction ()
#33 0x932fa613 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#34 0x932f9473 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
()
#35 0x932fa041 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
()
#36 0x932fa041 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
()
#37 0x932f8b78 in -[NSThemeFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
()
#38 0x932f8362 in -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
()
#39 0x932f7c8e in -[NSView displayIfNeeded] ()
#40 0x932f2693 in -[NSWindow _setFrameCommon:display:stashSize:] ()
#41 0x932f70ea in -[NSWindow setFrame:display:] ()
#42 0x934308bd in -[NSTitledFrame resizeWithEvent:] ()
#43 0x9342f882 in -[NSTitledFrame mouseDown:] ()
#44 0x9342f707 in -[NSThemeFrame mouseDown:] ()
#45 0x933593af in -[NSWindow sendEvent:] ()
#46 0x9334b350 in -[NSApplication sendEvent:] ()
#47 0x93275dfe in -[NSApplication run] ()
#48 0x93269d2f in NSApplicationMain ()
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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