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 when using kendoUploadDropZone or kendoFileSelectDropZone directives #4295

Closed
RyanFM opened this issue May 8, 2024 · 1 comment

Comments

@RyanFM
Copy link

RyanFM commented May 8, 2024

Describe the bug
Using the UploadDropZoneDirective in the Kendo FileSelect or Upload components causes a memory leak, as seen when repeatedly initializing and destroying the component such as in an ngIf.

Example with the directive, after showing and hiding the component 10 times

Screenshot 2024-05-08 134406 Screenshot 2024-05-08 134335

Example without the directive

Screenshot 2024-05-08 141341 Screenshot 2024-05-08 134142

To Reproduce
Using this example:
https://stackblitz.com/edit/angular-kg16zc-5gczvx?file=src%2Fapp%2Fapp.component.ts

  1. Click the "Click here" text repeatedly to show and hide the file select component.
  2. Open DevTools (Chrome or Edge) and go to the memory tab.
  3. Select the JavaScript VM instance that looks like the highlighted one here:
Screenshot 2024-05-08 134036
  1. Take a heap snapshot.
  2. In summary view, filter for "dropzone" or "component" to see that FileSelectComponents, UploadDropZoneDirectives and others are present multiple times, for each time you show and hide it.
@yanmariomenev
Copy link
Contributor

Duplicate of - #4213

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

No branches or pull requests

2 participants