LuauHeapView, Engine Feature UnparentedInstances doesn't show pinned Instances who's top-level ancestor is parented to nil

Description

If an instance is pinned by a script and parented to nil, it should normally show up in the LuauHeap inside the F9 console. at “Unparented Instances”.

However, let’s say all these “Frames” would be parented to a Folder. If I’d parent the Folder to nil, these pinned Frame Instances do not show up under the “Unparented Instances”, even though their top-level ancestor is parented to nil.

So, currently “Unparented Instances” only shows Instances that are directly parented to nil, instead of showing Instances that have their top-level ancestor parented to nil.

Because of this, it destroys the purpose of this debug window. As it is meant to help and show you things that may not get garbage collected because they’re still referenced to somewhere but can’t be seen.

 

Along with that, please consider the creator-docs PR as well, about AncestryChanged, and rename the placeholder callback arguments, for clarification.

Re-production Steps

See the video, re-production place file is attached as well.

You just have to run the game and wait, and then delete the “TestPart” using the Explorer.

Expected Result

I expect Instances which’s World Root is nil to show up in there as well, if it’s other condition to appear in there are met.

Actual Result

Nested Instances that have their ancestor parented to nil don’t show up in there.

  • TestPart
    • Parented Instances

If “TestPart” gets parented to nil, if a script has these “Parented Instances” pinned, they’d not show up in the F9 LuauHeap window at “Unparented Instances”.

A private message is associated with this bug report

Hi HealthyKarl,
We have recently shipped a fix that should resolve this discrepancy. Please take a look and let us know what you think.
Thanks,
IcyTides

Seems good, thanks a lot!

 

Never saw GameSettings in there before.

Do you believe it would be possible for it to show what it is parented right under, if it isn’t nil directly?

Had this as a side though, now that it can show everything that is under nil.

Do you believe it would be possible for it to show what it is parented right under, if it isn’t nil directly?

It’s likely possible to get the name of the instance at least. I would prefer that the extra work be under a separate feature request post and mark this post as resolved however.