Description

This is a common and longstanding assertion that has occurred since at least the 4.13 release.

User Descriptions

  • I was messing with a sequencer's camera settings (not playing back, but active) and changed some values to be pretty extreme:
    Sensor width = 1000
    sensor height = 1
    and focal length = 850
  • I am trying add a camera orthographic 1080x1920 on blank scenario.
  • Put a number in the Aspect Ratio input field. Please sanitize the input before doing weird things with it... Please....
  • I changed the aspect ratio on the camera

Source Context

 455       template<typename BaseResourceType>
  456       TD3D11Texture2D<BaseResourceType>* FD3D11DynamicRHI::CreateD3D11Texture2D(uint32 SizeX,uint32 SizeY,uint32 SizeZ,bool bTextureArray,bool bCubeTexture,uint8 Format,
  457       	uint32 NumMips,uint32 NumSamples,uint32 Flags, FRHIResourceCreateInfo& CreateInfo)
  458       {
  459       	check(SizeX > 0 && SizeY > 0 && NumMips > 0);
  460       
  461       	if (bCubeTexture)
  462       	{
  463       		check(SizeX <= GetMaxCubeTextureDimension());
  464       		check(SizeX == SizeY);
  465       	}
  466       	else
  467       	{
  468 ***** 		check(SizeX <= GetMax2DTextureDimension());
  469       		check(SizeY <= GetMax2DTextureDimension());
  470       	}
Steps to Reproduce

repro steps currently unknown; but based on user descriptions seems related to Sequencer camera's settings (specifically aspect ratio).

Callstack
Assertion failed: SizeX <= GetMax2DTextureDimension() 
[File:D:\Build\++UE4+Release-4.14+Compile\Sync\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Texture.cpp] [Line: 469]

UE4Editor_D3D11RHI!FD3D11DynamicRHI::CreateD3D11Texture2D<FD3D11BaseTexture2D>() [d3d11texture.cpp:477]
UE4Editor_D3D11RHI!FD3D11DynamicRHI::RHICreateTexture2D() [d3d11texture.cpp:1021]
UE4Editor_RHI!FDynamicRHI::RHICreateTexture2D_RenderThread() [rhicommandlist.cpp:2099]
UE4Editor_RHI!FRHICommandListImmediate::CreateTexture2D() [rhicommandlist.h:2891]
UE4Editor_Engine!RHICreateTexture2D() [rhicommandlist.h:3678]
UE4Editor_Engine!RHICreateTargetableShaderResource2D() [rhiutilities.h:518]
UE4Editor_Engine!FViewport::FHitProxyMap::Init() [unrealclient.cpp:1629]
UE4Editor_Engine!FSceneViewport::InitDynamicRHI() [sceneviewport.cpp:1712]
UE4Editor_RenderCore!FRenderResource::InitResource() [renderresource.cpp:31]
UE4Editor_RenderCore!BeginInitResource() [renderresource.cpp:126]
UE4Editor_Engine!FSceneViewport::UpdateViewportRHI() [sceneviewport.cpp:1432]
UE4Editor_Engine!FSceneViewport::ResizeViewport() [sceneviewport.cpp:1329]
UE4Editor_Engine!FSceneViewport::OnDrawViewport() [sceneviewport.cpp:366]
UE4Editor_Slate!SViewport::OnPaint() [sviewport.cpp:112]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SOverlay::OnPaint() [soverlay.cpp:97]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_Slate!SBox::OnPaint() [sbox.cpp:245]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_Slate!SBorder::OnPaint() [sborder.cpp:85]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SOverlay::OnPaint() [soverlay.cpp:97]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_Slate!SBorder::OnPaint() [sborder.cpp:85]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SPanel::PaintArrangedChildren() [spanel.cpp:31]
UE4Editor_SlateCore!SPanel::OnPaint() [spanel.cpp:12]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SOverlay::OnPaint() [soverlay.cpp:97]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_Slate!SViewport::OnPaint() [sviewport.cpp:126]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_Slate!SCanvas::OnPaint() [scanvas.cpp:116]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SOverlay::OnPaint() [soverlay.cpp:97]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_Slate!SBorder::OnPaint() [sborder.cpp:85]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SOverlay::OnPaint() [soverlay.cpp:97]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SPanel::PaintArrangedChildren() [spanel.cpp:31]
UE4Editor_SlateCore!SPanel::OnPaint() [spanel.cpp:12]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SPanel::PaintArrangedChildren() [spanel.cpp:31]
UE4Editor_Slate!SSplitter::OnPaint() [ssplitter.cpp:167]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SCompoundWidget::OnPaint() [scompoundwidget.cpp:35]
UE4Editor_SlateCore!SWidget::Paint() [swidget.cpp:885]
UE4Editor_SlateCore!SPanel::PaintArrangedChildren() [spanel.cpp:31]
UE4Editor_Slate!SSplitter::OnPaint() [ssplitter.cpp:167]

Have Comments or More Details?

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

4
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.134.144.154.164.174.184.194.224.234.254.25.14.25.3
CreatedAug 22, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue