kglad, tried what you suggested. The same happens.
The FLA is currently 176Mb.
I've found a temporary fix. If I put “-Xmx64m” in the jvm.ini Flash is able to export although it won’t play in the SWF player after the export. I have to do it manually. The huge problem is that Flash gets really unstable after that and crashes at the simplest thing.
So it isn’t a really good temporary fix but at least I can export. But I sense that I’ll have big problems later when exporting to a QuickTime movie so… any other tips/ideas to fix this?
you're in danger of loosing all your work if you don't take precautions.
first thing, save your currently working fla in a backup directory so can go back to it if all else fails will trying to fix your problems.
then, start removing all assets that are not needed in your fla and that can be loaded. that would include all bitmaps, sounds and video. that should result in a fla that's dramatically smaller and manageable.
re-organize your project to load those assets instead of including them in your fla.
Believe me; I’ve already lost all my work, when it was about finished, but due to another issue. I’m currently creating that same project from scratch but I’m having this new issue now.
The reason why the FLA is so big it’s because there’s a 90Mb wave file in it and I need to see it in the timeline for easy mouth synchronization.
I've already deleted all unused bitmaps, movie clips, etc.
I don’t really think the problem is there because, like I said at the beginning of this post, this is the second attempt at a project that has almost finished. It had more bitmaps, more movie clips, a bigger timeline and the same wave file back then and there was no memory errors and it exported just fine. (expect the last time when it crashed and somehow corrupted the fla file and I lost everything)
I’ll try later to compress the wave to mp3 and import that to the project to see if the changes anything but I doubt it. Plus it might create an offset in the timeline. Flash doesn’t like sound files in the timeline
There are some png images too but all them together barely reaches 5 Mb.
I saved as uncompressed document and noticed something. All the things in the project’s library are in the LIBRARY folder that’s created. In the bin folder, that is also created, all the same files are there, but with a different extension. So it’s all the library files * 2. That’s why the size goes to 179Mb.
I’ve put the mp3 instead of the wave file, the size went down to 112 Mb, but like I predicted, nothing changed. The same weird thing still happens: the RAM usage goes way up, hangs a bit and then crashes.
Saving as a compressed fla doesn't make a diference.
Ok, I’ve fixed the problem the same way I've always fixed these “out of memory” problems on other programs:
Opened the Flash.exe in an editor, checked the option in the header “App can handle > 2Gb address spaces” and voila! Everything works fine now.
I’m pretty sure this isn’t a good solution but it’s way better than the temporary fix I’ve found. Flash still goes up to 1.5Gb RAM usage when exporting but continues with the exporting and plays the swf afterwards.
I'm still open to suggestons on how to fix this properly.
Yes, I made a backup.
Well, there shouldn’t be anything wrong on doing this but if that’s the case why haven’t Adobe done that to Flash.exe themselves? The only reason I see is that this may cause problems in x86 systems because Flash may try to use more RAM than the system can handle (the 3.5Gb limit). Mine being x64 is probably ok.
I’m no expert so I can’t really tell.
Wow, I've been struggeling with this "out of memory" bug so much the last year, it really jepoardized the whole development - so we moved as much away from the Flash IDE as we could (using FlashDevelop and only prepared the assets in the IDE).
I will also try this, I've already downloaded the CFF explorer (very interesting stuff btw!) and changed the >2gb flag already.
Usually, this bug would appear after some importing into flash and having other Adobe products open like Photoshop, Illustrator or Bridge, not with a fresh booted system (that's also why the guys from support couln't reproduce my problems). Yes I've been in contact with the support department over half a year about this issue!
In the past, programs just told you "I'm out of memory" and just would not totally corrupt and destroy the document at the same time. Instead, they would leave you a chance to save your work or free some memory and continue. That's not the case with Flash anymore...
Well, I'll be testing, wish me luck!
For those who goole this (no one may be even get back to this thread).
Yes, the method worked. For some time. It just makes Flash CS5 work LONGER without the dreaded errors. But after some time, they will re-appear and mess-up your work and you will again lose all your work due tue "out of memory" or Flash wildly copying instances of symbols into oblivion and corrupting its own memory.
The only way to get things "back on track" is to re-start the whole computer.
Is ther any way to "reset" things without restarting the whole machine? It's a bit tedious to get the whole working environment back from the scratch.
Yay, Flash CS5 still sucks. After the "hack" it just takes longer until your work just gets destroyed by the application you created it with.