From: Andrew R. <and...@us...> - 2012-08-14 17:55:51
|
Glad it works! We probably should add a similar option for some of the other drivers, or in the core library. Andrew On Tue, Aug 14, 2012 at 02:07:29PM +0000, Owens, Thomas wrote: > Thank you Andrew! > > plsdev("xwin"); > plsetopt("drvopt","nobuffered=1"); > > Works great! > > Tom > > -----Original Message----- > From: ANDREW ROSS [mailto:an...@vi...] On Behalf Of Andrew Ross > Sent: Monday, August 13, 2012 6:38 PM > To: Owens, Thomas > Cc: plp...@li... > Subject: Re: [Plplot-general] plbuf wr_data: Plot buffer grow failed > > > 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/plp...@li.../msg00 > > 659.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 > > Plp...@li... > > https://lists.sourceforge.net/lists/listinfo/plplot-general > > |