Gnuplot 5.4.1 on Windows 10 will crash when terminal is set to 'windows' and trying to plot anything.
This happens both with gnuplot.exe and wgnuplot.exe
Typing the following commands on the gnuplot/wgnuplot command line will lead to a crash:
set terminal windows
plot sin(x)
A white plot window will appear (with nothing being plotted), the mouse cursor changes to the 'wait' cursor and after about 30 seconds gnuplot terminates fatally.
Testing on Windows 7 in Virtualbox also leads to a crash.
This might be a duplicate of [#2304 ], which is fixed in the git master and 5.4 branches. The cause there was a failure to correctly initialize if the ini file %APPDATA%\wgnuplot.ini was missing. You can try to create one with the following content (untested) to work around that problem.
Related
Bugs:
#2304Related: [#2223] and [#2286]
All of these are potentially related to initialization issues discussed in [#2304].
Related
Bugs:
#2223Bugs:
#2286Bugs:
#2304I can verify that on Windows 10 20H2, the crash happens just as explained using Gnuplot 5.4.1, the current release from December 2020. I reverted back to the previous stable release 5.2.8 from December 2019 and that works. I'm providing a datapoint for those who are good at fixing these things. I'd start by looking at what changed between these two versions.
@hammill The relevant changes are rather large really, but the I think the issue is fixed in 5.4.2. It would be great if you could test and report back.