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

Missing script that has exported Array[Node] make godot crash when opening the scene #78238

Closed
ajreckof opened this issue Jun 14, 2023 · 2 comments · Fixed by #78240
Closed

Comments

@ajreckof
Copy link
Member

Godot version

4.1.dev (4d5f10f)

System information

macOS 13.3.0 - Vulkan (Forward+) - integrated Apple M1 Pro - Apple M1 Pro (8 Threads)

Issue description

When a script was attached to a node in a saved scene and this script is exporting a member typed with Array[Node] . Reopening the scene when the script is missing because it was deleted or moved will cause a crash

Steps to reproduce

  1. Create a scene with two nodes
  2. attach a script to the root with just one exported member typed as Array[Node]
  3. Add both nodes to the exported member
  4. Save the scene
  5. close the scene
  6. Delete the script
  7. Try to open the scene again godot will crash

Minimal reproduction project

with the MRP you can start reproduction steps at the sixth step.
Test.zip

@adamscott
Copy link
Member

CC @vonagam @dalexeev

@vonagam
Copy link
Contributor

vonagam commented Jun 14, 2023

My guess (without looking) will be that this is connected to the complex issue of representation of an array of nodes in the editor. I think this issue - #62916 - references the most relevant pieces (other issues/past PRs). If that is the case then topic:editor tag is important and currently is missing. Makes sense to ping @KoBeWi as he did fix connected issue twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants