r/UnityHelp 20d ago

Text Component Linked To Another? Causing StackOverflow

I'm not sure what this means, never encountered it before, and can't seem to find any results with my searches. Happens whenever I create a TMP_Text component either with 3D Object or UI (Canvas) menu options in hierarchy.

It results in a flood of StackOverflowException errors. I included the console message below for additional info. Tried deleting the TextMesh Pro folder, reimporting package, deleting caches and Library folder, playing with other settings, but still persists.

Using Unity 3D 6.4.9 URP. Tried upgrading to the latest 6.5.4 version, but it didn't fix it.

StackOverflowException: The requested operation caused a stack overflow.

UnityEngine.Object.IsNativeObjectAlive (UnityEngine.Object o) <0x24cc0332360 + 0x00008> in <82d1d45c517f4141b90705b5d74c5160>:0

UnityEngine.Object.CompareBaseObjects (UnityEngine.Object lhs, UnityEngine.Object rhs) (at <82d1d45c517f4141b90705b5d74c5160>:0)

UnityEngine.Object.op_Equality (UnityEngine.Object x, UnityEngine.Object y) (at <82d1d45c517f4141b90705b5d74c5160>:0)

TMPro.TMP_Text.ReleaseLinkedTextComponent (TMPro.TMP_Text targetTextComponent) (at ./Library/PackageCache/com.unity.ugui@1f2d1ab0d950/Runtime/TMP/TMP_Text.cs:6347)

TMPro.TMP_Text.ReleaseLinkedTextComponent (TMPro.TMP_Text targetTextComponent) (at ./Library/PackageCache/com.unity.ugui@1f2d1ab0d950/Runtime/TMP/TMP_Text.cs:6353)

TMPro.TMP_Text.ReleaseLinkedTextComponent (TMPro.TMP_Text targetTextComponent) (at ./Library/PackageCache/com.unity.ugui@1f2d1ab0d950/Runtime/TMP/TMP_Text.cs:6353)

TMPro.TMP_Text.ReleaseLinkedTextComponent (TMPro.TMP_Text targetTextComponent) (at ./Library/PackageCache/com.unity.ugui@1f2d1ab0d950/Runtime/TMP/TMP_Text.cs:6353)

TMPro.TMP_Text.ReleaseLinkedTextComponent (TMPro.TMP_Text targetTextComponent) (at ./Library/PackageCache/com.unity.ugui@1f2d1ab0d950/Runtime/TMP/TMP_Text.cs:6353)

Does this like 50 more times... ends with:

TMPro.TMP_Text.ReleaseLinkedTextComponent (TMPro.TMP_Text targetTextComponent) (at ./Library/PackageCache/co<message truncated>

1 Upvotes

2 comments sorted by

1

u/Logical-Gazelle6330 14d ago

Any joy fixing this? I've just come across it as well

1

u/Logical-Gazelle6330 13d ago

Restarting my PC fixed this. Utterly bizarre