Re: [info-performer] what causes: error: cannot perform %s?

New Message Reply Date view Thread view Subject view Author view

From: Allan Schaffer (allan++at++sgi.com)
Date: 06/05/2002 11:16:02


Wei Wang wrote:
> I am working on a Performer application on an SGI
> Octane machine. I implemented the GUI with ViewKit. I
> got the following message if I run it for an hour:
> Memory allocation failed.
> Error: cannot perform %s...
>
> Does any of you know what is the problem that
> causes this?

That error string doesn't show up anywhere in the Performer libraries;
it must be someplace in Viewkit, or perhaps in a loader.

As for the overall problem, it sounds as if there's a memory leak, your
application is growing over the hour and eventually runs out of memory.
If it were the Performer arena that ran out, you'd get the usual
"Unable to allocate %d bytes from arena" message rather than the above.

Traditional debugging techniques are probably your best bet here. If
the program exits after printing the above message, try loading it into
the debugger (dbx or cvd) and set a breakpoint in exit. Let it run, and
once it reaches the breakpoint type 'where' to get a stack trace. This
will show exactly where the message is coming from.

Allan

-- 
Allan Schaffer                                            allan++at++sgi.com
Engr. Manager, Core Rendering                            1-650-933-2160
Silicon Graphics                                     http://www.sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jun 05 2002 - 11:19:28 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.