UE4 crashes while importing static mesh with UVW face map modifier

Hi,

I am facing one bug in UE4, and currently using version 4.5. The bug is as follows :
When I am using unwrap UVW modifier and flattening the mapping and then import in UE4, it works fine. But , for example in the below picture , after flattening the mapping also , I am unable to get proper tiling.

So I need to apply another UVW map modifier with Face Mapping , as shown in the below picture.

This is what I want. But when I export this and the import in UE4, it shows indefinite progress bar for several minutes before showing the crash report , as given below :

**> Assertion failed: ChartB.Join[ Side ^

1 ] == i [File:E:\My Animation
Project\UE4\Unreal
Projects\UnrealEngine-4.5.0-release\Engine\Source\Developer\MeshUtilities\Private\LayoutUV.cpp]
[Line: 374]

KERNELBASE.dll!UnknownFunction
(0x00007fff45e7606c) + 0 bytes
[UnknownFile:0]
UE4Editor-Core.dll!FOutputDeviceWindowsError::Serialize()
(0x00007fff29887c2d) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor-Core.dll!FOutputDevice::Logf__VA()
(0x00007fff29725878) + 159 bytes
[e:\my animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\private\misc\outputdevice.cpp:145]
UE4Editor-Core.dll!FDebug::AssertFailed()
(0x00007fff29708632) + 62 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\private\misc\outputdevice.cpp:220]
UE4Editor-MeshUtilities.dll!FLayoutUV::FindCharts()
(0x00007fff15b145d4) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\developer\meshutilities\private\layoutuv.cpp:375]
UE4Editor-MeshUtilities.dll!FMeshUtilities::BuildStaticMesh()
(0x00007fff15b032ba) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\developer\meshutilities\private\meshutilities.cpp:2293]
UE4Editor-Engine.dll!FStaticMeshRenderData::Cache()
(0x00007fff26bb2e13) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\engine\private\staticmesh.cpp:1143]
UE4Editor-Engine.dll!UStaticMesh::CacheDerivedData()
(0x00007fff26bb32dc) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\engine\private\staticmesh.cpp:1643]
UE4Editor-Engine.dll!UStaticMesh::Build()
(0x00007fff26bad1d9) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\engine\private\staticmeshbuild.cpp:88]
UE4Editor-UnrealEd.dll!UnFbx::FFbxImporter::ImportStaticMeshAsSingle()
(0x00007fff254f06f0) + 11 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\editor\unrealed\private\fbx\fbxstaticmeshimport.cpp:1209]
UE4Editor-UnrealEd.dll!UnFbx::FFbxImporter::ImportStaticMesh()
(0x00007fff254ee6ca) + 66 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\editor\unrealed\private\fbx\fbxstaticmeshimport.cpp:91]
UE4Editor-UnrealEd.dll!UnFbx::FFbxImporter::ReimportStaticMesh()
(0x00007fff254fdc73) + 95 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\editor\unrealed\private\fbx\fbxstaticmeshimport.cpp:791]
UE4Editor-UnrealEd.dll!UReimportFbxStaticMeshFactory::Reimport()
(0x00007fff254467b6) + 14 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\editor\unrealed\private\factories\editorfactories.cpp:5705]
UE4Editor-UnrealEd.dll!FReimportManager::Reimport()
(0x00007fff24dd8c22) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\editor\unrealed\private\editor.cpp:2629]
UE4Editor-AssetTools.dll!FAssetTypeActions_StaticMesh::ExecuteReimport()
(0x00007fff13405c97) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\developer\assettools\private\assettypeactions\assettypeactions_staticmesh.cpp:119]
UE4Editor-AssetTools.dll!TBaseSPMethodDelegateInstance_NoParams_OneVar,FDefaultAllocator>,0>::Execute()
(0x00007fff133f4b9e) + 29 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\public\delegates\delegateinstancesimpl.inl:161]
UE4Editor-AssetTools.dll!TBaseSPMethodDelegateInstance_NoParams_OneVar,FDefaultAllocator>,0>::ExecuteIfSafe()
(0x00007fff13400aa7) + 9 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\public\delegates\delegateinstancesimpl.inl:171]
UE4Editor-Slate.dll!SMenuEntryBlock::OnClicked()
(0x00007fff260ed7f9) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\slate\private\framework\multibox\smenuentryblock.cpp:859]
UE4Editor-Slate.dll!SMenuEntryBlock::OnMenuItemButtonClicked()
(0x00007fff260f07a8) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\slate\private\framework\multibox\smenuentryblock.cpp:809]
UE4Editor-Slate.dll!TBaseSPMethodDelegateInstance_RetVal_NoParams::Execute()
(0x00007fff260d5c1f) + 17 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\public\delegates\delegateinstancesimpl.inl:161]
UE4Editor-Slate.dll!TBaseDelegate_RetVal_NoParams::Execute()
(0x00007fff260d54ca) + 6 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:1058]
UE4Editor-Slate.dll!SButton::OnMouseButtonUp()
(0x00007fff260f2385) + 17 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\slate\private\widgets\input\sbutton.cpp:188]
UE4Editor-Slate.dll!FSlateApplication::ProcessMouseButtonUpEvent()
(0x00007fff2604e00c) + 23 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:3505]
UE4Editor-Slate.dll!FSlateApplication::OnMouseUp()
(0x00007fff2603b746) + 16 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:3469]
UE4Editor-Core.dll!FWindowsApplication::ProcessDeferredMessage()
(0x00007fff298079a9) + 12 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\private\windows\windowsapplication.cpp:1346]
UE4Editor-Core.dll!FWindowsApplication::DeferMessage()
(0x00007fff297f3eab) + 74 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\private\windows\windowsapplication.cpp:1637]
UE4Editor-Core.dll!FWindowsApplication::ProcessMessage()
(0x00007fff29808b29) + 41 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\private\windows\windowsapplication.cpp:737]
UE4Editor-Core.dll!FWindowsApplication::AppWndProc()
(0x00007fff297f07f2) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\private\windows\windowsapplication.cpp:599]
USER32.dll!UnknownFunction
(0x00007fff47592434) + 0 bytes
[UnknownFile:0]
USER32.dll!UnknownFunction
(0x00007fff47592297) + 0 bytes
[UnknownFile:0]
UE4Editor-Core.dll!FWindowsPlatformMisc::PumpMessages()
(0x00007fff29808fe6) + 48 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:757]
UE4Editor.exe!FEngineLoop::Tick()
(0x00007ff641588f22) + 8 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\launch\private\launchengineloop.cpp:2111]
UE4Editor.exe!GuardedMain()
(0x00007ff64157eb0e) + 0 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\launch\private\launch.cpp:133]
UE4Editor.exe!GuardedMainWrapper()
(0x00007ff64157eb7a) + 5 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\launch\private\windows\launchwindows.cpp:125]
UE4Editor.exe!WinMain()
(0x00007ff64158a6f9) + 17 bytes [e:\my
animation project\ue4\unreal
projects\unrealengine-4.5.0-release\engine\source\runtime\launch\private\windows\launchwindows.cpp:201]
UE4Editor.exe!__tmainCRTStartup()
(0x00007ff64158b629) + 21 bytes
[f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
KERNEL32.DLL!UnknownFunction
(0x00007fff479f16ad) + 0 bytes
[UnknownFile:0]
ntdll.dll!UnknownFunction
(0x00007fff48754409) + 0 bytes
[UnknownFile:0]
ntdll.dll!UnknownFunction
(0x00007fff48754409) + 0 bytes
[UnknownFile:0]**

Kindly let me know if this is a bug or I am making some major mistake here. The max and the fbx file link for your reference : [Max File Link][3] [FBX File Link][4]

Commenting out these lines from the LayoutUV.cpp does work -

check( ChartB.Join[ Side ^ 1 ] == i );
check( ChartB.FirstTri != ChartB.LastTri );
(and all other lines with “check” method)

But I would love to have a proper fix for this, if not already in 4.6 and 4.7 , which I haven’t tried.

This has been fixed already with the release of 4.7 (which you can try via the launcher for the preview builds as a test).

Alternatively, without going in to source code you can simply disable “Generate Lightmap UV” in the import options.