SLADE icon indicating copy to clipboard operation
SLADE copied to clipboard

Crash when pasting text from external source

Open GianptDev opened this issue 1 year ago • 2 comments

SLADE Version: (3.2.2) Operating System: (Linux)

Issue Details: Crash when text copied from external source (like a web page) is then pasted into the text editor.

I copied some code from stackoverflow and once pasted in the text editor it crashed, it happened multiple times but sometimes it does not happen.

log.txt

GianptDev avatar May 03 '23 17:05 GianptDev

Does it still happen if you disable brace matching in the text editor preferences?

sirjuddington avatar May 18 '23 12:05 sirjuddington

Hi, I've made a test archive with only a zscript text file and tried to copy and paste some text, slade at first didn't crashed, then I started to copy a big chunk of text over and over until it crashed after the file has reached >1000 lines, here the logs.

I randomly choose as text to copy this class definition in c++ from stack overflow, here, to make this test and I'm sure it crashes with any other text I grab from that site.

So, I've found out that the problem exist when pasting after a specific line or when the script is very big. Maybe an overflow ?

GianptDev avatar May 18 '23 18:05 GianptDev