Description

Ensure condition failed: Lhs.CurrentNum == Lhs.InitialNum [Link Removed] [Line: 197] Array has changed during ranged-for iteration!

Ensure occurs after dragging in multiple cameras into the world in VR mode.

Previously dragging in cameras caused a crash (UE-45574) in 4.16 and 4.16.1.

Steps to Reproduce

Setup:
Have access to QAGame
Have access to a VR headset and controllers

Repro:

  1. Open QAGame
  2. Enable VR Mode
  3. Navigate to the Modes Panel and click on the Cinematic tab
  4. Drag two Cine Camera Actors into the world (if this doesn't cause the ensure then drag in another)
Callstack
UE4Editor_HeadMountedDisplay!IHeadMountedDisplay::ApplyLateUpdate() headmounteddisplaymodule.cpp:88 
UE4Editor_OculusRift!OculusRift::FViewExtension::PreRenderViewFamily_RenderThread() oculusriftrender.cpp:113 
UE4Editor_Renderer!ViewExtensionPreRender_RenderThread() scenerendering.cpp:1782 
UE4Editor_Renderer!TGraphTask<`FRendererModule::BeginRenderingViewFamily'::`26'::EURCMacro_FViewExtensionPreDrawCommand>::ExecuteTask() taskgraphinterfaces.h:883 
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() taskgraph.cpp:954 
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() taskgraph.cpp:701 
UE4Editor_RenderCore!RenderingThreadMain() renderingthread.cpp:327 
UE4Editor_RenderCore!FRenderingThread::Run() renderingthread.cpp:461 
UE4Editor_Core!FRunnableThreadWin::Run() windowsrunnablethread.cpp:76

Have Comments or More Details?

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

1
Login to Vote

Cannot Reproduce
ComponentUE - Editor - Workflow Systems
Affects Versions4.16.2
Target Fix4.19
CreatedJun 13, 2017
ResolvedOct 25, 2017
UpdatedJan 19, 2024