Hi there.

I get an assertion failure while programmatically resizing a window:

    Assertion failed: (r->shape != NULL), function assert_check_region, file 
Regions/CGRegion.c, line 28.

Anyone has any idea what might be wrong and what I can do about it?


I'll explain in more detail what I am doing here.

I have a somewhat intricate window and layer layout and I'm programmatically 
resizing the window according to user input. In effect I'm rotating the 
contents of the (borderless) window while resizing the window to fit the 
contents.

This actually works fine *most* of the time. I.e. I'm usually able to rotate 
the contents by 360 degrees several times before I hit the assertion above.


The last thing I'm calling is

   [self.window setFrame:newWindowFrame display:YES];

The newWindowFrame looks perfectly normal.

As for the stack trace, the last entry in the side bar is

  -[NSWindow _setFrameCommon:display:stackSize:]

There's more in the popup in the debugger toolbar; does anyone know how to copy 
that? Anyway, I made a screenshot.

Here are *some* of the more interesting entries:

  -[NSWindow _setFrameCommon:display:stackSize:]
   ...
  -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
  -[NSView _drawRect:clip:]
  CAViewDraw
  view_draw(_CAView*, double, CVTimeStamp const*, bool)
   ...
   some CA::OGL:: calls
   ...
  -[CIContext measureRequirementsOf:query::results:]
   ...
   some FETreeContext and FETreeNode calls
   ...
  FEAffineTreeNode::refactorTransforms_2(FETreeContext*, unsigned int, signed 
char&)
  FEMultiSourceTreeNode::copyCustomDataFrom(FETreeContext*, 
FEMultiSourceTreeNode const*, unsigned int, CGAffineTransform const&]
  FEAffineTreeNode::updateDOD(FETreeContext*)
  CGSGetRegionBounds
  CGRegionGetBoundingBox
  assert_check_region

So ... something to do with some affine transform? Yes, I'm using affine 
transforms to rotate the window contents, which is located in a CALayer.


I really hope someone has an idea what could be going wrong here because I'm 
kind of stumped right now.


Andreas
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to