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

Moving resource renames dependents to *.depren #60412

Closed
nathanfranke opened this issue Apr 21, 2022 · 14 comments · Fixed by #60424 or #60709
Closed

Moving resource renames dependents to *.depren #60412

nathanfranke opened this issue Apr 21, 2022 · 14 comments · Fixed by #60424 or #60709

Comments

@nathanfranke
Copy link
Contributor

nathanfranke commented Apr 21, 2022

Godot version

v4.0.alpha.custom_build [f4b0c7a]

System information

Arch Linux 5.15.34-1-lts

Issue description

Note that the scene and script were not open.

2022-04-21 12-55-23

Steps to reproduce

  1. Move the script to a different directory or move the entire directory

Minimal reproduction project

test1.zip

@Calinou
Copy link
Member

Calinou commented Apr 21, 2022

@nathanfranke Can you reproduce this on 3.4.4?

@nathanfranke
Copy link
Contributor Author

Cannot reproduce in 3.4.4 nor 3.5.beta4

@markdibarry
Copy link
Contributor

This still seems to be happening on alpha 7.

@Calinou Calinou reopened this Apr 29, 2022
@Calinou
Copy link
Member

Calinou commented Apr 29, 2022

cc @timothyqiu

@timothyqiu
Copy link
Member

@markdibarry Can you provide some instructions on how to reproduce it? The steps in OP works fine for me.

@markdibarry
Copy link
Contributor

I haven't delved into a new project to make a minimal reproduction, but here's a project with a build off of cbdc33b.
In this case, MetalHockeyStick.tscn is an inherited scene from HockeyStick.tscn.

2022-04-30.10-20-34.mp4

@markdibarry
Copy link
Contributor

markdibarry commented May 1, 2022

@timothyqiu Built from a commit yesterday, and still having the issue. Created a minimal repro:
Depren_bug.zip
Just rename the Char1.tscn to anything else and it'll create a .depren file off of Char2.tscn.

@timothyqiu
Copy link
Member

I am unable to reproduce the extra .depren file with the MRP on Arch Linux. Maybe only reproducible on Windows? (I don't have access to a Windows machine right now, so I am not sure.)

@markdibarry
Copy link
Contributor

I am on a Windows machine, so that may be the case.

@nathanfranke
Copy link
Contributor Author

nathanfranke commented May 2, 2022

I cannot reproduce on Arch (same setup as original post)

v4.0.alpha.custom_build [bc7ccc9]

Edit: Still can't reproduce even if I make player2.tscn that inherits player.tscn and move/rename all of the files.

@markdibarry
Copy link
Contributor

Did a fresh build this morning on another Windows machine, and MRP still has the issue, so I guess we can confirm it's Windows (not sure about Mac) specific.

@akien-mga
Copy link
Member

CC @godotengine/windows

@bruvzg bruvzg self-assigned this May 2, 2022
@bruvzg
Copy link
Member

bruvzg commented May 2, 2022

Seems like ResourceLoaderText is holding multiple references to the source file, and one unref is not enough (before making FileAccess/DirAccess ref. counted, close call was leaving a bunch of invalid file access handles).

@markdibarry
Copy link
Contributor

markdibarry commented May 2, 2022

Tested and working. Thanks @bruvzg and @timothyqiu !

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