Description

Selecting negative values for window resolutions leads to a crash.

Steps to Reproduce
  1. Open editor preferences
  2. Navigate to "Play"
  3. Change the "Play in New Window" to a negative value (in example used -1280 x -780)
  4. Hit play in new window

Result: Editor crashes

Expected: Not being able to select negative values for resolution.

Callstack

LoginId:2425c04a4245ea67c3691fbe9144aff0
EpicAccountId:6b50d04f360f4c7587a1171ba17d6a2a

Assertion failed: SizeX <= GetMax2DTextureDimension() [Link Removed] [Line: 476]

UE4Editor_Core!FDebug::AssertFailed() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:414]
UE4Editor_D3D11RHI!FD3D11DynamicRHI::CreateD3D11Texture2D<FD3D11BaseTexture2D>() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\windows\d3d11rhi\private\d3d11texture.cpp:477]
UE4Editor_D3D11RHI!FD3D11DynamicRHI::RHICreateTexture2D() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\windows\d3d11rhi\private\d3d11texture.cpp:1033]
UE4Editor_RHI!FDynamicRHI::RHICreateTexture2D_RenderThread() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\rhi\private\rhicommandlist.cpp:2363]
UE4Editor_RHI!FRHICommandListImmediate::CreateTexture2D() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\rhi\public\rhicommandlist.h:3810]
UE4Editor_Engine!RHICreateTexture2D() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\rhi\public\rhicommandlist.h:4614]
UE4Editor_Engine!RHICreateTargetableShaderResource2D() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\rhi\public\rhiutilities.h:537]
UE4Editor_Engine!FSceneViewport::InitDynamicRHI() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\engine\private\slate\sceneviewport.cpp:1782]
UE4Editor_RenderCore!FRenderResource::InitResource() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\rendercore\private\renderresource.cpp:31]
UE4Editor_RenderCore!BeginInitResource() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\rendercore\private\renderresource.cpp:126]
UE4Editor_Engine!FSceneViewport::UpdateViewportRHI() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\engine\private\slate\sceneviewport.cpp:1437]
UE4Editor_Engine!FSceneViewport::ResizeViewport() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\engine\private\slate\sceneviewport.cpp:1334]
UE4Editor_Engine!FSceneViewport::ResizeFrame() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\engine\private\slate\sceneviewport.cpp:1280]
UE4Editor_UnrealEd!UEditorEngine::CreatePIEGameInstance() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:3237]
UE4Editor_UnrealEd!UEditorEngine::PlayInEditor() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:2409]
UE4Editor_UnrealEd!UEditorEngine::StartQueuedPlayMapRequest() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\unrealed\private\playlevel.cpp:1270]
UE4Editor_UnrealEd!UEditorEngine::Tick() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\unrealed\private\editorengine.cpp:1558]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [d:\build\++ue4+release-4.18+compile\sync\engine\source\editor\unrealed\private\unrealedengine.cpp:396]
UE4Editor!FEngineLoop::Tick() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:3296]
UE4Editor!GuardedMain() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\launch\private\launch.cpp:166]
UE4Editor!GuardedMainWrapper() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
UE4Editor!WinMain() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
kernel32
ntdll

Have Comments or More Details?

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

3
Login to Vote

Fixed
ComponentTools
Affects Versions4.18.34.194.20
Target Fix4.20
Fix Commit3980557
Main Commit4052378
Release Commit4095966
CreatedMar 30, 2018
ResolvedApr 3, 2018
UpdatedFeb 4, 2019
View Jira Issue