Which driver are you using?

xwin for example has an option "-drvopt unbuffered" which will disable 
buffering. There is no universal user level way of doing this and most
other drivers don't have a similar option.

The variable plbuf_write in the PLStream structure controls whether 
writing to the buffer is allowed. You may be able to set this to 0 in the 
driver you are using to see if this fixes the problem.

Regards

Andrew

On Mon, Aug 13, 2012 at 04:54:47PM +0000, Owens, Thomas wrote:
> I have written a plplot application that reads in streamed data and 
> continuously updates 9 plots within a single window. However, after about 30 
> minutes or so, the plot buffer grows so large that the application 
> closes/crashes with
> PLPLOT ERROR, IMMEDIATE EXIT
> plbuf wr_data: Plot buffer grow failed.
> 
> If I run plplot with debug enabled, I get the console messages:
> Growing buffer to 1408 KB
> Growing buffer to 40704 KB
> Growing buffer to 41216 KB etc...
> 
> Valgrind shows the memory issue occurs with the calls to plenv.
> 
> Besides closing and reopening the entire window, is it possible to use plplot 
> without allowing the buffer to continuously grow?
> 
> The same issue is described 3 years ago at
> http://www.mail-archive.com/[email protected]/msg00659.html
> without an end solution.
> 
> Thank you for any assistance.

> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

> _______________________________________________
> Plplot-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plplot-general


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to