Saving changes in new editor entity scripting too fast leads to crash

Usually I expect those save requests to be handled one by one, but apparently if you attempt doing it too fast, the editor crashes and you can no longer do anything but refresh the page.

Reproduction steps:

  • Open entity scripting of multiple entities
  • Do changes on all of them
  • Quickly press “Save and Close” on at least 3 of them.

Expected Result:
The editor should process such quick inputs fine

Actual Result:
The editor, along with some elements crash and disappear.

Video attachment:
cannot send it in this forum so have it as a video download

EDIT: this can also happen if you open another entity script while the other is saving.

Browser Console output:

duplicated window id [main.fb6b6dd2.js:2:1931933](https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da)

TypeError: e.winBoxObj is undefined
wU https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
Qs https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
yu https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
vu https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
vu https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
au https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
La https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
Ql https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
[main.fb6b6dd2.js:2:1726638](https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da)

Uncaught TypeError: e.winBoxObj is undefined
wU https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
Qs https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
yu https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
vu https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
vu https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
au https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
La https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
Ql https://www.modd.io/static/js/main.fb6b6dd2.js?v=93550da:2
3 Likes

thanks for the report @vvv331!
pushed a fix, let me know if the issue still occurs.

1 Like