Self View breaks, spamming errors

The “Self View” UI was recently updated with a new look, however sometimes it can break and spam thousands of error messages.

When this bug happens, your current avatar will no longer appear in Self View, and an internal CoreScript will output an error every frame.

image

image


Repro

I’m not entirely sure how this bug happens as I’ve encountered it in a few different experiences upon the character respawning, but I’ve managed to isolate one example, taking some code from a different place of mine.

Self View bug repro.rbxl (60.1 KB)

This is a place that reloads your current R15 avatar as an R6 avatar when you click a button. Doing this seems to cause the bug 100% of the time if Workspace.SignalBehavior is not set to Deferred. Make sure your current avatar type is set to R15.

When you click the button, the following happens:

  1. Self View is opened.
  2. Wait 1 second.
  3. Self View is closed.
  4. Reload character as R6.
  5. Self View breaks.

If Self View was never opened, or if it is not closed before switching to R6, then the bug won’t happen.


Demonstration

To fix Self View once the issue occurs, you just have to re-open the UI, close it, and then open it again.

4 Likes

If anyone has this issue in their own code, it’s because you’re calling :LoadAnimation on an Animator that is not a descendant of game or was Destroyed.

1 Like