New Explorer: Collapsing a parent sometimes errors out "Tree descendant count went below 1" in the log

I was searching for is:MeshPart in the explorer’s search, selecting unused instances and using Ctrl + X to cut them, then I’d stop the search and paste the parts inside a storage folder. While searching, I collapse the instances that I’ve already checked to skip through them quickly while scrolling. One time when I collapsed one of the instances, the error was logged in the output, and the explorer no longer displayed any of the instance’s parent’s children.

Collapsing workspace then expanding it again will show blank space rather than show its descendants after that error happened, but this bug seems to not affect the other services / storages and they continue to show their descendants normally


Clearing the search fixes the display issue though, workspace shows its descendants as normal afterwards. Searching again also doesn’t cause an issue, though I still need to test more on how often this happens

I also found someone else having the same issue; Next Gen Explorer Beta: Performance and Quality Improvements - #114 by Dpelayo5907

Here’s the stacktrace

  14:45:17.372  ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Util.ExplorerNodeChildrenMutable:320: Tree descendant count went below 1  -  Standalone
  14:45:17.373  Stack Begin  -  Studio
  14:45:17.374  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Util.ExplorerNodeChildrenMutable', Line 320 - function patchNodeDescendantCount  -  Studio
  14:45:17.375  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.createSession.SessionChildren', Line 14 - function addDescendantCount  -  Studio
  14:45:17.376  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.createSession.SessionChildren', Line 106 - function replaceChildren  -  Studio
  14:45:17.377  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.createSession.Expanding', Line 113 - function unexpand  -  Studio
  14:45:17.377  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.createSession', Line 141 - function unexpand  -  Studio
  14:45:17.388  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Components.ExplorerNodeRow', Line 96  -  Studio
  14:45:17.394  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.ReactRoblox.ReactRoblox.client.roblox.SingleEventManager', Line 112  -  Studio
  14:45:17.394  Stack End  -  Studio

Expected behavior

I expect the explorer to collapse and expand normally while I’m not adding or removing instances during the collapse/expand