google-code-export / svgweb

Automatically exported from code.google.com/p/svgweb
Other
1 stars 1 forks source link

IE memory leaks & Visual C++ Exception Thrown #418

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I have loaded an .html page with svg image in it.
2.Initially,On loading it consumes(eg:50 MB) memory
3.On refreshing that page again and again,Memory usage increases,Because of
this increased memory usage it shows exception on clicking ok button
application is closed.

What is the expected output?
Memory usage should on increase,Error message should not be shown.

What do you see instead?
Error message displayed on clicking ok ,Application is closed.
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!

Program: C:\Program Files\Internet Explorer\iexplore.exe

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

---------------------------
OK   
---------------------------
What version of the product are you using? On what operating system,
browser, and version of Flash?
xp,IE 7,FLP 10

Please provide any additional information below. Reduced test cases are
always appreciated!
Goto
http://codinginparadise.org/projects/svgweb/samples/demo.html
select different demo files and look at the task manager for memory
consumed by IE each time you load the page

Original issue reported on code.google.com by mailmeba...@gmail.com on 18 Nov 2009 at 11:40

GoogleCodeExporter commented 9 years ago
IE doesn't immediately reclaim memory; it will actually keep going up until it
'decides' to reclaim the memory and will then reclaim it. I did a bunch of work
around memory leaks and I don't believe there are any, though there certainly 
could
be new ones.

The C++ exception I'm worried about. Can you do me a favor and get exact version
strings for XP, IE, and Flash? Also, do you have Microsoft Office installed or 
any
other Microsoft products such as IIS? These sometimes change the core 
components of
IE during installation. Are you on a 64-bit platform?

Original comment by bradneub...@gmail.com on 18 Nov 2009 at 9:14

GoogleCodeExporter commented 9 years ago

Microsoft Windows XP Professional Version 2002 Service Pack 2,
IE 7 Version 7.0.5730.11,
Adobe Flask Player 10 plugin Version 10.0.32.18
I dont have microsoft office in my system but i have IIS installed.I am in 32 
bit
platform

Original comment by mailmeba...@gmail.com on 19 Nov 2009 at 4:48

GoogleCodeExporter commented 9 years ago
What version of IIS do you have installed? That might be the culprit; I'm sure 
IIS
has reached down into Windows and changed some of its guts, affecting IE. Also, 
can
you attach the specific HTML and SVG file that was causing the issue?

Original comment by bradneub...@gmail.com on 19 Nov 2009 at 5:17

GoogleCodeExporter commented 9 years ago
I've experienced similar memory increase on IE7, however a good news is, IE8 
seems
don't have this issue, the memory holds still as I refresh page on IE8.

Original comment by young4ch...@gmail.com on 1 Dec 2009 at 7:29

GoogleCodeExporter commented 9 years ago
Attached is a sample I used to reproduce this bug. It creates a <svg>, draw a 
rect,
destroys the <svg>, repeat 30 times. You can observe memory increase about 4MB 
with
every redraw.

Original comment by young4ch...@gmail.com on 1 Dec 2009 at 7:33

Attachments:

GoogleCodeExporter commented 9 years ago
I think there are several different bugs here.

In terms of @young4chongs comment, every time you create and then destroy an 
SVG a
Microsoft Behavior gets created in the background. A known limitation is that
Microsoft Behaviors are never removed from memory even when deleted from the 
page:

http://support.microsoft.com/kb/309170

However, I've long wanted to simply recycle old Microsoft Behaviors that are 
removed
from the page, which means that you never reclaim that memory but at least it 
doesn't
grow over time as you create and destroy SVG images if the number are roughly 
the
same over time.

The other things on this bug I believe are separate issues not related to
@young4chongs issue.

Original comment by bradneub...@gmail.com on 2 Dec 2009 at 1:42

GoogleCodeExporter commented 9 years ago
BTW, just to be clear, Microsoft Behaviors _are_ reclaimed when you leave the 
page;
it's just when a page is just sitting there over time without a refresh.

Original comment by bradneub...@gmail.com on 2 Dec 2009 at 1:43

GoogleCodeExporter commented 9 years ago
I think this is no longer issue. In terms of Microsoft Behaviors increasing 
memory _while the page is 
loaded_, that is something we can't really work around. Marking Invalid.

Original comment by bradneub...@gmail.com on 9 Apr 2010 at 2:39