godotengine / godotengine/godot

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

Open
#98,555 1 comment 0 reactions 0 assignees View on GitHub
bug topic:editor topic:shaders
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### 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

Contributor guide

Open the contributing guide

Research direction

Reproduce the freeze in a Godot 4.3 editor using the listed Sprite2D, icon.svg, and shader-name steps, then compare it with shader_practice.gdshader. Start at the Sprite2D Material tab's shader creation flow and trace the differing name handling. Done means both shader names can be created without freezing the editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
godot
Domain
devtools, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.