Description

void USceneCaptureComponent2D::CaptureSceneDeferred()
{
UWorld* World = GetWorld();
if (World && World->Scene && IsVisible())

{ // Defer until after updates finish // Needs some CS because of parallel updates. static FCriticalSection CriticalSection; FScopeLock ScopeLock(&CriticalSection); SceneCapturesToUpdateMap.AddUnique(World, this); }

}

The only thing that protects against is multiple calls to that function. I can do any number of bad things to SceneCapturesToUpdateMap in another thread causing crashes.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-35986 in the post.

2
Login to Vote

Won't Fix
ComponentUE - Virtual Production
Affects Versions4.18
CreatedSep 14, 2016
ResolvedApr 19, 2024
UpdatedMay 7, 2024
View Jira Issue