Description

This is a trending crash coming out of the 4.18 release, and may be a regression. Users have not provided any descriptions of their actions when the crash occurred.

Jiras for similar callstacks in the past have mostly been for end users on our games, such as [Link Removed].

Source Context

 516       FSlateShaderResourceProxy* FSlateRHIResourceManager::GetShaderResource( const FSlateBrush& InBrush )
  517       {
  518       	SCOPE_CYCLE_COUNTER( STAT_SlateGetResourceTime );
  519       
  520       	checkSlow( IsThreadSafeForSlateRendering() );
  521       
  522       	UObject* ResourceObject = InBrush.GetResourceObject();
  523       	FSlateShaderResourceProxy* Resource = nullptr;
  524 ***** 	if(ResourceObject != nullptr && (ResourceObject->IsPendingKill() || ResourceObject->IsUnreachable() || ResourceObject->HasAnyFlags(RF_BeginDestroyed)))
  525       	{
  526       		UE_LOG(LogSlate, Warning, TEXT("Attempted to access resource for %s which is pending kill, unreachable or pending destroy"), *ResourceObject->GetName());
  527       	}
  528       	else
  529       	{
  530       		if(!InBrush.IsDynamicallyLoaded() && !InBrush.HasUObject())
  531       		{
  532       			Resource = ResourceMap.FindRef(InBrush.GetResourceName());
  533       		}
  534       		else if(ResourceObject && ResourceObject->IsA<UMaterialInterface>())
  535       		{
  536       			FSlateMaterialResource* MaterialResource = GetMaterialResource(ResourceObject, InBrush.ImageSize, nullptr, 0);
  537       			Resource = MaterialResource->SlateProxy;
  538       		}
  539       		else if(InBrush.IsDynamicallyLoaded() || (InBrush.HasUObject()))
Steps to Reproduce

repro steps currently unknown

Callstack
Assertion failed: Index >= 0 [File:D:\Build\++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectArray.h] [Line: 445]

UE4Editor_SlateRHIRenderer!FSlateRHIResourceManager::GetShaderResource() [slaterhiresourcemanager.cpp:525]
UE4Editor_SlateCore!FSlateDrawElement::MakeBox() [drawelements.cpp:157]
UE4Editor_Slate!SImage::OnPaint() [simage.cpp:24]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:899]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_Slate!SScaleBox::OnPaint() [sscalebox.cpp:213]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:899]
UE4Editor_SlateCore!SOverlay::OnPaint() [soverlay.cpp:97]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:899]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_Slate!SScaleBox::OnPaint() [sscalebox.cpp:213]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:899]
UE4Editor_SlateCore!SPanel::PaintArrangedChildren() [spanel.cpp:31]
UE4Editor_SlateCore!SPanel::OnPaint() [spanel.cpp:12]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:899]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:899]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_Slate!SBorder::OnPaint() [sborder.cpp:85]
UE4Editor_SubstanceSource!<Unknown>
UE4Editor_SlateCore!FPaintArgs::RecordHittestGeometry() [paintargs.cpp:82]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:961]

Have Comments or More Details?

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

2
Login to Vote

Fixed
ComponentUE - Editor - UI Systems - Slate
Affects Versions4.184.19
Target Fix4.20
CreatedNov 2, 2017
ResolvedApr 3, 2018
UpdatedAug 21, 2018
View Jira Issue