Engine crash on importing fbx in 4.14.2

Engine crashes when re-importing a static mesh fbx from blender that was not assigned a material before being exported from blender.

MachineId:D31B05AE46BDB0C062EDBF82D96FE8FE

EpicAccountId:0e57fa0546b94ddcb19003630b820a53

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\public\Containers/Array.h] [Line: 634]
Array index out of bounds: 0 from an array of size 0

UE4Editor_Core!FDebug::AssertFailed() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:332]
UE4Editor_UnrealEd!RestoreExistingMeshData() [d:\build++ue4+release-4.14+compile\sync\engine\source\editor\unrealed\private\staticmeshedit.cpp:1180]
UE4Editor_UnrealEd!UnFbx::FFbxImporter::ReimportStaticMesh() [d:\build++ue4+release-4.14+compile\sync\engine\source\editor\unrealed\private\fbx\fbxstaticmeshimport.cpp:984]
UE4Editor_UnrealEd!UReimportFbxStaticMeshFactory::Reimport() [d:\build++ue4+release-4.14+compile\sync\engine\source\editor\unrealed\private\factories\editorfactories.cpp:5763]
UE4Editor_UnrealEd!FReimportManager::Reimport() [d:\build++ue4+release-4.14+compile\sync\engine\source\editor\unrealed\private\editor.cpp:319]
UE4Editor_UnrealEd!FReimportManager::ReimportMultiple() [d:\build++ue4+release-4.14+compile\sync\engine\source\editor\unrealed\private\editor.cpp:504]
UE4Editor_UnrealEd!FReimportManager::ValidateAllSourceFileAndReimport() [d:\build++ue4+release-4.14+compile\sync\engine\source\editor\unrealed\private\editor.cpp:487]
UE4Editor_ContentBrowser!FAssetContextMenu::ExecuteReimport() [d:\build++ue4+release-4.14+compile\sync\engine\source\editor\contentbrowser\private\assetcontextmenu.cpp:1355]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,FAssetContextMenu,0,TTypeWrapper __cdecl(void)>::Execute() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:318]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,FAssetContextMenu,0,void __cdecl(void)>::ExecuteIfSafe() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:424]
UE4Editor_Slate!SMenuEntryBlock::OnClicked() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\slate\private\framework\multibox\smenuentryblock.cpp:1042]
UE4Editor_Slate!SMenuEntryBlock::OnMenuItemButtonClicked() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\slate\private\framework\multibox\smenuentryblock.cpp:993]
UE4Editor_Slate!TMemberFunctionCaller::operator()<>() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\public\delegates\delegateinstanceinterface.h:161]
UE4Editor_Slate!TTupleImpl >::ApplyAfter >() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\public\delegates\tuple.h:116]
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SMenuEntryBlock,0,FReply __cdecl(void)>::Execute() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:318]
UE4Editor_Slate!TBaseDelegate::Execute() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:522]
UE4Editor_Slate!SButton::OnMouseButtonUp() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\slate\private\widgets\input\sbutton.cpp:275]
UE4Editor_Slate!SMenuEntryButton::OnMouseButtonUp() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\slate\private\framework\multibox\smenuentryblock.cpp:391]
UE4Editor_Slate!::operator()() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5010]
UE4Editor_Slate!FEventRouter::Route >() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:215]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4999]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5462]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5439]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\windows\windowsapplication.cpp:1652]
UE4Editor_Core!FWindowsApplication::DeferMessage() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\windows\windowsapplication.cpp:2071]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\windows\windowsapplication.cpp:814]
UE4Editor_Core!FWindowsApplication::AppWndProc() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\windows\windowsapplication.cpp:678]
user32
user32
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:951]
UE4Editor!FEngineLoop::Tick() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2811]
UE4Editor!GuardedMain() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\launch.cpp:152]
UE4Editor!GuardedMainWrapper() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\build++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
kernel32
ntdll

a file that will cause a crash and one that will not
link text

Common issue has been given a ticket . Please be patient brother they will surely get something to work for ya

Seems to me more like UE-39692 Fbx importer crash when reordering material array containing unused materials (which has been fix on master 24 days ago, but reported on 4.14 only a few hours ago for upcoming UE4.14.3)

edit: not sure how to make a link from the issue UE-39692 back to this post, perhaps the original post has to reference it directly

This isn’t the same issue as that one.

Call stacks from that crash don’t line up with the one reported that you linked. That seems similar though.

Hey Masterwigglestin,

The crash doesn’t happen for me in 4.14.1 or 4.14.2 with either of your assets.

Is there any particular workflow you’re using for the import or settings you’ve changed?

for instance, these are my steps to import:

  • Select Import in the Content Browser
  • Leave default settings for Import Options window
  • Save once the import is complete.
  • Right-click Reimport

Also try this in a new blank project and see if you get the crash that way. This will rule out if something is acting up in your project and gives us a jumping off point since I can’t get the crash myself.

Thank you!

Tim

Seeing the same/similar thing here. Import FBX which has 1 mesh node with no material. Inside BuildStaticMeshFromGeometry() it detects 0 materials and assigns the default (WorldGridMaterial) so sets the material count to 1.

Immediately after importing, right-click and Reimport causes a crash in RestoreExistingMeshData() in the block commented

// Restore the section info

if (RemapMaterial[NewSectionInfo.MaterialIndex] == OldSectionInfo.MaterialIndex)

because RemapMaterial is empty.

This has already been fixed with 4.14.3. UE-40229

No, that’s a different bug. Turns out this one is broken in 4.14.3 but fixed in 4.15. It’s UE-40510.

Yeah, you’re right! We had two that came out of this one. The latter you mention will definitely be fixed in 4.15.