Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating GraphEdit in editor prints error #92880

Open
aaronp64 opened this issue Jun 7, 2024 · 3 comments · May be fixed by #96018 or #89442
Open

Duplicating GraphEdit in editor prints error #92880

aaronp64 opened this issue Jun 7, 2024 · 3 comments · May be fixed by #96018 or #89442

Comments

@aaronp64
Copy link
Contributor

aaronp64 commented Jun 7, 2024

Tested versions

v4.3.beta.custom_build [e96ad5a]

System information

Windows 10

Issue description

Duplicating a GraphEdit node in the editor prints the error below. Same error during each step of copy/paste. The duplicated GraphEdit still seems to work ok in a running project, and I don't see the error when calling $GraphEdit.duplicate() in gdscript.

  scene\main\node.cpp:1682 - Index p_index = 1 is out of bounds ((int)data.children_cache.size() = 1).
  Child node disappeared while duplicating.

Steps to reproduce

In a new project, create a scene and add a GraphEdit child. Duplicate or copy/paste the GraphEdit node, and the error should print in the Output tab

Minimal reproduction project (MRP)

N/A

@JekSun97
Copy link

JekSun97 commented Jun 7, 2024

This is not necessarily related to GraphEdit, I have found this issue when duplicating other nodes as well - #92724 (comment)

@matheusmdx
Copy link
Contributor

Bisecting points to #91677, but that pr was made to avoid the crash caused by pr #87387, so the original problem needs to be investigated to solve that

image

@Rindbee
Copy link
Contributor

Rindbee commented Jun 9, 2024

It may be necessary to check data.parent_owned of the original node's children and DuplicateFlags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants