Problem 1469 - "gl2ps buffer size is not big enough to print this geometry"
Summary: "gl2ps buffer size is not big enough to print this geometry"
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: visualization (show other problems)
Version: other
Hardware: All All
: P5 major
Assignee: garnier
URL:
Depends on:
Blocks:
 
Reported: 2013-05-17 14:37 CEST by garnier
Modified: 2013-11-25 10:06 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.