Re: [info-performer] problems loading models in performer windows

New Message Reply Date view Thread view Subject view Author view

From: Radomir Mech (rmech++at++engr.sgi.com)
Date: 02/13/2003 09:39:53


Hi John,

I just wanted to let you know that I found the problem and fixed it
for 3.0.1. It will be available for download in about a month.

Radomir

John Breedlove wrote:
>
> Sorry, I should have been more specific. The crash doesn't occur at the
> actual loading, but when it attempts to display the scene, and only if I
> load > 64 models. Attached is the program, it is a modification of the demo
> program simple.c . Let me know if it works for you.
>
> Thanks,
> John
> ----- Original Message -----
> From: "Alexandre Naaman" <naaman++at++laplace.engr.sgi.com>
> To: "John Breedlove" <jbreedlo++at++cs.ucf.edu>
> Cc: "Allan Schaffer" <allan++at++sgi.com>; <info-performer++at++sgi.com>
> Sent: Tuesday, January 21, 2003 4:38 PM
> Subject: Re: [info-performer] problems loading models in performer windows
>
> > Hi John,
> >
> > I wrote a program to do the same:
> >
> > #include <Performer/pf.h>
> > #include <Performer/pf/pfScene.h>
> > #include <Performer/pfdu.h>
> >
> > int main(int argc,char *argv[])
> > {
> > pfScene *scene = NULL;
> > pfNode *node = NULL;
> > int i=0;
> >
> > pfInit();
> > pfConfig();
> >
> > #define NUM_FILES_TO_LOAD 500
> >
> > scene = new pfScene();
> >
> > for(i=0; i<NUM_FILES_TO_LOAD; i++) {
> > node = pfdLoadFile("esprit.flt");
> > pfNotify(PFNFY_NOTICE,PFNFY_PRINT,"loaded file %3d: 0x%x",
> > i,node);
> > if(node)
> > scene->addChild(node);
> > else
> > break;
> > }
> >
> > pfNotify(PFNFY_NOTICE,PFNFY_PRINT,"scene has %d children",
> > scene->getNumChildren());
> >
> > PFASSERTALWAYS(scene->getNumChildren() == NUM_FILES_TO_LOAD);
> >
> > pfExit();
> >
> > return 0;
> > }
> >
> > and regardless of what I set NUM_FILES_TO_LOAD to, it seems to work fine.
> >
> > Could you please try setting up the environment such that you're using the
> > debug libraries and then provide us with a stack trace? Or better yet, a
> > copy of the program you've written that demonstrates the problem?
> >
> > Thanks,
> >
> > Alex.
> >
> > > Allan,
> > >
> > > I made a very simple program that repeatedly loads models with
> pfdLoadFile,
> > > and when more than 64 models are loaded, Performer crashes. So it does
> > > appear to be just based on the number of models loaded.
> > >
> > > John
>
> ----------------------------------------------------------------------
> Name: simple.c
> simple.c Type: unspecified type (application/octet-stream)
> Encoding: quoted-printable


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Feb 13 2003 - 09:40:10 PST

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