Description

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:

  • Just doing a Build all.
  • looking at the level streaming content example, walking back from the streaming level 4, looking at the door
  • turn on/off one reflection sphere
  • Drag & Drop scene reflection capture into world -> crash
  • crash adding sphere ref capture to scene
Steps to Reproduce
  1. Open the attached project
  2. Select SphereReflectionCapture2 in the World Outliner
  3. In the Details panel, press the Update Captures button.

Result: Editor crashes

Callstack
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]

Have Comments or More Details?

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

4
Login to Vote

Fixed
ComponentRendering
Affects Versions4.134.154.16
Target Fix4.15.24.16
Fix Commit3435070
Release Commit3435070
CreatedFeb 20, 2017
ResolvedMay 11, 2017
UpdatedJun 5, 2017