Memory Leak in Flex SDK 4.1 Spark VideoDisplay

In working on a small utility application (Adobe AIR) this week, I came across a pretty major memory leak in the beta Open Source Media Framework based Spark components in Flex 4.1 final.

The utility I am building grabs over 10,000 video clip records from our media repository and then systematically goes through and renders a still image of each clip. There’s actually a lot more to it than that and I’ll probably either write about or present on some of the neat tricks I am doing with this app soon, but for the sake of this article this is all you need to know.

I’m using s:VideoDisplay to grab data from an RTMP stream and also use the events present to manage the system method calls. Should be no big deal- but once the application hit 500-1000 out of the 10,000+ records, it would simply crash out. No good.

Using the Windows Task Manager, I could watch the memory usage in ADL skyrocket as each video was processed into a still image. Obviously something was up. Using the profiler in Flash Builder 4 I was able to isolate the problem to the org.osmf.* classes being used by the Spark VideoDisplay component.

It’s important to note here that while Flex 4.1 is certainly release quality, it (along with Flex 4.0) was released with components based on beta OSMF code. Flex 4.5, while not final by any means, does include the final OSMF 1.0 classes. I was able to download and compile the same project with Flex 4.5 and can happily say I have had no more memory leaks whatsoever. The application is running like a champ and processing thousands of videos without issue. Windows Task Manager shows that the memory used by ADL is being properly released and all is well.

As a side note, I could have written my own video display based on flash.media.Video or even used mx:VideoDisplay… but I wanted to get to the bottom of this :)

Posted in Flex | Tagged , , | Leave a comment

Articles of Note! August 2010

I’d like to take some time as this month comes to a close to highlight some articles and posts that have featured my personal involvement with ‘An Early Morning Letter, Displaced‘, Emergent Collective One, or both:


Joseph Labrecque
August 20th – CodeBass.net


360Flex – An awesome night of nerd made music!! 360Flexapalooza!
August 18th – 360|Flex


DU programmer moonlights as electronic musician
July 16th – DU Today


Also, it’s been almost a month since Emergent Collective One was released. Here are some posts about the collection:

Posted in Community, Music | Tagged , , | Leave a comment

‘PHP’ – Lee Fernandes Interview on Pique Web

Lee Fernandes, contributor of the track ‘PHP’ on Emergent Collective One was recently interviewed by Pique Web. Check it out around the one hour mark to hear Lee discuss PHP (the language), EC1, references within the lyrics, and the audio composition process!

Listen to the interview:
Pique Web Episode 3 – Sessions, accounts, and the PHP Anthem

Posted in Community, Music | Tagged , , | 1 Comment

Mobile Outlook 2010 – Where Are We?

Roundtable presentation at the Teaching with Technology Conference, Boulder, CO.
August 11, 2010 – 11:10 a.m.

We are currently experiencing what will probably be the largest technological shift since the introduction of the internet onto our campuses for widespread use. Powerful mobile devices are expected to increase at a tremendous rate at universities and elsewhere in the world over the next few years to the point that many activities now done via a desktop machine will be enabled on hand-held devices. This holds great promise but also much uncertainty – so where are we now?

Now featured on the http://slideshare.net homepage by the editorial team!

Posted in Conferences, Presentations | Tagged , , , , | Leave a comment

Making Rich Video Happen!

Presentation at the Teaching with Technology Conference, Boulder, CO.
August 11, 2010 – 1:10 p.m.

The University of Denver made a strong commitment to delivering rich media for classroom use across campus years ago and we are still going strong. This presentation will cover every aspect of video capture, cataloging, and delivery at DU today through custom-developed solutions as well as failures and lessons learned.

Posted in Conferences, Presentations | Tagged , , , , , | Leave a comment