I have EXACTLY the same problem. It only appears with ATLANTIS though. The encoding process stops just somewhere during encoding, and it doesn't matter if i use lame, oggenc or flac. After the crash, most other programs crashes as well because of lack of free memory. So i guess, the problem is something residing or accumulating in memory during compressing collapsing compress_sound_sou...
anyone an idea?
Problems Encoding Audio when running 'compress_scumm_sou'
Moderator: ScummVM Team
- eriktorbjorn
- ScummVM Developer
- Posts: 3560
- Joined: Mon Oct 31, 2005 7:39 am
That's odd. The most common cause of memory leaks would be if it allocates memory, and forgets to free it. But as far as I can see, it doesn't do any dynamic memory allocation at all.Nesco wrote:Yeah, you're right, at some point the program says it cannot execute, about the point where my Windows Page File is about 1.03 Gigabytes. Guess there's a serous memory leak in the tool.
There are other ways to leak memory, of course, but I don't see any obvious ones in this case.
- eriktorbjorn
- ScummVM Developer
- Posts: 3560
- Joined: Mon Oct 31, 2005 7:39 am
But once it has finished encoding one sound, the flac process should terminate. And that should release any memory it may have allocated but not freed, close any files it may have left open, etc.Nesco wrote:Maybe it's just from rapidly and reptitively calling the same program (in my case, flac). I wouldn't be surprised of memory leakes there either. Isn't there some flac ddl that can be invoked instead?
If it doesn't terminate, you should be able to see an enormous number of flac processes still running.