Repository: godot
Issue: Orphan StringNames when closing project manager or empty project
Labels: bug,topic:editor

### Tested versions

- Reproducible in 4.3.beta (5f1184e93fe1021c86520460dc0a6619bff3c1fb) and 4.3.beta1 (174 orphans)
- Partially reproducible in 4.3.dev4  and 4.3.dev5 (3 orphans)
- Partially reproducible in 4.3.dev6 (9 orphans)

### System information

Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7600M XT (RADV NAVI33) () - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 Threads)

### Issue description

When closing the project manager or the editor with `--verbose` mode, I get 174 orphan StringNames reported:

```
Orphan StringName: greaterThanEqual (static: 0, total: 1)
Orphan StringName: packSnorm4x8 (static: 0, total: 1)
Orphan StringName: textureGrad (static: 0, total: 1)
Orphan StringName: uaddCarry (static: 0, total: 1)
Orphan StringName: InputMap (static: 1, total: 3)
Orphan StringName: frexp (static: 0, total: 1)
Orphan StringName: uint (static: 0, total: 1)
Orphan StringName: bitfieldInsert (static: 0, total: 1)
Orphan StringName: GDExtensionManager (static: 1, total: 3)
Orphan StringName: packSnorm2x16 (static: 0, total: 1)
Orphan StringName: sqrt (static: 0, total: 1)
Orphan StringName: normalize (static: 0, total: 1)
Orphan StringName: notEqual (static: 0, total: 1)
Orphan StringName: usubBorrow (static: 0, total: 1)
Orphan StringName: ceil (static: 0, total: 1)
Orphan StringName: TextServerManager (static: 1, total: 4)
Orphan StringName: step (static: 0, total: 1)
Orphan StringName: dFdx (static: 0, total: 1)
Orphan StringName: dFdy (static: 0, total: 1)
Orphan StringName: asinh (static: 0, total: 1)
Orphan StringName: findLSB (static: 0, total: 1)
Orphan StringName: lessThan (static: 0, total: 1)
Orphan StringName: findMSB (static: 0, total: 1)
Orphan StringName: texelFetch (static: 0, total: 1)
Orphan StringName: log2 (static: 0, total: 1)
Orphan StringName: WorkerThreadPool (static: 1, total: 3)
Orphan StringName: ThemeDB (static: 1, total: 3)
Orphan StringName: imulExtended (static: 0, total: 1)
Orphan StringName: asin (static: 0, total: 1)
Orphan StringName: textureQueryLod (static: 0, total: 1)
Orphan StringName: Input (static: 1, total: 3)
Orphan StringName: atan (static: 0, total: 1)
Orphan StringName: smoothstep (static: 0, total: 1)
Orphan StringName: PhysicsServer3DManager (static: 1, total: 4)
Orphan StringName: cosh (static: 0, total: 1)
Orphan StringName: PhysicsServer2D (static: 1, total: 4)
Orphan StringName: PhysicsServer3D (static: 1, total: 4)
Orphan StringName: ResourceLoader (static: 1, total: 3)
Orphan StringName: texture (static: 0, total: 1)
Orphan StringName: floatBitsToInt (static: 0, total: 1)
Orphan StringName: XRServer (static: 1, total: 4)
Orphan StringName: AudioServer (static: 1, total: 4)
Orphan StringName: unpackUnorm4x8 (static: 0, total: 1)
Orphan StringName: ResourceUID (static: 1, total: 3)
Orphan StringName: faceforward (static: 0, total: 1)
Orphan StringName: tanh (static: 0, total: 1)
Orphan StringName: transpose (static: 0, total: 1)
Orphan StringName: abs (static: 0, total: 1)
Orphan StringName: all (static: 0, total: 1)
Orphan StringName: clamp (static: 0, total: 1)
Orphan StringName: any (static: 0, total: 1)
Orphan StringName: bitCount (static: 0, total: 1)
Orphan StringName: cos (static: 0, total: 1)
Orphan StringName: lessThanEqual (static: 0, total: 1)
Orphan StringName: reflect (static: 0, total: 1)
Orphan StringName: RenderingServer (static: 1, total: 4)
Orphan StringName: dot (static: 0, total: 1)
Orphan StringName: EditorFileDialog (static: 1, total: 8)
Orphan StringName: determinant (static: 0, total: 1)
Orphan StringName: exp (static: 0, total: 1)
Orphan StringName: fwidthCoarse (static: 0, total: 1)
Orphan StringName: NavigationServer2D (static: 0, total: 3)
Orphan StringName: NavigationServer3D (static: 1, total: 4)
Orphan StringName: CameraServer (static: 1, total: 4)
Orphan StringName: AudioStream (static: 0, total: 1)
Orphan StringName: textureSize (static: 0, total: 1)
Orphan StringName: fma (static: 0, total: 1)
Orphan StringName: IP (static: 0, total: 3)
Orphan StringName: OS (static: 1, total: 3)
Orphan StringName: ItemList (static: 1, total: 10)
Orphan StringName: intBitsToFloat (static: 0, total: 1)
Orphan StringName: acosh (static: 0, total: 1)
Orphan StringName: degrees (static: 0, total: 1)
Orphan StringName: EditorInterface (static: 1, total: 3)
Orphan StringName: ivec2 (static: 0, total: 1)
Orphan StringName: ivec3 (static: 0, total: 1)
Orphan StringName: ivec4 (static: 0, total: 1)
Orphan StringName: bitfieldExtract (static: 0, total: 1)
Orphan StringName: DisplayServer (static: 1, total: 4)
Orphan StringName: Marshalls (static: 1, total: 3)
Orphan StringName: vec2 (static: 0, total: 1)
Orphan StringName: vec3 (static: 0, total: 1)
Orphan StringName: vec4 (static: 0, total: 1)
Orphan StringName: exp2 (static: 0, total: 1)
Orphan StringName: dFdxCoarse (static: 0, total: 1)
Orphan StringName: int (static: 0, total: 1)
Orphan StringName: mat2 (static: 0, total: 1)
Orphan StringName: mat3 (static: 0, total: 1)
Orphan StringName: mat4 (static: 0, total: 1)
Orphan StringName: unpackHalf2x16 (static: 0, total: 1)
Orphan StringName: TabBar (static: 1, total: 10)
Orphan StringName: textureProjLod (static: 0, total: 1)
Orphan StringName: inversesqrt (static: 0, total: 1)
Orphan StringName: log (static: 0, total: 1)
Orphan StringName: Geometry2D (static: 1, total: 3)
Orphan StringName: Geometry3D (static: 1, total: 3)
Orphan StringName: textureGather (static: 0, total: 1)
Orphan StringName: max (static: 0, total: 1)
Orphan StringName: atanh (static: 0, total: 1)
Orphan StringName: min (static: 0, total: 1)
Orphan StringName: mix (static: 0, total: 1)
Orphan StringName: mod (static: 0, total: 1)
Orphan StringName: FileDialog (static: 1, total: 8)
Orphan StringName: not (static: 0, total: 1)
Orphan StringName: umulExtended (static: 0, total: 1)
Orphan StringName: AudioStreamRandomizer (static: 0, total: 5)
Orphan StringName: dFdxFine (static: 0, total: 1)
Orphan StringName: MenuButton (static: 1, total: 2)
Orphan StringName: trunc (static: 0, total: 1)
Orphan StringName: pow (static: 0, total: 1)
Orphan StringName: inverse (static: 0, total: 1)
Orphan StringName: equal (static: 0, total: 1)
Orphan StringName: unpackSnorm4x8 (static: 0, total: 1)
Orphan StringName: uvec2 (static: 0, total: 1)
Orphan StringName: uvec3 (static: 0, total: 1)
Orphan StringName: uvec4 (static: 0, total: 1)
Orphan StringName: refract (static: 0, total: 1)
Orphan StringName: NativeMenu (static: 1, total: 4)
Orphan StringName: sin (static: 0, total: 1)
Orphan StringName: packUnorm4x8 (static: 0, total: 1)
Orphan StringName: OptionButton (static: 1, total: 12)
Orphan StringName: tan (static: 0, total: 1)
Orphan StringName: ResourceSaver (static: 1, total: 3)
Orphan StringName: dFdyFine (static: 0, total: 1)
Orphan StringName: bool (static: 0, total: 1)
Orphan StringName: textureProjGrad (static: 0, total: 1)
Orphan StringName: unpackUnorm2x16 (static: 0, total: 1)
Orphan StringName: textureLod (static: 0, total: 1)
Orphan StringName: modf (static: 0, total: 1)
Orphan StringName: dFdyCoarse (static: 0, total: 1)
Orphan StringName: ProjectSettings (static: 1, total: 3)
Orphan StringName: floatBitsToUint (static: 0, total: 1)
Orphan StringName: Performance (static: 1, total: 3)
Orphan StringName: outerProduct (static: 0, total: 1)
Orphan StringName: Engine (static: 1, total: 3)
Orphan StringName: round (static: 0, total: 1)
Orphan StringName: distance (static: 0, total: 1)
Orphan StringName: PhysicsServer2DManager (static: 1, total: 4)
Orphan StringName: textureQueryLevels (static: 0, total: 1)
Orphan StringName: roundEven (static: 0, total: 1)
Orphan StringName: bvec2 (static: 0, total: 1)
Orphan StringName: bvec3 (static: 0, total: 1)
Orphan StringName: bvec4 (static: 0, total: 1)
Orphan StringName: fwidthFine (static: 0, total: 1)
Orphan StringName: unpackSnorm2x16 (static: 0, total: 1)
Orphan StringName: JavaClassWrapper (static: 1, total: 3)
Orphan StringName: uintBitsToFloat (static: 0, total: 1)
Orphan StringName: float (static: 0, total: 1)
Orphan StringName: radians (static: 0, total: 1)
Orphan StringName: JavaScriptBridge (static: 1, total: 3)
Orphan StringName: floor (static: 0, total: 1)
Orphan StringName: packHalf2x16 (static: 0, total: 1)
Orphan StringName: greaterThan (static: 0, total: 1)
Orphan StringName: cross (static: 0, total: 1)
Orphan StringName: fwidth (static: 0, total: 1)
Orphan StringName: bitfieldReverse (static: 0, total: 1)
Orphan StringName: Texture2D (static: 0, total: 5)
Orphan StringName: isinf (static: 0, total: 1)
Orphan StringName: ldexp (static: 0, total: 1)
Orphan StringName: NavigationMeshGenerator (static: 1, total: 3)
Orphan StringName: length (static: 0, total: 1)
Orphan StringName: sign (static: 0, total: 1)
Orphan StringName: sinh (static: 0, total: 1)
Orphan StringName: Time (static: 1, total: 3)
Orphan StringName: packUnorm2x16 (static: 0, total: 1)
Orphan StringName: matrixCompMult (static: 0, total: 1)
Orphan StringName: fract (static: 0, total: 1)
Orphan StringName: ClassDB (static: 1, total: 3)
Orphan StringName: textureProj (static: 0, total: 1)
Orphan StringName: acos (static: 0, total: 1)
Orphan StringName: EngineDebugger (static: 1, total: 3)
Orphan StringName: TranslationServer (static: 1, total: 3)
Orphan StringName: PopupMenu (static: 1, total: 16)
Orphan StringName: isnan (static: 0, total: 1)
StringName: 174 unclaimed string names at exit.
```

Most of this seems to have been introduced between dev 6 and beta 1.

In previous snapshots, there's a subset of those that were reported:

In 4.3.dev6:
```
Orphan StringName: EditorFileDialog (static: 1, total: 7)
Orphan StringName: AudioStream (static: 0, total: 1)
Orphan StringName: ItemList (static: 1, total: 9)
Orphan StringName: TabBar (static: 1, total: 9)
Orphan StringName: FileDialog (static: 1, total: 7)
Orphan StringName: AudioStreamRandomizer (static: 0, total: 4)
Orphan StringName: OptionButton (static: 1, total: 11)
Orphan StringName: Texture2D (static: 0, total: 5)
Orphan StringName: PopupMenu (static: 1, total: 15)
StringName: 9 unclaimed string names at exit.
```

And in 4.3.dev4 / 4.3.dev5:
```
Orphan StringName: ItemList (static: 1, total: 9)
Orphan StringName: Texture2D (static: 0, total: 2)
Orphan StringName: PopupMenu (static: 1, total: 15)
StringName: 3 unclaimed string names at exit.
```

### Steps to reproduce

- `godot -v`, close it and check terminal

### Minimal reproduction project (MRP)

n/a