Unreal Engine UV generation loop/crash

UE4Editor can be crashed if source and target UVs index are same. Pretty stupid mistake, but can be made by accident.

18239-uv1.png

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:X:\DEV\UE4\4.5.0\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 536] 
Array index out of bounds: 0 from an array of size 0


KERNELBASE.dll!UnknownFunction (0x00007ffeefcf606c) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!FOutputDeviceWindowsError::Serialize() (0x00007ffec7049ecd) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor-Core.dll!FOutputDevice::Logf__VA() (0x00007ffec6ee5b08) + 159 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\private\misc\outputdevice.cpp:145]
UE4Editor-Core.dll!FDebug::AssertFailed() (0x00007ffec6ec88c2) + 62 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\private\misc\outputdevice.cpp:220]
UE4Editor-MeshUtilities.dll!FLayoutUV::FindCharts() (0x00007ffebd3c4bf5) + 71 bytes [x:\dev\ue4\4.5.0\engine\source\developer\meshutilities\private\layoutuv.cpp:35]
UE4Editor-MeshUtilities.dll!FMeshUtilities::BuildStaticMesh() (0x00007ffebd3b546a) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\developer\meshutilities\private\meshutilities.cpp:2293]
UE4Editor-Engine.dll!FStaticMeshRenderData::Cache() (0x00007ffec4d68353) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\engine\private\staticmesh.cpp:1143]
UE4Editor-Engine.dll!UStaticMesh::CacheDerivedData() (0x00007ffec4d6881c) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\engine\private\staticmesh.cpp:1643]
UE4Editor-Engine.dll!UStaticMesh::Build() (0x00007ffec4d62709) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\engine\private\staticmeshbuild.cpp:88]
UE4Editor-Engine.dll!UStaticMesh::PostEditChangeProperty() (0x00007ffec4d955cc) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\engine\private\staticmesh.cpp:1426]
UE4Editor-CoreUObject.dll!UObject::PostEditChange() (0x00007ffecf2c7369) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\coreuobject\private\uobject\obj.cpp:215]
UE4Editor-StaticMeshEditor.dll!FLevelOfDetailSettingsLayout::ApplyChanges() (0x00007ffeb4d1a75e) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\editor\staticmesheditor\private\staticmesheditortools.cpp:1956]
UE4Editor-StaticMeshEditor.dll!FMeshBuildSettingsLayout::OnApplyChanges() (0x00007ffeb4d4fe73) + 60 bytes [x:\dev\ue4\4.5.0\engine\source\editor\staticmesheditor\private\staticmesheditortools.cpp:541]
UE4Editor-StaticMeshEditor.dll!TBaseSPMethodDelegateInstance_RetVal_NoParams<FMeshBuildSettingsLayout,FReply,0>::Execute() (0x00007ffeb4d2f5ff) + 17 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\public\delegates\delegateinstancesimpl.inl:161]
UE4Editor-Slate.dll!TBaseDelegate_RetVal_NoParams<FReply>::Execute() (0x00007ffec4285c0a) + 6 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:1058]
UE4Editor-Slate.dll!SButton::OnMouseButtonUp() (0x00007ffec42a2ac5) + 17 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\slate\private\widgets\input\sbutton.cpp:188]
UE4Editor-Slate.dll!FSlateApplication::ProcessMouseButtonUpEvent() (0x00007ffec41fe67c) + 23 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:3505]
UE4Editor-Slate.dll!FSlateApplication::OnMouseUp() (0x00007ffec41ebd76) + 16 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:3469]
UE4Editor-Core.dll!FWindowsApplication::ProcessDeferredMessage() (0x00007ffec6fc9c39) + 12 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\private\windows\windowsapplication.cpp:1346]
UE4Editor-Core.dll!FWindowsApplication::DeferMessage() (0x00007ffec6fb60db) + 74 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\private\windows\windowsapplication.cpp:1637]
UE4Editor-Core.dll!FWindowsApplication::ProcessMessage() (0x00007ffec6fcadb9) + 41 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\private\windows\windowsapplication.cpp:737]
UE4Editor-Core.dll!FWindowsApplication::AppWndProc() (0x00007ffec6fb2a22) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\private\windows\windowsapplication.cpp:599]
USER32.dll!UnknownFunction (0x00007ffef0992434) + 0 bytes [UnknownFile:0]
USER32.dll!UnknownFunction (0x00007ffef0992297) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!FWindowsPlatformMisc::PumpMessages() (0x00007ffec6fcb276) + 48 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:757]
UE4Editor.exe!FEngineLoop::Tick() (0x00007ff76e8bb082) + 8 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\launch\private\launchengineloop.cpp:2111]
UE4Editor.exe!GuardedMain() (0x00007ff76e8b0c3e) + 0 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\launch\private\launch.cpp:133]
UE4Editor.exe!GuardedMainWrapper() (0x00007ff76e8b0caa) + 5 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\launch\private\windows\launchwindows.cpp:125]
UE4Editor.exe!WinMain() (0x00007ff76e8bc859) + 17 bytes [x:\dev\ue4\4.5.0\engine\source\runtime\launch\private\windows\launchwindows.cpp:201]
UE4Editor.exe!__tmainCRTStartup() (0x00007ff76e8bd789) + 21 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
KERNEL32.DLL!UnknownFunction (0x00007ffef01616ad) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffef25c4409) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffef25c4409) + 0 bytes [UnknownFile:0]

Hey S-ed,

Thank you for your report. We have assigned this issue to a member of our support staff, and they will begin investigation as soon as possible. If we are unable to reproduce issue, or we need additional information, our staff member will comment here with additional questions. Otherwise, we will post an ‘Answer’ once we have logged issue in our bug database or we have a solution for it.

In meantime, please be sure to review our suggestions for how to report a bug, and feel free to edit your post if you have additional information to provide:

Please and attach crash log and dump file from project after this crash.

Thanks!

Hi S-ed,

This is a known issue. I found this bug last week while testing another issue with new Lightmap generation. I don’t have an ETA for fix but I will update here once fix has been implemented and verified working.

Thank you!

Tim

Oh. Good, just couldn’t find one on answers so posted myself.
I have also one more ‘bug’ related to UV generation. It’s a UV generated for MaterialSphere mesh asset, that comes with starter content. No matter how I try, there always this ‘appendix’ beyond map border.

Thanks for catching that one! There are continual improvements coming to new feature that will hopefully keep cases like this to a minimum.

Thank you!

Tim