godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.1k stars 21.15k forks source link

[uid] UIDs generated for a .png are the same for 2 files #97916

Open RevoluPowered opened 5 days ago

RevoluPowered commented 5 days ago

Tested versions

System information

Windows 11

Issue description

editor/editor_file_system.cpp:1259 - UID duplicate detected between res://textures/special/clip.png and res://textures/shaders/tangent-test.png.

Steps to reproduce

This is where I am unsure about the repro steps, could the UID function be generating ID's that are very similar or too similar to be considered a UID?

My project was created 2 days ago, I imported the Qodot plugin and dragged the textures folder from res://addons/qodot/textures to res://textures/

I did nothing else with these files.

Minimal reproduction project (MRP)

I've attached the bugged assets and various bits that might explain the issue.

I put the .godot/imported files in a directory called .imported/ to try to help you in debugging.

bugged_files_example.zip

### Tasks
lyuma commented 5 days ago

Hi Revolu, are you sure the project was created in 4.3 dev 3, an old dev build from February 2024? The issue template recommends you paste the output of Help -> Copy System Info. This step would avoid this confusion and the need for me to ask this question.

(If it is an old 4.3 dev build, is it possible the project was created earlier, in 4.3 dev1 or 4.3 dev2 or 4.2. I know 4.2.1 and 4.3 dev1 could cause this issue from png extracted from gltf files, but it should have been fixed by 4.3 dev 2.)

If it is actually 4.4 dev 3, then I'm not sure the cause, but it seems important to investigate.

RevoluPowered commented 5 days ago

Hi Revolu, are you sure the project was created in 4.3 dev 3, an old dev build from February 2024? The issue template recommends you paste the output of Help -> Copy System Info. This step would avoid this confusion and the need for me to ask this question.

(If it is an old 4.3 dev build, is it possible the project was created earlier, in 4.3 dev1 or 4.3 dev2 or 4.2. I know 4.2.1 and 4.3 dev1 could cause this issue from png extracted from gltf files, but it should have been fixed by 4.3 dev 2.)

If it is actually 4.4 dev 3, then I'm not sure the cause, but it seems important to investigate.

apologies v4.4.dev3.mono.official [f4af8201b]

on this PC I have never used a copy of earlier 4.4 dev1 OR 2, just dev3

@lyuma thanks for noticing my error :) it is appreciated