Error message:
Assertion failed: (Index >= 0) & (Index < ArrayNum) [Link Removed] [Line: 633] Array index out of bounds: -1 from an array of size 11
Source Context:
200 CubemapArray.UpdateMaxCubemaps(InMaxCubemaps, InCubemapSize);
201 return;
202 }
203
204 // Generate a remapping table for the elements
205 TArray<bool> ArrayIndicesRemoved;
206 ArrayIndicesRemoved.Empty(CubemapArray.GetMaxCubemaps());
207 for (int i = 0; i < CubemapArray.GetMaxCubemaps(); i++)
208 {
209 ArrayIndicesRemoved.Add(false);
210 }
211 for (int i = 0; i < CubemapIndicesRemovedSinceLastRealloc.Num(); i++)
212 {
213 uint32 CubemapIndex = CubemapIndicesRemovedSinceLastRealloc[i];
214 ***** ArrayIndicesRemoved[CubemapIndex] = true;
215 }
216 TArray<int32> IndexRemapping;
217 int32 Count = 0;
218 for (int i = 0; i < CubemapArray.GetMaxCubemaps(); i++)
219 {
220 if (ArrayIndicesRemoved[i])
221 {
222 IndexRemapping.Add(-1);
223 }
224 else
225 {
226 IndexRemapping.Add(Count);
227 Count++;
228 }
229 }
Most recent user affected CL: 3299760
Logs:
[Link Removed]
[Link Removed]
[Link Removed]
[Link Removed]
Issue call stack shares some similarities with [Link Removed]
CrashReporter User Descriptions:
Result: Editor crashes
UE4Editor_Renderer!FReflectionEnvironmentSceneData::ResizeCubemapArrayGPU() [reflectionenvironment.cpp:215] UE4Editor_Renderer!TGraphTask<`FScene::AllocateReflectionCaptures'::`34'::EURCMacro_GPUResizeArrayCommand>::ExecuteTask() [taskgraphinterfaces.h:883] UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [taskgraph.cpp:954] UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [taskgraph.cpp:701] UE4Editor_RenderCore!RenderingThreadMain() [renderingthread.cpp:325] UE4Editor_RenderCore!FRenderingThread::Run() [renderingthread.cpp:459] UE4Editor_Core!FRunnableThreadWin::Run() [windowsrunnablethread.cpp:76]
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-42165 in the post.