What causes NSGenericException: The window has been marked as needing another Display Window pass, but it has already had more Display Window passes than there are views in the window

In my app I'm seeing a lot of hangs coming through our telemetry with the log message

NSGenericException: The window has been marked as needing another Display Window pass, but it has already had more Display Window passes than there are views in the window

or

NSGenericException: The window has been marked as needing another Layout Window pass, but it has already had more Layout Window passes than there are views in the window.

but I can't reproduce it and don't know what situations could cause it to happen. The app has a very complex, dynamic UI with a lot of NSSplitviews inside other NSSplitViews, so could that be a cause? Is there a way to track down what it could be coming from?

What causes NSGenericException: The window has been marked as needing another Display Window pass, but it has already had more Display Window passes than there are views in the window
 
 
Q