Crash when importing FBX scene with material name that contains slash "/"

When importing an FBX that has a material with a name that contains a slash (“/”) the editor crashes.

This can be triggered by switching to the “materials” tab on the import dialogue, or, when going through the import process a crash will happen at the very end.

It is due to the import folder creation process attempting to create a directory such as “/Game/ImportFolder//Material”

Fatal error: [File:D:\Build\++UE4+Release-+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 530] 
Attempted to create a package with name containing double slashes. PackageName: /Game/TargetImport//Acrylic1

Using UE .3 on a PC.

why in the world would you name a texture with a / in it?
No wonder ue4 crashes, heck my brain crashes over that fact lol.

95414-slash.png

and also the name of an asset may not contain those characters

Suggested behavior for importing from FBX would be replacing illegal characters with “_”, rather than immediately crashing the application.

Alternately- an error dialogue could be provided stating that material names cannot contain those illegal characters, rather than crashing.

Hi erlpnyc,

I’ve submitted UE-32306 for this crash.

Thank you!