Gui.clone_tree(nil)

I managed to call gui.clone_tree() with nil param due to derping with self and noticed that the engine starts spamming new nodes till the limit is hit and then it spits out an error about the node limit being hit. This gave me a though that maybe the engine should check if the gui.clone_tree() receives a nil param and then return with an error instead of creating… nil nodes?

Granted the Could not create the node since the buffer is full (512). error is already a decent indicator that something went wrong but I have a feeling it can be “dangerous” to create infinite nodes.

Oh… just tried what happens with max node limit (8192) and the whole thing crashed now. :grinning_face_with_smiling_eyes:

Thanks!
Help us out by reporting issues in our GitHub repository.

I was about to do that but then got stuck deciding between bug report and feature request so I posted here. Though this was before I tested with 8192 nodes. I assume this would be a bug report?

Yes, I’d say this is a bug.