Skip to main content

Search and Top Navigation

#7666 closed bug (duplicate)

Opened August 25, 2011 03:16PM UTC

Closed January 31, 2012 08:33PM UTC

Last modified January 31, 2012 08:33PM UTC

Memory leakage with jQuery 1.6 and jQuery 1.8.16 on IE 7?

Reported by: liminzhang Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.core Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:
Description

Hi there,

I tested two blank pages on IE7

The first page

<head>

<script src="/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> <script src="/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>

</head> <body> </body>

The second page

<head>

<script src="/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>

</head> <body> </body>

After each refreshing with F5, IExplore used 2 or 3 more megabytes memory with the first page. However it did not happen on the second page.

Does jQuery 1.6.2 bring memory leakage for jQuery UI library? It also happens on jQuery 1.5.1, 1.6.1.

Thanks

Limin

Attachments (0)
Change History (8)

Changed September 07, 2011 02:27PM UTC by peter.nystrom comment:1

_comment0: After doing some tests, it seems that the memory leak started in jQuery UI 1.8.13. Could the fix for #7257 has anything to do with it? It was the only change to ui.core in this release, and is about caching attribute values instead of looking them up each time. \ \ /Peter \ \ Replying to [ticket:7666 liminzhang]: \ > Hi there, \ > \ > I tested two blank pages on IE7 \ > \ > The first page \ > \ > <head> \ > \ > <script src="/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> <script src="/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script> \ > \ > </head> <body> </body> \ > \ > The second page \ > \ > <head> \ > \ > <script src="/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script> \ > \ > </head> <body> </body> \ > \ > After each refreshing with F5, IExplore used 2 or 3 more megabytes memory with the first page. However it did not happen on the second page. \ > \ > Does jQuery 1.6.2 bring memory leakage for jQuery UI library? It also happens on jQuery 1.5.1, 1.6.1. \ > \ > Thanks \ > \ > Limin \ 1315405909579675
_comment1: After doing some tests, it seems that the memory leak started in jQuery UI 1.8.13. Could the fix for #7257 have anything to do with it? It was the only change to ui.core in this release, and is about caching attribute values instead of looking them up each time. \ \ /Peter \ \ Replying to [ticket:7666 liminzhang]: \ > Hi there, \ > \ > I tested two blank pages on IE7 \ > \ > The first page \ > \ > <head> \ > \ > <script src="/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> <script src="/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script> \ > \ > </head> <body> </body> \ > \ > The second page \ > \ > <head> \ > \ > <script src="/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script> \ > \ > </head> <body> </body> \ > \ > After each refreshing with F5, IExplore used 2 or 3 more megabytes memory with the first page. However it did not happen on the second page. \ > \ > Does jQuery 1.6.2 bring memory leakage for jQuery UI library? It also happens on jQuery 1.5.1, 1.6.1. \ > \ > Thanks \ > \ > Limin \ 1315555015073508

After doing some tests, it seems that the memory leak started in jQuery UI 1.8.13. By reverting the changes in #7256, the memory leak disappears. The tests were done with jQuery 1.6.2. Can someone verify?

/Peter

Changed October 07, 2011 12:35PM UTC by gornale comment:2

_comment0: \ Hello, sorry for bad english. \ \ I am in the same configuration ui 1.8.16 and Jquery 1.6.2 . And have the same huge memory leak . \ (I try with 1.8.x too) \ \ 4 MO !!!! at each refresh, with just adding reference to Jquery and UI script on my page!!!! i do nothing else!!! \ \ \ Jquery UI is so wonderful ... \ \ \ \ No idea why, but '''IF YOU WANT IT TO WORK follow these steps'''. \ \ \ Download (with the custom download ) only the package that you need (I download only Jdialog) and it works ! \ no memory leak.! \ \ I test a little and '''the memory leak seems to appear when i have integrated the DatePicker''' (even if i don't use it! just refreshed my page). \ \ \ \ Now, i can use the jDialog (seem to be ok for the rest but don't download the datePicker). I will try futher later to isolate the datePicker. \ \ I hope that a developper will read my post to kill this ugly bug. \ \ Bye \ \ 1317991074856563
_comment1: \ Hello, sorry for bad english. \ \ I am in the same configuration ui 1.8.16 , Jquery 1.6.2 and IE7 . And have the same huge memory leak . \ (I try with 1.8.x too) \ \ 4 MO !!!! at each refresh, with just adding reference to Jquery and UI script on my page!!!! i do nothing else!!! \ \ \ Jquery UI is so wonderful ... \ \ \ \ No idea why, but '''IF YOU WANT IT TO WORK follow these steps'''. \ \ \ Download (with the custom download ) only the package that you need (I download only Jdialog) and it works ! \ no memory leak.! \ \ I test a little and '''the memory leak seems to appear when i have integrated the DatePicker''' (even if i don't use it! just refreshed my page). \ \ \ \ Now, i can use the jDialog (seem to be ok for the rest but don't download the datePicker). I will try futher later to isolate the datePicker. \ \ I hope that a developper will read my post to kill this ugly bug. \ \ Bye \ \ 1317991139605034
_comment2: \ Hello, sorry for bad english. \ \ I am in the same configuration ui 1.8.16 , Jquery 1.6.2 and IE7 . And have the same huge memory leak . \ (I try with 1.8.x too) \ \ 4 MO !!!! at each refresh, with just adding reference to Jquery and UI script on my page!!!! i do nothing else!!! \ \ \ Jquery UI is so wonderful ... \ \ \ \ No idea why, but '''IF YOU WANT IT TO WORK follow these steps'''. \ \ \ Download (with the custom download ) only the package that you need (I download only Dialog) and it works ! \ no memory leak.! \ \ I test a little and '''the memory leak seems to appear when i have integrated the DatePicker''' (even if i don't use it! just refreshed my page). \ \ \ \ Now, i can use the Dialog (seem to be ok for the rest but don't download the datePicker). I will try futher later to isolate the datePicker. \ \ I hope that a developper will read my post to kill this ugly bug. \ \ Bye \ \ 1317991692243938

Hello, sorry for bad english.

I am in the same configuration ui 1.8.16 , Jquery 1.6.2 and IE7 . And have the same huge memory leak .

(I try with 1.8.x too)

4 MO !!!! at each refresh, with just adding reference to Jquery and UI script on my page!!!! i do nothing else!!!

Jquery UI is so wonderful ...

No idea why, but IF YOU WANT IT TO WORK follow these steps.

Download (with the custom download ) only the package that you need (I download only Dialog) and it works !

no memory leak.!

I test a little and the memory leak seems to appear when i have integrated the DatePicker (even if i don't use it! just refreshed my page).

Now, i can use the Dialog (seems to be ok for the rest but don't download the datePicker). I will try futher later to isolate the datePicker.

I hope that a developper will read my post to kill this ugly bug.

Bye

Changed October 11, 2011 04:54PM UTC by minni comment:3

_comment0: I can confirm that the memory leak in IE7 is gone if jquery-ui lib is used without datepicker. \ (Versions: jquery-ui 1.8.16, jquery 1.6.3) \ \ Thanks Limin for your report, that helped me a lot! :) \ \ \ Yours, Minni1318352099045323

I can confirm that the memory leak in IE7 is gone if jquery-ui lib is used without datepicker.

(Versions: jquery-ui 1.8.16, jquery 1.6.3)

Thanks Limin for your report, that helped me a lot! :)

And many thanks to gornale for the fix!

Yours, Minni

Changed October 18, 2011 02:39PM UTC by magonye comment:4

Hi,

I have the same problem. IE7 with memory leaks, after each refresh with F5.

The solution of excluding the datepicker from the UI is not working for me.

I've just test with jquery 1.6.1, 1.6.3 and 1.6.4 and with jquery-UI 1.8.13 & jquery-UI 1.8.16.

In my tests, the only way to avoid the memory leak is do not to include jquery-UI in the page.

Anyone can help?

Thanks.

Mike.

Changed January 12, 2012 01:13AM UTC by zack9433 comment:5

_comment0: Hello, \ \ I test this issue using jQuery 1.7.1 and jQuery-UI 1.8.17. The DatePicker still causes memory leak about 2MB in my situation. Anyone have idea to deal with this issue? thx. \ \ 1326330853367472

Hello,

I test this issue using jQuery 1.7.1 and jQuery-UI 1.8.17. The DatePicker still causes memory leak about 2MB in my situation.

Anyone have idea to deal with this issue? thx.

Zack

Changed January 26, 2012 08:17AM UTC by goran comment:6

Hello!

I have done a test with jQuery 1.7.1 and jQuery-UI 1.8.17.

From jQuery-UI 1.8.17 I have reverted the change #7256 that Peter talks about in the first comment above.

In this setup there seems to be NO memory leak at all in IE7.

The change in #7256 is to bind hover events (mouseout and mouseover) with 'delegate' instead of 'bind' on the Datepicker component. Also a global variable 'instActive' is added which is used in the 'delegate'.

Can the change from 'bind' to 'delegate' be the reason for the memory leak or can the global variable cause the trouble in some way?

A Penny For Your Thoughts.

/Göran :-)

Changed January 31, 2012 08:33PM UTC by scottgonzalez comment:7

resolution: → duplicate
status: newclosed

Changed January 31, 2012 08:33PM UTC by scottgonzalez comment:8

Duplicate of #4188.