godotengine / godot

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

Entering specific shader names (e.g., 'icon_shader') causes Godot editor to freeze #98555

Open DevPikimon opened 3 weeks ago

DevPikimon commented 3 weeks ago

Tested versions

v4.3.stable

System information

Windows 10. Godot v4.3.stable - Vulkan (Mobile) - NVIDIA GeForce GTX 1060 6GB - Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 Threads)

Issue description

Setting the shader name of a Sprite2D with icon.svg as its texture to res://icon_shader.gdshader causes the Godot editor to freeze. Changing the shader name to res://shader_practice.gdshader (the same as the scene name) resolves this issue.

Steps to reproduce

  1. Create a new scene with Node2D as the root node.
  2. Add a Sprite2D node as a child and set its texture by dragging and dropping icon.svg (the default icon) onto it.
  3. Save the scene as shader_practice.tscn.
  4. In the Material tab of the Sprite2D, create a new shader.
  5. Set the shader's name to res://icon_shader.gdshader and create. At this point, the editor freezes.
  6. However, when setting the shader's name to res://shader_practice.gdshader(same as the scene name), the shader can be created without issues.

Minimal reproduction project (MRP)

N/A

Chaosus commented 3 weeks ago

I cannot reproduce it on 4.3 or 4.4.