AvatarCompatibilityPreviewer causes Studio ANR crash when selecting large models

The built-in AvatarCompatibilityPreviewer plugin causes Studio to freeze and crash (ANR - Application Not Responding) when selecitng models with large descendant hierarchies. The plugin’s hashCharacter function recursively serializes the entire instance tree without yielding, blocking the main thread until the ANR watchdog terminates studio.

Steps to reproduce

  1. Open a place file containing models with large/complex descendant trees with thousands+ instances. In our example, a model with AnimSaves & InitialPoses objects inside of them, which both have thousands of Pose and CFrameValue objects, containing huge amounts of data.
  2. select one or more of these models in the explorer or viewport
  3. Studio freezes and eventually crashes with an ANR eventually

Note: it is our animator who has been experiencing these crashes; I am merely a programmer on the team, who figured they should report this crash as a bug. I am unsure as to how AvatarCompatibilityPreviewer is opened or triggered to run.

Technical details

From the crash dump analysis, the hang occurs in this chain call:

useSelectedAutoSetupTarget (line 254)
  → hashCharacter (line 768)
    → serialize → serializeInstanceRaw → serializeChildren (recursive, depth 25)
      → JSONEncode on massive table
        → string.gsub on entire JSON
          → SHA256 hash

Crash dump fields:

  • RbxCrashReason: RBXCRASH-ANRDetected
  • ANRDetected: True
  • LuaHangScriptName: nil.AvatarCompatibilityPreviewer.AvatarCompatibilityPreviewer.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default
    (I had to type that out by hand, apologies if theres a typo)

System information:

  • OS: Windows
  • Studio Version: 0.700.0.700935
  • Date: 2025-11-27

Attachments:

  • Crash dump file (.dmp) attached in private content

Expected behavior

Selecting large models should not freeze or crash Studio. The plugin should either yield during expensive operations or skip processing selections that exceed a reasonable size threshold.

A private message is associated with this bug report

Thanks for your report and sorry for the delay! We’ve made a fix to this bug. Let us know if you are having further issues.