We likely have several places in the editor that convert text taken from an editable text into an FName without ensuring that the string will fit into an FName. This can lead to editor crashes.
One simply way to fix this would be to swap out the check in FName::InitInternal with something that truncates the name, eg)
TCharType TruncatedBuffer[NAME_SIZE]; if (!ensureMsgf(TCString<TCharType>::Strlen(InName)<=NAME_SIZE, TEXT("The given FName is %d characters and will be truncated to NAME_SIZE (%d) characters"), TCString<TCharType>::Strlen(InName), NAME_SIZE)) { TCString<TCharType>::Strncpy(TruncatedBuffer, InName, NAME_SIZE); InName = TruncatedBuffer; }
Another way would be to create an editable text widget that's tailored to editing FNames, and which provides basic validation for length and invalid characters. This could then be used in places where we're editing an FName.
I am not able to find world outliner how to enable it?
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
Delay nodes occasionally don't fire the "Completed" output in a nativized build
How to achieve HLSL Multiple Render Target in Material blueprints?
I can't open my map from the editor.
Head over to the existing Questions & Answers thread and let us know what's up.