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
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
Allready in svn, should do the job.