Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Leaking memory using jQuery #6782

Closed
bukharin opened this issue Mar 21, 2014 · 4 comments
Closed

Leaking memory using jQuery #6782

bukharin opened this issue Mar 21, 2014 · 4 comments

Comments

@bukharin
Copy link

I've found a memory leak in my application when jQuery is used. I don't use jquery directly but I need this reference on some pages (using jquery plugins).

When angular.js uses jQuery detached node tree grows up:

profile

profile_2

When I detach jQuery memory leaks go away.

version: 1.3-beta-2

@lgalfaso lgalfaso self-assigned this Mar 21, 2014
@lgalfaso
Copy link
Contributor

A jsfiddle would be highly welcome

@lgalfaso lgalfaso removed their assignment Mar 21, 2014
@btford
Copy link
Contributor

btford commented Mar 25, 2014

@bukharin it would also be good to know if this behavior exists in earlier versions of Angular, or was a regression introduced in 1.3.0-beta.2.

@bukharin
Copy link
Author

Sorry, I can't reproduce the problem at jsFiddle, because I can't understand the reason of that.
Now we solve this problem by referencing jQuery after angular. I try to reference angular 1.2.7 - problem still exists.

@jeffbcross
Copy link
Contributor

Sorry @bukharin, I ran some quick tests with and without jQuery, and didn't see any concerning results in the snapshot. In order to be able to reproduce and resolve this issue, I need you to provide a reduction in a jsfiddle or plunker. Otherwise we can't identify the cause of the bug (your application code, jQuery, or Angular). Closing this issue, but feel free to reopen if you have a reduction.

Note, there are some unresolved memory issues in V8 that have been discussed in other issues, like #2646 and #6856. Perhaps this is related.

@jeffbcross jeffbcross removed their assignment Apr 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants