Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem closing a qt terminal

75 views
Skip to first unread message

MBaz

unread,
Mar 9, 2016, 12:36:52 PM3/9/16
to
Hello,

When I run these commands:

gnuplot> set term qt
gnuplot> plot(sin(x))
gnuplot> set term qt 0 close

the plot window doesn't close. However, when using wxt, the plot window closes as expected. This happens in both gnuplot 4.6.6 and 5.0.2, on Ubuntu and on Arch Linux.

Is this a bug? What is the correct way to close a qt plot window from gnuplot's command line?

-- mb

Karl Ratzsch

unread,
Mar 9, 2016, 1:34:17 PM3/9/16
to
Am 09.03.2016 um 18:36 schrieb MBaz:

> gnuplot> set term qt
> gnuplot> plot(sin(x))
> gnuplot> set term qt 0 close
>
> the plot window doesn't close. However, when using wxt, the plot window closes as expected. This happens in both gnuplot 4.6.6 and 5.0.2, on Ubuntu and on Arch Linux.
>
> Is this a bug? What is the correct way to close a qt plot window from gnuplot's command line?

Definitively a bug. gp5.03 on windows has mixed reactions. First try
gave an error message that gnuplot_qt.exe has crashed. Next try with
new terminal worked after a hang of 30 seconds or so.
After starting a new session the command to close the terminal
window is first silently ignored, then crashes gnuplot_qt.exe again.

Looks like the "close" command can get lost in the communication
between gp core and the terminal code.

MBaz

unread,
Mar 9, 2016, 2:01:18 PM3/9/16
to
On Wednesday, March 9, 2016 at 1:34:17 PM UTC-5, Karl Ratzsch wrote:
> Am 09.03.2016 um 18:36 schrieb MBaz:
>
> > gnuplot> set term qt
> > gnuplot> plot(sin(x))
> > gnuplot> set term qt 0 close
> >
> Definitively a bug. gp5.03 on windows has mixed reactions. First try
> gave an error message that gnuplot_qt.exe has crashed. Next try with
> new terminal worked after a hang of 30 seconds or so.
> After starting a new session the command to close the terminal
> window is first silently ignored, then crashes gnuplot_qt.exe again.
>
> Looks like the "close" command can get lost in the communication
> between gp core and the terminal code.

Thanks for trying it out. Should I open a bug report on the tracker?

-- mb

MBaz

unread,
Mar 10, 2016, 9:53:30 AM3/10/16
to
On Wednesday, March 9, 2016 at 2:01:18 PM UTC-5, MBaz wrote:
> On Wednesday, March 9, 2016 at 1:34:17 PM UTC-5, Karl Ratzsch wrote:
> > Am 09.03.2016 um 18:36 schrieb MBaz:
> >
> > > gnuplot> set term qt
> > > gnuplot> plot(sin(x))
> > > gnuplot> set term qt 0 close
> > >
> > Definitively a bug.
>
> Thanks for trying it out. Should I open a bug report on the tracker?
>
> -- mb

I went ahead and submitted a bug report: https://sourceforge.net/p/gnuplot/bugs/1753/

Thanks,

-- mb
0 new messages