Editor Crashes Opening Blueprints when screen resolution is 4k

Hi

This started as an intermittent issue yesterday with a few of my blueprints, but now seems to assert every time I try to open a blueprint in my project. This originally happened in 4.18.3, but still happens after upgrading to 4.19.0.

Here’s the assert:

Assertion failed: Width <= MAX_VIEWPORT_SIZE && Height <= MAX_VIEWPORT_SIZE [File:D:\Build\++UE4+Release-4.19+Compile\Sync\Engine\Source\Runtime\SlateRHIRenderer\Private\SlateRHIRenderer.cpp] [Line: 285] Invalid window with Width=17180 and Height=9402

UE4Editor_Core!FDebug::AssertFailed() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:419]
UE4Editor_SlateRHIRenderer!FSlateRHIRenderer::CreateViewport() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slaterhirenderer\private\slaterhirenderer.cpp:287]
UE4Editor_SlateCore!SWindow::ShowWindow() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slatecore\private\widgets\swindow.cpp:1278]
UE4Editor_Slate!FSlateApplication::AddWindowAsNativeChild() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:2241]
UE4Editor_Slate!FTabManager::RestoreArea_Helper() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\docking\tabmanager.cpp:1328]
UE4Editor_Slate!FTabManager::RestoreArea() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\docking\tabmanager.cpp:1249]
UE4Editor_Slate!FTabManager::FindPotentiallyClosedTab() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\docking\tabmanager.cpp:1175]
UE4Editor_Slate!FTabManager::OpenUnmanagedTab() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\docking\tabmanager.cpp:1222]
UE4Editor_Slate!FGlobalTabmanager::OpenUnmanagedTab() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\docking\tabmanager.cpp:2153]
UE4Editor_Slate!FTabManager::InsertDocumentTab() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\docking\tabmanager.cpp:1205]
UE4Editor_Slate!FTabManager::InsertNewDocumentTab() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\docking\tabmanager.cpp:1038]
UE4Editor_UnrealEd!FAssetEditorToolkit::InitAssetEditor() [d:\build\++ue4+release-4.19+compile\sync\engine\source\editor\unrealed\private\toolkits\asseteditortoolkit.cpp:165]
UE4Editor_Kismet!FBlueprintEditor::InitBlueprintEditor() [d:\build\++ue4+release-4.19+compile\sync\engine\source\editor\kismet\private\blueprinteditor.cpp:1742]
UE4Editor_Kismet!FBlueprintEditorModule::CreateBlueprintEditor() [d:\build\++ue4+release-4.19+compile\sync\engine\source\editor\kismet\private\blueprinteditormodule.cpp:297]
UE4Editor_AssetTools!FAssetTypeActions_Blueprint::OpenAssetEditor() [d:\build\++ue4+release-4.19+compile\sync\engine\source\developer\assettools\private\assettypeactions\assettypeactions_blueprint.cpp:88]
UE4Editor_UnrealEd!FAssetEditorManager::OpenEditorForAsset() [d:\build\++ue4+release-4.19+compile\sync\engine\source\editor\unrealed\private\toolkits\asseteditormanager.cpp:361]
UE4Editor_AssetTools!FAssetTypeActions_Base::AssetsActivated() [d:\build\++ue4+release-4.19+compile\sync\engine\source\developer\assettools\public\assettypeactions_base.h:52]
UE4Editor_ContentBrowser!SContentBrowser::OnAssetsActivated() [d:\build\++ue4+release-4.19+compile\sync\engine\source\editor\contentbrowser\private\scontentbrowser.cpp:2072]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,TTypeWrapper<void> __cdecl(TArray<FAssetData,FDefaultAllocator> const & __ptr64,enum EAssetTypeActivationMethod::Type)>::Execute() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:269]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,void __cdecl(TArray<FAssetData,FDefaultAllocator> const & __ptr64,enum EAssetTypeActivationMethod::Type)>::ExecuteIfSafe() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:345]
UE4Editor_ContentBrowser!SAssetView::OnListMouseButtonDoubleClick() [d:\build\++ue4+release-4.19+compile\sync\engine\source\editor\contentbrowser\private\sassetview.cpp:3941]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SAssetView,0,TTypeWrapper<void> __cdecl(TSharedPtr<FAssetViewItem,0>)>::Execute() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:269]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SAssetView,0,void __cdecl(TSharedPtr<FAssetViewItem,0>)>::ExecuteIfSafe() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:345]
UE4Editor_ContentBrowser!TBaseDelegate<void,TSharedPtr<FAssetViewItem,0> >::ExecuteIfBound() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:624]
UE4Editor_ContentBrowser!SListView<TSharedPtr<FAssetViewItem,0> >::Private_OnItemDoubleClicked() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\public\widgets\views\slistview.h:809]
UE4Editor_ContentBrowser!STableRow<TSharedPtr<FAssetViewItem,0> >::OnMouseButtonDoubleClick() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\public\widgets\views\stablerow.h:288]
UE4Editor_Slate!<lambda_eeb33fd1b480e3cad58a1531d90d2e14>::operator()() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5872]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FPointerEvent,<lambda_eeb33fd1b480e3cad58a1531d90d2e14> >() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:266]
UE4Editor_Slate!FSlateApplication::RoutePointerDoubleClickEvent() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5870]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonDoubleClickEvent() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5857]
UE4Editor_Slate!FSlateApplication::OnMouseDoubleClick() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5833]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\applicationcore\private\windows\windowsapplication.cpp:1730]
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\applicationcore\private\windows\windowsapplication.cpp:2172]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\applicationcore\private\windows\windowsapplication.cpp:889]
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\applicationcore\private\windows\windowsapplication.cpp:726]
user32
user32
UE4Editor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\applicationcore\private\windows\windowsplatformapplicationmisc.cpp:129]
UE4Editor!FEngineLoop::Tick() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:3263]
UE4Editor!GuardedMain() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\launch\private\launch.cpp:166]
UE4Editor!GuardedMainWrapper() [d:\build\++ue4+release-4.19+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
UE4Editor!WinMain() [d:\build\++ue4+release-4.19+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

If I drop my screen resolution down to 1080p the crash doesn’t happen, but I’ve been using this PC (laptop with 4k screen) for a year or so without any issues, so I figure it must be something to do with the data and/or code in my project somehow.

OK, I seem to have “fixed” this for now at least - switched back to 4k res, unticked “Edit->Editor Preferences…->Enable High DPI Support” and the crashes stopped. Then re-enabled the High DPI support and crashes didn’t come back again, so I guess whatever bad state the editor had created got fixed somehow when the setting changed.

One more subsequent detail, in case anyone else gets this issue - apparently, even after doing the above “fix”, there were some particular blueprints in the project that still caused the issue. I turned off High DPI support again and opened all of the “bad” blueprints, then switched High DPI support back on again, and those ones were now fixed again. I didn’t change any content in the blueprints themselves, it must be some state stored elsewhere (config? registry?) that causing the issues.