Problem 1469

Summary: "gl2ps buffer size is not big enough to print this geometry"
Product: Geant4 Reporter: garnier
Component: visualizationAssignee: garnier
Status: RESOLVED FIXED    
Severity: major CC: garnier
Priority: P5    
Version: other   
Hardware: All   
OS: All   

Description garnier 2013-05-17 14:37:29 CEST
Reported from "visualization mailing list" :

> I am using geant4.9.6.p01 and an absolute beginner in visualization.
> When I want to save my visualization to postscript file *.eps using
> Opengl driver (/vis/ogl/printEPS), I get an error reading:"gl2ps buffer
> size is not big enough to print this geometry" and asks to extend buffer
> size. I looked into G4OpenGLViewer.cc‎ but I couldn't figure out
> why the buffer size didn't extend in that code because the boolean was
> ON!

> Could you please help me to fix this problem
> Many thanks for your time
Comment 1 garnier 2013-05-17 15:08:34 CEST
The problem appear on big volumes/traces on the screen. It should affect all OpenGL versions (Qt, Xm, Win32...) and should be there from geant4-09-03

Quick solution :
  Try to reduce your window size or the number of traces on the screen.

Explanation :
  I think that there is some problems with writing by buffer stream in big files. It seems that (on mac), when the vsprintf stop flushing in the file when they are to many lines. One solution I propose is to replace the flushing output by a immediate I/O File :
 setvbuf ( fFile , NULL , _IONBF , 2048 );

Let's try this before closing the ticket.

Laurent
Comment 2 garnier 2013-11-25 10:06:34 CET
Allready in svn, should do the job.