From: Nguyen, Tien (Tien.Nguyen++at++dsto.defence.gov.au)
Date: 06/02/2002 23:49:03
hi Mario,
i seem to be having memory leak when using pfDelete('node')
where 'node' is loaded using pfdLoadFile()
is this because of loader? how do i delete the missing memory?
below is the extracted code with printout
regards
tien
...init_config_code
pfFrame();
printf("before loading = %d\n", pfGetMemoryArenaBytesUsed()); //
before loading = 580954
node = pfdLoadFile("./esprit.pfb");
printf("after loading = %d\n", pfGetMemoryArenaBytesUsed());//after
loading = 1094301
pfDelete(node);
for(i=0; i<10; i++)
pfFrame();
printf("after pfDelete = %d\n", pfGetMemoryArenaBytesUsed());//after
pfDelete = 667989
...exit_code
-----Original Message-----
From: MLM Veraart [mailto:veraart++at++fel.tno.nl]
Sent: Friday, 31 May 2002 7:50 PM
To: Ozarka Simatomi
Cc: Performer Mailing List
Subject: Re: [info-performer] pfMemory::new() fails
Ozarka Simatomi wrote:
>
> Hi,
> This is kind of an emergency.
> I got the following error message:
> pfMemory::new() unable to allocate 100832 bytes
> from arena 0x44000. Try use pfSharedArenaSize() to
> increase the arena size (currently 262144.00
> KBytes)...
> Does this mean there is memory leakage in my
> application?
> The program can run for a couple of hours without
> a problem, but sometimes it crashed with above
> message, or it crashed and the whole system crashed
> (Octane with IRIX).
> My Performer program also sproc() off two other
> processes. If there is memory leakage in other
> processes, will this affect the Performer program?
> It looks like I don't have this problem until I
> am displaying my virtual reality scene on a seperate
> monitor.
> Thanks a lot!
>
You probably are suffering from memory fragmentation in shared memory.
This is due to malloc and free of datastructures.
The thing you can do is set a few amallopt() calls. See the man page.
Mario
This archive was generated by hypermail 2b29 : Sun Jun 02 2002 - 23:52:22 PDT