Repository: godot
Issue: Converting (one particular project) from 4.2 to 4.3 hangs for a long time (possibly on string_name.cpp, possibly related to global shader params)
Labels: bug,topic:editor,needs testing

### Tested versions

- Observed in v4.3.stable.official [77dcf97d8]

### System information

Windows 10 - v4.3.stable - Vulkan Forward+

### Issue description

Issue happened when converting a fairly large project, from 4.2 (stable) to 4.3 (stable). I successfully converted other projects, only one project caused the issue.

When opening the project, Godot shows the importing progress bars as it (re)imports resources. Eventually, it freezes, always in the same point. Windows shows it not responding.
I removed the file at the point it was hanging (in case the file itself was the issue), and it made no difference - it instead would hang on another file at that point of the progress, so it was probably showing the name of the last imported file, and not the name causing the issue.

When I close the _console_ window (launching Godot via the Godot_..._console.exe), said console outputs the content below quickly before closing (it's so quick I had to record the screen, pause it and re-type. I double checked for typos but still possible).

```
ERROR: BUG: Unreferenced static string to 0: CVTT Compress
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: luminance_buffers
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: quarter_texture
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: sky_buffers
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: half_texture
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: rb_ssil
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: reflection
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: rb_ssao
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: final
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: back_color
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: back_depth
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: normal_roughness
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: VRS
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: Fog
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: sdfgi
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: _compression
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: _skip_save
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: @export_range
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @export_multiline
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @export_enum
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @export
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @tool
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @warning_ignore
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @icon
   at: unref (core/string/string_name.cpp:129)
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools11BucketLargeE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
```

I left it hanging for some good 20 minutes, and it output the below instead, and opened successfully:

```
WARNING: OBJ: Ambient light for material 'Material' is ignored in PBR
     at: _parse_material_library (editor/import/3d/resource_importer_obj.cpp:65)
WARNING: Ignoring face with non-finite normal in LOD generation.
     at: generate_lods (scene/resources/3d/importer_mesh.cpp:521)
ERROR: Condition "!unique_ids.has(p_id)" is true. Returning: String()
   at: get_id_path (core/io/resource_uid.cpp:132)
ERROR: Condition "!unique_ids.has(p_id)" is true. Returning: String()
   at: get_id_path (core/io/resource_uid.cpp:132)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "_get_font_data(p_fonts[i])" is null.
   at: _shaped_text_add_string (modules/text_server_adv/text_server_adv.cpp:4307)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "_get_font_data(p_fonts[i])" is null.
   at: _shaped_text_add_string (modules/text_server_adv/text_server_adv.cpp:4307)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "_get_font_data(p_fonts[i])" is null.
   at: _shaped_text_add_string (modules/text_server_adv/text_server_adv.cpp:4307)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "_get_font_data(p_fonts[i])" is null.
   at: _shaped_text_add_string (modules/text_server_adv/text_server_adv.cpp:4307)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "_get_font_data(p_fonts[i])" is null.
   at: _shaped_text_add_string (modules/text_server_adv/text_server_adv.cpp:4307)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "_get_font_data(p_fonts[i])" is null.
   at: _shaped_text_add_string (modules/text_server_adv/text_server_adv.cpp:4307)
ERROR: Parameter "fd" is null.
   at: _font_get_ascent (modules/text_server_adv/text_server_adv.cpp:2608)
ERROR: Parameter "fd" is null.
   at: _font_get_descent (modules/text_server_adv/text_server_adv.cpp:2640)
ERROR: Parameter "fd" is null.
   at: _font_get_supported_chars (modules/text_server_adv/text_server_adv.cpp:3500)
ERROR: Parameter "_get_font_data(p_fonts[i])" is null.
   at: _shaped_text_add_string (modules/text_server_adv/text_server_adv.cpp:4307)
ERROR: Parameter "fd" is null.
   at: _font_get_supported_chars (modules/text_server_adv/text_server_adv.cpp:3500)
ERROR: Parameter "_get_font_data(p_fonts[i])" is null.
   at: _shaped_text_add_string (modules/text_server_adv/text_server_adv.cpp:4307)
res://objects/stephanie/wth/stephanie_wth_anime_hair_color_mul.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://objects/stephanie/wth/stephanie_wth_stephanie1_body_rough.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
```

This was only shown the time it successfully finished importing.

Since I see the error messages (the `ERROR: BUG: Unreferenced static string` ones at `core/string/string_name.cpp`) making reference to shader keywords and exported properties, it might be relevant to mention I do have global shader parameters set for that project, and it's the only project for which I have those.

Now the project opens normally, but it _still_ prints the same error messages (the "ERROR BUG" at `string_name.cpp`) every time I close the editor for that project.


### Steps to reproduce

(I don't know how to reproduce. It happens for one project only.)

### Minimal reproduction project (MRP)

N/A