Editor Crash - Assertion failed: UnderlyingResource->GetRefCount() == 1

Thanks for the extra info. Unfortunately this resource isn’t named, so it’s still difficult to say what’s causing the crash. Can you try replacing that debug code with this updated version?

uint32 RefCount = UnderlyingResource->GetRefCount();
if (RefCount != 1)
{
	FString UnderlyingResName = UnderlyingResource->GetName().ToString();
	FString OwnerName = TEXT("UNKNOWN");
	if (Owner && Owner->GetResource())
	{
		OwnerName = Owner->GetResource()->GetName().ToString();
	}

	const D3D12_RESOURCE_DESC& Desc = UnderlyingResource->GetDesc();
	UE_LOG(LogD3D12RHI, Fatal, TEXT("Underlying resource has unexpected ref count %u, name: %s, owner name: %s, Heap Type: %u, Dimension: %u, Width: %llu, Height: %u, Flags: %u"),
		RefCount, *UnderlyingResName, *OwnerName, UnderlyingResource->GetHeapType(), Desc.Dimension, Desc.Width, Desc.Height, Desc.Format, Desc.Flags
	);
}

This prints more information about the resource, maybe we can figure out what it is from the dimensions, type and flags.