Error in UnigineScript clones player nodes and crashes Editor2


photo

Recommended Posts

Hi,

Test scene looks like (all nodes):

image.png.88f2bbae24402e6b8a26aa0fccd539c7.png

I observed that when I make error in UnigineScript file eg. like that:

int init() {
Node node = notDeclaredFunction(name);
}
test.cpp (guid://dd963586682183e918186d544de6871dc2fc17e8):13: Interpreter::parse_expression(): unknown token "notDeclaredFunction" in "notDeclaredFunction( name)" expression
World::loadWorld(): can't load "test.cpp (guid://dd963586682183e918186d544de6871dc2fc17e8)" world script

which stops loading a world so my scene become black:

image.png.b796bc5005f281131e613138b59fc5a5.png

it's clone my player (PlayerPersecutor nodes) in Scene (1) each time I reload world:

image.png.c77406b42d44bcbfe3574a694e0de3f8.png

and after a few times it's crashes Editor2 (below I provided top of my stack trace):

 image.png.0babfccd5f70a308b1147bac67cac1e0.png

and the error:

image.png.34f60557d597960028fc3d9353c5aef3.png

I don't have source code of the engine to tell where exactly is the error. But I think that the problem is, that created player is not destroyed in the case of error in UnigineScript.

This should be fixed ASAP.

 

Edited by Klimczak.Jan
Link to post