SKITSANOS FOR RIA

Skitsanos

Sunday, June 01, 2008

Two major BUGS in flash player

by JamieG

First of all, massive memory leaks. See Adobe bug tracker FP-49

I am surprised this has not gotten more attention. Firefox, for example, has been slammed on memory problems in FireFox2. This memory leak could be a major cause of browser slow down and memory usage issues.

In simple terms, this bug does not free up memory properly. For example, you may have a rich internet ad in flash on your web page. It may be running over and over, and if using the latest Actionscript3 (I would, its 10 times faster then AS2) the ad could be slowly growing in memory usage.
I commonly leave tabs open for days like many other people I imagine. Imagine what this bug is doing to the browser.

This issue also makes Adobe AIR unsuitable for many applications.  Writing an application that runs as a desktop application and lives in the task bar for days at a time is simply not very viable with this bug hanging over you.

If you are a developer, I urge you to have a read of FP-49 and vote for it. (Adobe lets flash/flex developers vote for bugs to fix first. The more votes, the faster it gets addressed.

Secondly I would like to mention bug “Security.loadPolicyFile() attempts to load file only once” FP-49
This bug basically makes flash used with socket communications near unusable. All my development depends on it. So if you can, please kick that one along too.

2 comments:

Jensa said...

Hi,
I just got confirmed that an update that should fix this in AIR is on the way:
http://www.flashmagazine.com/News/detail/air_roadmap/

J

contact said...

Well i've had a look at this and it does seem that tracing out System.totalMemory shows an increase in memory use over time. After having read through skinner's post (http://gskinner.com/blog/archives/2006/08/as3_resource_ma_2.html), though, i did some testing by forcing the GC to do a pass through, and it would seem that when you do that, it removes all the 'added memory'. So I am not sure if there is actually a leak, or if that 'added memory data' will just be picked up at some later stage. Judging by the above test, it would seem that the GC will just pick it up effectively.

Webware development dedicated blog by Skitsanos R&D Labs. ASP.NET, XML, RIA, Adobe Flex, ActionScript 3, AIR, AJAX, Web 2.0, Backbase, CGI development with RealBasic and other web development issues.
News
Downloads