Hi,
I’m on UE4.14.3 and I’m getting an access violation error when using the ImportAssets commandlet to import a simple FBX file. This is the command I’m running:
UE4Editor-Cmd.exe $UE_PROJECTFILE -run=ImportAssets -AllowCommandletRendering -source=$FBX_FILEPATH -dest=Geometry/Meshes -importsettings=$SETTINGS_JSONFILE -replaceexisting
The content of the JSON settings file is:
{
"ImportGroups": [
{
"FactoryName": "/Script/UnrealEd.FbxFactory",
"ImportSettings":
{
"bImportMesh": 1,
"bImportMaterials": 1,
"bImportTextures": 1,
"bCombineMeshes": 0,
"bConvertScene": 1,
"bConvertSceneUnit": 1,
"StaticMeshImportData":
{
"bAutoGenerateCollision": 0,
"bRemoveDegenerates": 1
},
"SkeletalMeshImportData":
{
} ,
"AnimSequenceImportData":
{
},
"TextureImportData":
{
}
}
}
]
}
The callstack for the access violation error is:
After looking at the source code for a while, I found that if I set the “bCreatePhysicsAsset” settings of the ImportAssets commandlet to false, the crash no longer occurs.
If I use UE4 Editor to manually import the FBX file, I get the following message in the log but the FBX is imported OK:
“Warning The bone size is too small to create Physics Asset ‘ButterflyValve_0_PhysicsAsset’ from Skeletal Mesh ‘ButterflyValve_0’. You will have to create physics asset manually.”
Even if the issue is in the FBX file (i.e. bone size in the model), the ImportAssets commandlet should handle it gracefully and not crash like the UE Editor is doing.
Thanks,
Softavi