Description

Having flipbooks with dynamic materials and then playing/stopping multiple times crashes the editor.

Steps to Reproduce

Download the BP-only repro project.

Quickly alternate between starting PIE and exiting it (press Start PIE and Stop PIE quickly).

The editor should crash after only a few seconds of doing that.

Callstack

Exception thrown at 0x00000174F26913AA in UnrealEditor.exe: 0xC0000005: Access violation reading location 0x0000000000000050.

FSpriteTextureOverrideRenderProxy::GetMaterialNoFallback(ERHIFeatureLevel::Type InFeatureLevel)
[Inline Frame] FMaterialRenderProxy::UpdateDeferredCachedUniformExpressions::__l14::<lambda_1>::operator()(ERHIFeatureLevel::Type)
[Inline Frame] UMaterialInterface::IterateOverActiveFeatureLevels(FMaterialRenderProxy::UpdateDeferredCachedUniformExpressions::__l14::<lambda_1>)
FMaterialRenderProxy::UpdateDeferredCachedUniformExpressions()
FScene::UpdateAllPrimitiveSceneInfos(FRDGBuilder & GraphBuilder, EUpdateAllPrimitiveSceneInfosAsyncOps AsyncOps)
FSceneInterface::UpdateAllPrimitiveSceneInfos(FRHICommandListImmediate & RHICmdList)
[Inline Frame] FScene::Release::__l2::<lambda_3>::operator()(FRHICommandListImmediate &)
TEnqueueUniqueRenderCommandType<`FScene::Release'::`2'::FReleaseCommandName,`FScene::Release'::`2'::<lambda_3>>::DoTask(ENamedThreads::Type CurrentThread, const TRefCountPtr<FGraphEvent> & MyCompletionGraphEvent)
TGraphTask<TEnqueueUniqueRenderCommandType<`FScene::Release'::`2'::FReleaseCommandName,`FScene::Release'::`2'::<lambda_3>>>::ExecuteTask(TArray<FBaseGraphTask *,TSizedDefaultAllocator<32>> & NewTasks, ENamedThreads::Type CurrentThread, bool bDeleteOnCompletion)
[Inline Frame] FBaseGraphTask::Execute(TArray<FBaseGraphTask *,TSizedDefaultAllocator<32>> & CurrentThread, ENamedThreads::Type)
FNamedTaskThread::ProcessTasksNamedThread(int QueueIndex, bool bAllowStall)
FNamedTaskThread::ProcessTasksUntilQuit(int QueueIndex)
RenderingThreadMain(FEvent * TaskGraphBoundSyncEvent)
FRenderingThread::Run()
FRunnableThreadWin::Run()
FRunnableThreadWin::GuardedRun()

Have Comments or More Details?

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

5
Login to Vote

Cannot Reproduce
ComponentUE - Gameplay - Paper2D
Affects Versions5.3
Target Fix5.4
CreatedSep 22, 2023
ResolvedJan 11, 2024
UpdatedMar 30, 2024
View Jira Issue