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/plplot-general@lists.sourceforge.net/msg00659.html

without an end solution.

 

Thank you for any assistance.