Thread requested by Ashley
Problem Description
Strings above a certain lenght are truncated depending on the context, to about half a million caracters.
Attach a Capx:
http://sta.sh/01qsh2vnd6j4
The download contains two file: the capx project, and a text file of about one-million caracters that I used in the project.
The text is made of a single line, at the beginning is a big "THIS IS THE BEGINNING", at the end a big "THIS IS THE TAIL".
In between is simply some HTML code I've been processing, this part doesn't matter here
I'll refer to the text as the "one-million string".
Description of Capx
The Capx contains only a text box, which has three instance variables:
"Variable", a text variable into which I directly pasted the one-million string
"Pasted_Lenght", a number programmed to reflect the length of the string pasted into the text box.
"Variable_Lenght", a number programmed to reflect the lenght of "FullHTML"
Additionally, I programmed "Variable" to automatically capture the exact content of the text box.
Steps to Reproduce Bug
Observed Result
• Start the project with Chrome in debug mode
• Look for "FullHTML" and "Variable_Lenght" in the debugger
==> You'll notice that "FullHTML is truncated in the middle of the html and doesn't display the TAIL. It's lenght is said to be 30.000 instead of the expected one million
• Open the text file in the notepad, and copy-paste the one-million string into the text box.
==> While looking into the textbox itself, you'll see the ending TAIL, meaning the string was succesfully pasted as a whole
• Look for "Text" and "Pasted_lenght" inside the debugger
==> You'll notice that the debugger does not display the pasted string whole. Again, it is truncated in the middle of the code. It's lenght is said to be 524.288
• Go back into the text box an type/erase a few caracters.
==> The advertised length remains at 524.288. My guess is it can't go higher and won't go down until you actually erase enough caracters. As well, the "text" in the debugger won't move unless you change caracters early in the string.
• Redoing the same within Firefox, all the numbers match the actual lenght of the One Million string, (1.095.764), which displays both head and tail in the debug window.
Expected Result
Being able to input and manipulate insanely long strings.
Affected Browsers
Chrome: yes
Firefox: NO
Microsoft Edge*: yes
*wasn't able to paste the string into edge, too much lag. Only the truncated variable is confirmed.
Operating System and Service Pack
Windows 10 64bit
Construct 2 Version ID
r230