UE (4.7.5) crashes on pasting too long strings in textfields
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]
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:
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
Thanks for you bug report.
In this particular case, the crash is caused by an assert in
I've raised UE-14636 so that we can address this in some way, either by relaxing that assert, or by hardening the UI to prevent you being able to submit such long strings.
answered Apr 29 '15 at 03:11 PM
Jamie Dale STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here