New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 693252 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Heap snapshot shows cyclic retaining path

Project Member Reported by u...@chromium.org, Feb 16 2017

Issue description

The attached screenshot shows a retaining path where the same node appears twice.
This looks like a bug.

Steps to reproduce:
1. Take snapshot of an webpage (e.g. attached simple.html).
2. Select "(system) -> system / NativeContext @xxxx" node.
3. Look at its first retainer.

Expected: the first retainer is the global object (Window) since its depth is 1 and the depth of the native context is 2.

Actual: the first retainer is the context of ThrowTypeError (with depth "-"). Expanding the retainer tree shows a cycle.

 
retaining-path.png
93.9 KB View Download
simple.html
70 bytes View Download

Comment 1 by u...@chromium.org, Feb 16 2017

Summary: Heap snapshot shows cyclic retaining path (was: Heap snapshot shows cycling retaining path)

Comment 2 by u...@chromium.org, Feb 16 2017

Cc: kozyatinskiy@chromium.org alph@chromium.org

Comment 3 by l...@chromium.org, Feb 17 2017

Cc: -alph@chromium.org
Owner: alph@chromium.org
alph@ could you please take a look?  Is this intended behavior?

Comment 4 by alph@chromium.org, Feb 22 2017

Status: WontFix (was: Untriaged)
This is an intended behavior. It stops at the node which is already present in the path. If the node was omitted you couldn't tell why the path breaks at this point.

Comment 5 by u...@chromium.org, Feb 22 2017

If the node is a root, then I think the expected behavior is to not output any retaining path since there is no retainer.

Otherwise, it can be confused as node retaining itself.

Comment 6 by alph@chromium.org, Feb 23 2017

This view shows all the nodes that link to the node you selected in the top view. This allows you to track all the paths if you need to.

Sign in to add a comment