UndertaleModTool icon indicating copy to clipboard operation
UndertaleModTool copied to clipboard

pasting GML code on top of EXCEPTION comment will crash UMT

Open themabus opened this issue 2 years ago • 4 comments

Describe the bug

open data.win and go to code that failed parsing and has EXCEPTION comment paste GML code on top of it UML will display error dialog and crash

Reproducing steps

  1. copy sole GML string from object0.Draw
  2. select all EXCEPTION comment in object0.Create so you would replace it when pasting
  3. paste

test.zip

Setup Details

674c5d8 Win10 x64

themabus avatar Jul 25 '22 10:07 themabus

UML will display error dialog and crash

Post the error dialog that it displays please.

Miepee avatar Jul 25 '22 11:07 Miepee

strangely I could not get it to display error dialog any more, it just closes now but I'm pretty sure it was the same thing that's in those crash.txt logs I remember it was a lot of 'at this' and 'at that bla bla bla' so I attached those crash_logs.zip

themabus avatar Jul 25 '22 12:07 themabus

Seems like the error is triggered at UndertaleCodeEditor.xaml.cs:1117. It could be a null parent with a null CurrentLocals, but it'll require more testing in a debug environment to be sure.

Jacky720 avatar Jul 25 '22 13:07 Jacky720

I had error message pop up again and it is indeed the same thing that's in 'crash.txt' crash also looks like this only happens when this is done through 'Game objects' object's events but not through 'Code'

themabus avatar Jul 27 '22 08:07 themabus