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 such 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
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?
Thank you for any assistance.