Greetings community,
I just stumbled upon a pretty…unnecessary problem with UEditor 4.7.5 (and most likely older versions) which leads to a complete editor crash.
Atm I have to copy & paste a lot of blueprint information from one project to another, so my clipboard is often filled with a lot of blueprint-pseudocode-strings. As I tried to change some node names in my Inputs/Outputs of a function I accidentally pasted my last clipboard into the textfield (6000+ chars).
If you do this (either by accident or you just have chosen a too long name you want to paste) the *whole editor crashes with an “unknown exception”.
Unknown exception - code 00000001 (first/second chance not available)
Assertion failed: FCString::Strlen(InName)<=NAME_SIZE [File:C:\UE4Source\UnrealEngine-release\Engine\Source\Runtime\Core\Private\UObject\UnrealNames.cpp] [Line: 460]
…more stacktrace…
UE4Editor_Slate!SEditableText::PasteTextFromClipboard() + 269 bytes [c:\ue4source\unrealengine-release\engine\source\runtime\slate\private\widgets\input\seditabletext.cpp:1106]
As you can see in the crash report, a single assertion for string length seems to cause this total failure.
If you want to reproduce:
- Open blueprint editor and create a new function/macro/something with editable textfields (inputs/outputs)
- Copy some long text or existing blueprint nodes in your clipboard (not sure whats the max value for the assertion)
- Paste them into a text input field
- Crash
While I can absolutely understand that you’re not supposed to post thousands of characters into simple input fields, imho an editor like UE shouldn’t crash horribly and be able to catch that error and notify the user about his failing paste.
I hope you are able to fix this bug asap!
Cheers, Pete
Just to make sure which kind of text fields im talking about