Wed 12 Apr 2017 09:11:46 PM UTC, comment #2:
Sorry for the late reply. And missing information.
It is version 4.2.1 windows downloaded from here: https://ftp.gnu.org/gnu/octave/windows/
Having ghostscript: GPL Ghostscript 9.16 (taken from the error notice).
grahpics_toolkit: qt
available_graphics_toolkits: [fltk gnuplot qt]
The problem occurs with either qt and gnuplot or fltk. Where fltk also makes octave-gui crash.
I have found that the problem is related to the enormous amount of files ghostscript leaves behind in the temporary folder: C:
\Users\marc\AppData\Local\Temp/. If I remove those files, the problem tends to go away for a short amount of time (until the files build up again).
I already tested if it tries to create an already existing temporary file (and failing to do that) but that seems not to be case (at least not between script-runs).
What is further puzzling is that (for the attached script) it creates temporary files called gs_axxxxx to gs_gxxxxx (or something other early alphabet letter) when printing a figure for which nothing goes wrong. But when it fails it is always a gs_zxxxxx file.
For the attached script, as explained I for an empty Temporary folder you might need to run it some three to four times, then it will start failing every 1 out of 3 runs at leas for 1 image.
Please let me know if you need more information.
(file #40381)
|