info-inventor
[Top] [All Lists]

Re: SceneViewer crashes my X windows

To: jlim@xxxxxxx (Jonathan Lim)
Subject: Re: SceneViewer crashes my X windows
From: vmirinav@xxxxxxxxxxxx (Vito Mirinavicius)
Date: Wed, 04 Sep 2002 19:48:53 -0400
Cc: info-inventor@xxxxxxxxxxx, fortmann@xxxxxxxxxxxxxx, ejaen_bs@xxxxxxxxx
Sender: info-inventor-bounce@xxxxxxxxxxx
Dear Developers,

I have  looked in to the problem I had with 09.1.Print.c++ and some other code 
and discovered that it crashes  my X windows system at these lines: 

if (!printToPostScript(cbData->scene, myFile,
           cbData->vwr, 75)) {
         fprintf(stderr, "Cannot print image\n");
         fclose(myFile);
         exit(1);
      }

so it crashes every time the printing is invoked ether in the form of PS 
or RGB files.otherwise it makes an empty file.


In the example below the program executes and runs to the end to generate empty 
RGB files if the  call to [myOSR->writeToRGB(fout);] is left out. So the 
problem has to be with the  SoOffscreenRenderer.h printing methods. 

  SoOffscreenRenderer *myOSR = new SoOffscreenRenderer(myVP);
  myOSR->setBackgroundColor(SbColor(bgCol[0],bgCol[1],bgCol[2]));
  myOSR->render(texRoot);
 /* 
  
  myOSR->writeToRGB(fout);
  
  */
  delete myOSR;
  fclose(fout);

This program exits with the [code 013] when I run the code in gdb.

Please help me to figure it put why this is happening. Or give me some clues of 
what I should try next.

Thank you 

Vito  

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/

<Prev in Thread] Current Thread [Next in Thread>