You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the same export_group name in an inherited class and re-saving that class while the project is running crashes the project and sometimes the editor
#79804
Closed
nan0m opened this issue
Jul 22, 2023
· 2 comments
· Fixed by #78254
When using @export_group("Name") in a BaseClass, then inheriting from that BaseClass in another class and there also using @export_group("Name"), with the same group name, then running the project and re-saving the inherited class the project crashes with
ERROR: FATAL: Index p_index = 3 is out of bounds (size() = 3).
at: get (./core/templates/cowdata.h:155)
I can confirm that it crashes the project with the reproduction steps and project provided.
I did not manage to make the editor itself crash.
After first downloading the project it crashed on every CTRL + S, without any changes made to the script.
After opening it for the second time, it took more tries, up to ~50.
Modifying the export_group name while running and saving almost always causes an project crash.
Two different errors are printed, but only when running with the external console:
the first one happens when resaving script with no changes:
ERROR: FATAL: Indexp_index=3isoutofbounds (size() =3).
at: get (./core/templates/cowdata.h:155)
the second one is thrown when the script is modified before saving:
I tested the MRP and it looks like PR #78254 fixes this issue too. Note, however, that there are several other bugs with hot reloading of scripts (when you edit the script while the project is running).
Godot version
4.1.0
System information
Windows 10, i711800H, Forward+ Vulkan
Issue description
When using @export_group("Name") in a BaseClass, then inheriting from that BaseClass in another class and there also using @export_group("Name"), with the same group name, then running the project and re-saving the inherited class the project crashes with
sometimes the editor crashes too after a while.
Steps to reproduce
Minimal reproduction project
MRP_.zip
The text was updated successfully, but these errors were encountered: