Slideshow memory leak?
raulpesch
Registered Users Posts: 64 Big grins
I have the standard Smugmug Slideshow embedded on my homepage with the option to show the recent updates. I noticed however that the slideshow is causing a major memory leak in all browsers (IE, FF, Chrome). It appears that every picture shown in loaded into memory and not released after it is shows. This eventually eats up all the available memory and causes crashes and slowdowns. You can see this by starting the slideshow and looking at tge browser instance in the Task Manager.
Is there a workaround or fix for this?
Is there a workaround or fix for this?
0
Comments
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
The only workaround I know of is to use some other slideshow system that uses javascript and the images versus flash. They got to be quite good until flash became all the rage.
Want faster uploading? Vote for FTP!
Portfolio • Workshops • Facebook • Twitter
Want faster uploading? Vote for FTP!
Is this on your XP Wyse system?
Portfolio • Workshops • Facebook • Twitter
Reviewing videos is only on the athlon xpp 3gb system or the 866 xph with 512mb ram and gamer video card, depending on the location that I'm at. Obviously the athlon system can run for longer than the 866 before crashing, but it still does.
Want faster uploading? Vote for FTP!
My site is peschfamily.com but I removed the flash slideshow since it caused total computer freezes when you left the homepage open for a while (on all PC's).
Just take this site as another example: http://andydemo.smugmug.com/ and leave it open for an hour (in IE, iexplorer.exe memory allocation will increase with every photo displayed, in Firefox, the plugin-container process will increase. There does not seem to be any garbage collection or memory release. Instead it consumes more memory indefinitely and ultimately causes a total slowdown of your PC).
This is absolutely terrible design of the flash slideshow. It appears to just keep chewing up more and more memory as long and their are new images to show. Bad, bad design. It should pick a reasonable number of images to cache and then beyond that release an image from memory each time a new one is loaded.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
I would still like the slideshow but currently it is unworkable. Especially when your Smugmug site is also your homepage . If you forget to close it, it brings your computer to a total crawl (sometimes even totally crashing it forcing you to reboot).
Can you use a memory tracker or something - Sam ran tests and saw memory usage, and release.
Portfolio • Workshops • Facebook • Twitter
8:18pm - 68,000
8:20pm - 112,000
8:28pm - 98,000
8:33pm - 164,000
8:56pm - 290,000
9:19pm - 160,000
9:29pm - 322,000
9:32pm - 130,000
Screenshots here:
http://www.smugmug.com/gallery/14590499_GxfmK#1084909570_vBHax
Am I missing something? This is Win7 64bit with IE8 running.
Portfolio • Workshops • Facebook • Twitter
0:00 26,444 kb
2:00 69,256 kb
4:00 126,932 kb
6:00 176,288 kb
8:00 219,180 kb
10:00 267,604 kb
12:00 317,440 kb
14:00 368,908 kb
16:00 408,264 kb
....
28:00 697,200 kb
30:00 746,180 kb
32:00 102,820 kb
So, from 0-32 mins, it steadily climbed and was using over 700MB. Then, at 32 mins, it dropped back down to 102MB and then started climbing again. I didn't let it run further to see what happens over a long period.
A few findings:
1) It uses a ridiculous amount of memory. Each new image in the slideshow (the largest of which is about 600kb) costs almost 5MB in Flash memory. Something really, really inefficient is happening such that the Flash memory usage goes up 8x as fast as the images it loads.
2) It does eventually seem to release some memory (in my case, after 32 minutes). I didn't let it run for a really long time to see if it actually releases everything as it goes or if it slowly creeps up and eventually would take all physical RAM.
3) Gobbling up 750MB of memory is kind of crazy. That's no big deal on my system because of how much physical RAM I have, but I can see how that could certainly cause problems on some systems. It doesn't need to be this bad. It really ought not use more than just a little more than 1x the images that it's caching for each new image that is loaded. And, it seems reasonable that there's no reason to keep old slideshow images in memory at all, beyond about the last couple images. If the slideshow repeats, they'll be fetched from browser disk cache anyway.
4) I see no reason at all why the slideshow would continually take up more and more memory for 32 mins. Can it not be written so it uses some memory to load the first couple images and then doesn't use any more after that?
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
I don't know - but I can tell you that for years, we've gotten extremely few complaints along these lines, with millions and millions using and viewing slideshows. I have a lame 1Gb ram PC system and the slideshow doesn't seem to "clog" up the system at all. What happens if you leave other flash slideshows going? Or other flash apps running continuously?
Of course we'll continue to look at this.
Portfolio • Workshops • Facebook • Twitter
I ran Firefox 3.6 over night, slideshow on http://moonriverphotography.com
plucing-container.exe was at 40,000 on slide 1 when I started it last night, then 134,000 this morning, 11 hours later.
Portfolio • Workshops • Facebook • Twitter
If you don't think this is a problem, please show some of your senior developers around the office these statistics and ask them if this is acceptable for a widely used Smugmug feature.
P.S. I haven't specifically tested it, but the full-screen slideshow on a large monitor may be even more of a problem since it uses the largest images.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Want faster uploading? Vote for FTP!
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
I have, John:
Portfolio • Workshops • Facebook • Twitter
Want faster uploading? Vote for FTP!
FYI, I can play an HD video on YouTube (which uses flash for displaying video) and the Flash memory usage does not exceed 100MB - nowhere near the 750MB my slideshow took.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
Facebook ♦ Flickr ♦ SmugMug
SmugMug referral coupon code: ix3uDyfBU6xXs
(use this for a discount off your SmugMug subscription)
Firefox is TERRIBLE as a memory hog. Great browser, but it sucks up memory in a bad, bad way.
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=firefox+memory+hog
I love Firefox and use it as my primary browser. But as someone who uses the internet all day every day for my work, I also restart Firefox several times a day. I just live with that..
Why not go Chrome? There are still things I need as plugins in FF that I can't do as well in Chrome. Also FF's awesomebar is a huge time saver for me.
Portfolio • Workshops • Facebook • Twitter
Want faster uploading? Vote for FTP!
Want faster uploading? Vote for FTP!
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Want faster uploading? Vote for FTP!
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
But that being said, if there's a common library that everyone doing flash slideshows is using that always is a memory hog, SM has to make a decision to use this readily available solution or code one up from scratch that may not necessarily be better. I don't know much about what's actually going on underneath the hood of the slideshow creation process and everything involved, but if it's something along these lines where it's not really in their control, what is SM to do?
Want faster uploading? Vote for FTP!
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question