Bug: Deadlock in CoreGraphicsMetalLayerRenderer?

When I leave my GUI app running overnight, doing nothing, relatively often the next morning I find “Application Not Responding”, and doing a break in the debugger shows me this exact same trace always.

It appears that I am getting stuck in some sort of loop (I guess you call this a deadlock or race condition)?

The last function in the trace that is accessible is CoreGraphicsMetalLayerRenderer::drawRectangleList

I am assuming this is because I am using JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS=1 ?

Is this potentially a JUCE bug, or could there be something in my code that is causing this? Any suggestions on how to find it?

MacOS, Intel, JUCE 7.0.2
Mojave 10.14.6, Xcode 10.3