Skip to content

Transition with all the data remains in heap - memory leak? #3603

Closed
@philipplang

Description

@philipplang

This is a (check one box):

  • Bug Report
  • Feature Request
  • General Query

My version of UI-Router is: (type version)
1.0.12, but the problem also exists in version 1.0.5

Bug Report

Current Behavior:

When switching between states, the JS-Heap increase and get not garbage collected. See the following screenshot.
uirouter-leak1

For the example above i used the uirouter example in plunker.

As i analyzed the heap in detail i saw that the number of Transition-Objects increase with time.

Expected Behavior:

The JS-Heap get garbage collected after switching back to previous state.

Link to Plunker or stackblitz that reproduces the issue:

You can reproduce the problem with the uirouter example app in plunker: example

Just switch multiple times between the state "hello" and "about".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions