The embedded rendering path in PaintCollector renders every visible window - even if that window has no scene associated with it. This causes intermittent failures in WindowSceneInitDisposeTest.
I don't think there is a threading problem here. It looks to me like we just need a null check on the ViewScene before we do anything with it.
I don't think there is a threading problem here. It looks to me like we just need a null check on the ViewScene before we do anything with it.