ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Util.ExplorerNodeChildrenMutable:320: Tree descendant count went below 1

I am getting this stack error from the game Engine when I use the command line to move objects in a folder in the workspace. I guess it’s caused by the amount of descendants in the folder becoming 0. But it springs this error and causes the folder to disapear in the workspace visually but not actually.

04:44:07.382  Stack Begin  -  Studio
04:44:07.382  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Util.ExplorerNodeChildrenMutable', Line 320 - function patchNodeDescendantCount  -  Studio
04:44:07.383  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.createSession.SessionChildren', Line 14 - function addDescendantCount  -  Studio
04:44:07.383  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.createSession.SessionChildren', Line 53 - function removeParentNoDatumUpdate  -  Studio
04:44:07.384  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.createSession.SessionChildren', Line 114 - function remove  -  Studio
04:44:07.384  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.createSession.RootStateUpdating', Line 40 - function instanceReplaced  -  Studio
04:44:07.384  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.createSession.createSessionDataModelUpdating', Line 28 - function instanceReplaced  -  Studio
04:44:07.385  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.Explorer.Explorer.Networking.NetworkedRPCInterfaces', Line 143  -  Studio
04:44:07.385  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.GoodSignal.GoodSignal', Line 38 - function acquireRunnerThreadAndCallEventHandler  -  Studio
04:44:07.385  Script 'ExplorerPlugin.ExplorerPlugin.Packages._Index.GoodSignal.GoodSignal', Line 53 - function runEventHandlerInFreeThread  -  Studio
04:44:07.385  Stack End  -  Studio 

This is the nature of the bug, the Boids folder is missing and there is a large void where it was.

1 Like

Thanks for the report! Do you happen to still have the command you used to move the objects? And do you recall if the Boids folder was collapsed or expanded when you moved them?

The command was

for i,v in workspace.Boids:GetChildren() do v.Parent=v.SourceBed.Value end 

I used a previous command to configure the SourceBed.Value to be an object value referencing the directory that each model was originally in.
Also, I’m sure the boids folder was expanded. This bug is fairly new and did not occur with the last generation of studio, and I’ve seen it happen multiple times when using the command line to move a bunch of stuff with simpler versions of that command, in the context of moving them to the workspace and moving them into a different library in server storage.

The reason I use the command line to move objects is because it’s more performant and easier than dragging them and in the context of this one it made configuring and testing a type of interaction object en-masse much simpler.

1 Like

Thanks for the details, this is really helpful. We’ll look into getting this fixed

1 Like