wxt: terminal does not refresh on Ubuntu
How to reproduce
On Ubuntu, execute gnuplot-dev or gnuplot-5.4.8
set terminal wxt
plot x
The plot y=x appears,
Then I execute
plot x*x
The plot x**2 does not appear until I click the plot window by the mouse.
Diff:
It does not happen on Windows (MinGW and Cygwin)
Is this behaviour observed before or after the commit below?
4d02ce8b014e48eda477ae16e9ea2526c1219302 (HEAD -> master, origin/master, origin/HEAD)
Date: Wed Jun 28 20:25:00 2023 -0700
Last edit: Ethan Merritt 2023-07-04
I observe the same behaviors on gnuplot-5.4.2 from the Ubuntu distro.
I observe the same behaviors on gnuplot-5.2.8 (built from source)
Last edit: Tatsuro MATSUOKA 2023-07-04
The question is whether this is related to, and possibly fixed by, the commit from last week that also was reported specifically for Ubuntu + wxt.
It is curious that Ubuntu suffers from this bug (or bugs) but other linux distros do not.
Please ignore my previous question. That commit was bad, and broke wxt plot toggling.
I will have to revert it and look elsewhere for problems.
It is hard for me to debug this because I cannot reproduce the problem on my linux machines.
I confirmed on Ubutu 22.04 on the WSL and native machine. In the weekend, I will try to install other Linux distro like Debain on on the WSL.
Last edit: Tatsuro MATSUOKA 2023-07-05
I tested on the latest snapshot for gnuplot-dev.
Results were the same as before.
I installed Debian 12 on the WSL. The same behaviors as those in Ubunutu happened in the Debian 12.
I installed OpenSuSE 15.4 on the WSL2. Plot on the wxt terminal works as expected.
Problem seems to be specific to the Debian and Ubuntu at the moment.
Could this be a problem with the Gnome desktop focus policy, rather than a problem with gnuplot itself?
You could test this by logging in to a session using Xfce instead of Gnome on the same Ubuntu machine.
Last edit: Ethan Merritt 2023-07-09
I failed to install Xfce to my Ubuntu PC. Instead I dually installed Xubuntu 22.04.
If I use Xubuntu, the wxt terminal works as expected.
Perhaps your suggestion is right.
I consider that I post this issue to the Ubuntu forums.
Last edit: Tatsuro MATSUOKA 2023-07-10
I found this suggested work-around:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900678
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942570
$ GDK_BACKEND=x11 ./gnuplot
Does that work for you?
Thanks! That works! I'll wait for the bug for Wayland will be fixed. Meanwhile I will use GDK_BACKEND=x11 for the wxt terminal on Ubunutu (or Debian).