There were quite a lot of D2D updates/fixes merged to the juce8 branch two days ago. Were you using this updated version when you saw this issue? If not, please could you confirm that the issue is still present with the most recent commits?
Just FYI: the crash is much easier to reproduce in Release mode, as the pointers, variables, etc., are all garbage then, and in my case, this leads to a crash pretty often. In debug mode, I have to wait a lot longer to make it crash.
I suspect this is threading related, but I can’t work out exactly what’s going on. Do you get crashes in the CameraDemo example, or only in your own app? If the crashes are only in your own app, then the cause might be something to do with the image processing you’re doing on the main thread.
Please could you check whether the problem persists after applying this patch?
After applying the patch, the crashes are gone. I’ve run the release version for over 80 minutes now, resizing the window, loading different tunes, etc., and not a single crash.