Problems Encoding Audio when running 'compress_scumm_sou'

Ask for help with ScummVM problems

Moderator: ScummVM Team

gast2
Posts: 3
Joined: Sat Apr 08, 2006 1:15 pm

Post by gast2 »

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?
Nesco
Posts: 2
Joined: Mon Jul 23, 2007 12:33 pm

Post by Nesco »

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.
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3560
Joined: Mon Oct 31, 2005 7:39 am

Post by eriktorbjorn »

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.
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.

There are other ways to leak memory, of course, but I don't see any obvious ones in this case.
Nesco
Posts: 2
Joined: Mon Jul 23, 2007 12:33 pm

Post by Nesco »

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?
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3560
Joined: Mon Oct 31, 2005 7:39 am

Post by eriktorbjorn »

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?
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.

If it doesn't terminate, you should be able to see an enormous number of flac processes still running.
Post Reply