Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak - Browser hangs #311

Open
1 task
prashantchavan85 opened this issue Feb 16, 2022 · 1 comment
Open
1 task

Memory leak - Browser hangs #311

prashantchavan85 opened this issue Feb 16, 2022 · 1 comment

Comments

@prashantchavan85
Copy link

Describe the bug
which template:

  • [ X] MaterialDesignFrameworkModule — Material Design
  • [ X] Bootstrap3FrameworkModule — Bootstrap 3
  • [ X] Bootstrap4FrameworkModule — Bootstrap 4
  • [ X] NoFrameworkModule — plain HTML
  • Other (please specify below)

A clear and concise description of what the bug is.

If you open the application in multiple tabs (opened for different environment for testing) and keep working on it for long time without closing your browser eventually it page hangs and have to close all the browser window and relaunch.

Looks like this component accumulates more and more memory on every refresh.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://hamidihamza.com/ajsf/
  2. Select any example and leave the default settings as it is.
  3. Open chrome dev tool and from settings > more tools > performance monitor
  4. Check initial count of DOM Nodes, JS Event Listeners, Documents
  5. Click refresh on the browser and notice that each time DOM Nodes and JS Event Listeners are increasing.

Expected behavior

Expected that DOM Nodes and JS Event listeners should not accumulate after every refresh and avoid memory leak and browser hangs.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: [windows, iOS, any]
  • Browser [chrome, edge, any]
  • Version [98, any]

Log output covering before error and any error statements

Insert log hereCopy

Additional context

Detailed Description

Context

Possible Implementation

@prashantchavan85 prashantchavan85 changed the title DOM nodes increasing after every refresh Memory leak - Browser hangs Feb 16, 2022
@Thorski
Copy link

Thorski commented Feb 16, 2022

Try closing devtools and reopening it.
Devtools prevents or at least inhibits some garbage collection I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants