The crash occurs in the call to MeshPaintVirtualTexture::GetTextureDescriptor where the FTextureResource parameter seems to have had the memory pulled out from under it.
At the same time on the game thread we’re calling UGameUserSettings::ApplyNonResolutionSettings to update the scalability settings to Low. Which eventually calls the FGlobalComponentRecreateRenderStateContext destructor, and then FFastGeoPrimitiveComponent::CreateRenderState. I don’t know if this is related or happenstance.
My initial theory was that the settings changes cause some memory to get reallocated that is currently in use by the render thread. I had hoped that perhaps syncing the render thread might solve the issue using either FlushRenderCommands or a Render Thread Fence, but neither seemed to have changed the result.
On further inspection I think the render thread is actively processing commands from the recreate render state happening on the game thread. But I am not yet sure where to go from there.
It’s seems possible that changing scalability settings to low changes r.VT.MaxAnisotropy from 8 to 4 which may cause the virtual texture used by mesh painting to be recreated and the CachedMeshPaintTextureResource to become stale when the render thread tries to use it next. One clue supporting this would be if you see “Recreating virtual texture pools.” in your logs right before the crash. The fix is likely to be not to cache the raw pointer (CachedMeshPaintTextureResource) but to resolve the MeshPaintTexture on the RenderThread and not use the CachedMeshPaintTextureResource. I’ve created the following issue for tracking which should be visible publicly soon https://issues.unrealengine.com/issue/UE\-410035