Skip to main content

Bug Tracker

Side navigation

#9462 closed bug (duplicate)

Opened May 30, 2011 12:55PM UTC

Closed May 30, 2011 03:36PM UTC

Last modified July 05, 2011 02:07PM UTC

Frames Memory Leak with jQuery

Reported by: alexgalp Owned by:
Priority: low Milestone: 1.next
Component: event Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hi,

I got a simple test case which includes a main html page with a button that opens a modal page with 10 frames that imports jQuery.

Each time I click the button, and than close the modal, the memory won't decrease back to it's normal (about 15 MB each click).

i've tried all of the jQuery versions and none of them seems to solve the problem.

I'm working with IE 6, and i heard that it has some serious garbage collect problems, so i tried to build one of my own inside the jQuery that cleans the variables, and it seems to minimize the problem, but sometimes can cause wierd bugs.

There must be a solution for this problem..

I've seen some tickets similiar to this before but no effective solution was suggested, although the tickets were closed.

Thanks for your help.

Attachments (0)
Change History (8)

Changed May 30, 2011 03:36PM UTC by rwaldron comment:1

component: unfiledevent
priority: undecidedlow
resolution: → duplicate
status: newclosed

Changed May 30, 2011 03:36PM UTC by rwaldron comment:2

Duplicate of #4693.

Changed May 30, 2011 03:53PM UTC by alexgalp comment:3

it's not duplicate because no real solution has been suggested!

Changed May 30, 2011 04:15PM UTC by alexgalp comment:4

_comment0: So you just closed both tickets.. but there is still a bug.. \ you can't just ignore memory leak..1306772147375484

So you just closed both tickets.. but there is still a bug..

you can't just ignore memory leak.. that's the exact reason i opened this ticket..

Changed May 30, 2011 07:25PM UTC by rwaldron comment:5

It's a duplicate because it's the same issue. Can you test using:

http://code.jquery.com/jquery-git.js

This is a build of the _latest_ jQuery code

Changed May 31, 2011 11:52AM UTC by alexgalp comment:6

ok, so i tested the git version and the bug still seems to be there..

i really need a solution for this.. is there anything you can do to help?

Changed June 01, 2011 10:51AM UTC by alexgalp comment:7

we tried to fix this bug, because this issue is really annoying. what we tried to do is:

1. add event 'onbeforeunload' to the window, that removes every frame before unloading, 2. add cleanup function to jquery that assigns null to most of its attributes + functions + local variables in onunload event, 3. minimize jquery-ui.js, especially removing 'datepicker' whick leaks in ie6.

it seems that this solved our memory leak (though we do not fully use jquery yet) and minimizes memory usage. We will surely know only after final checks.

Changed July 05, 2011 02:07PM UTC by Booab comment:8

Replying to [comment:7 alexgalp]:

we tried to fix this bug, because this issue is really annoying. what we tried to do is: 1. add event 'onbeforeunload' to the window, that removes every frame before unloading, 2. add cleanup function to jquery that assigns null to most of its attributes + functions + local variables in onunload event, 3. minimize jquery-ui.js, especially removing 'datepicker' whick leaks in ie6. it seems that this solved our memory leak (though we do not fully use jquery yet) and minimizes memory usage. We will surely know only after final checks.

Is it possible to provide the code for this? We are also facing the same issue with IE6 and have not found a decent solution although alot have been suggested.

Thanks a lot