|
From: Ethan M. <merritt@u.washington.edu> - 2010-03-15 19:19:48
|
On Monday 15 March 2010 07:24:39 Benjamin Lindner wrote: > I have encountered a nasty problem, namely gnuplot segfaulting if called with a script name and the persistent option and the user then using the terminal window interactively - specifically toggling grid via keyboard 'g'. > > Ok, for the details, I see this on windows platform using the windows terminal and only for the 4.5.0 branch, *not* for the 4.4.0 branch. > > I am using gnuplot as follows > /path/to/gnuplot/wgnuplot -p foo.gp > > where foo.gp simply sets terminal to windows and plots something in 2d like in > > set term windows > plot [0:2*pi] sin(x) with linespoints, cos(x) with linespoints > > Now pressing "g" crashes gnuplot. > And the nasty part is, it does not always crash (I love those errors...) > [...] > I don't know where the actual problem lies here. Is it not allowed to call replotrequest() > when no tokens are available? I honestly don't know what the windows terminal does when you say "-persist". On other platforms, once the gnuplot program itself exits, you obviously cannot interact with the display to do "replot" or "toggle grid" or anything else that requires reprocessing the input file or command. Ethan |