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

Trying To Play An Animation With A Function Call Track Corrupts Project #88654

Closed
Kalcen opened this issue Feb 22, 2024 · 2 comments
Closed

Trying To Play An Animation With A Function Call Track Corrupts Project #88654

Kalcen opened this issue Feb 22, 2024 · 2 comments

Comments

@Kalcen
Copy link

Kalcen commented Feb 22, 2024

Tested versions

v4.2.1.stable.official [b09f793]

System information

Windows 10

Issue description

This project no longer opens without instantly crashing. The only way to fix it that I know of is by deleting the node_3d.tscn file. I was trying to test a separate issue where function calls weren't being called by animation tracks sometimes, but this happened instead.

Steps to reproduce

I caused this to happen by taking these steps:
Create a scene with:

  • 3D Camera
  • Directional Light
  • Mesh Instance 3D (displaying a cube)
  • Animation Player
    Create a simple new animation in the animation player that moves the cube up and down. Add another track that calls a method named test() from a script attached to the MeshInstance3D node. All the test function should do is print something to the output console. Try to hit play on the animation in the editor, this should crash the project. If you save the scene before doing this, the project will no longer be able to open unless the scene file is deleted.

Minimal reproduction project (MRP)

AnimationFunctionCallIssue.zip

@Mrinal96
Copy link

Hey!
So, I imported your code into Godot and was able to view the cube in the app. But when I click on the play button, it loads and immediately crashes (same issue as yours) . I tried implementing the test function like you instructed by attaching the script to MeshInstance3D but unfortunately, as soon as I click on the play button, it crashes , which goes to show that we might have to delete the node_3d.tscn file. May I know what are you using this .tscn file for?
My MacBook is 16 GB RAM with 2.6 Ghz Intel i7 processor, I dont think its a memory issue .But we can address this further once you let me know why you are using this .tscn file.
Screenshot 2024-02-22 at 6 29 23 PM

@TokageItLab
Copy link
Member

Already fixed by #86687. This bug was caused by memory access corruption due to the presence of tracks with the same paths of different types.

@TokageItLab TokageItLab closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants