I’m having some issues with an assert in the function swapRGBOrder:
jassert (Rectangle (0, 0, juceImage.getWidth(), juceImage.getHeight())
.contains (Rectangle (x, y, w, h)));
This assert fails sometimes when swapRGBOrder is called by JuceNSImage::draw, which in turn is called by NSViewComponentPeer::drawRect.
Basically, it seems that the “clip” RectangleList that is passed to the draw function contains some rectangles that are partially outside of the image itself.