From: John Breedlove (jbreedlo++at++cs.ucf.edu)
Date: 01/21/2003 14:52:10
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
This archive was generated by hypermail 2b29 : Tue Jan 21 2003 - 14:56:17 PST