bugGNU Octave - Bugs: bug #50686, gs.exe stopped working

 
 

bug #50686: gs.exe stopped working

Submitter:  Marc Dirix <dirixmjm>
Submitted:  Fri 31 Mar 2017 09:28:05 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Need Info Assigned to:  None
Originator Name:  Marc Dirix Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 10 Mar 2019 06:51:24 PM UTC, comment #5: 

No response, asumming this has been fixed in the latest release.  Closing report.

Rik <rik5>
Group administrator
Sun 03 Mar 2019 06:27:06 AM UTC, comment #4: 

Version 4.2.1 is deprecated and no longer supported.  Please try with the latest stable release which is 5.1.0.  The problem is likely to have been fixed.

Rik <rik5>
Group administrator
Tue 08 Aug 2017 01:26:20 AM UTC, comment #3: 

I came across this same issue today (4.2.1) while batch-processing data and generating PNG figures using the QT graphics toolkit. I also tried alternate toolkits but the problem remained.

I tentatively solved it by running &quot;close all&quot; between each processed file. If I don't do this, I get sporadic &quot;gs.exe has stopped working&quot;

Patrick <cake314>
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)

Marc Dirix <dirixmjm>
Wed 05 Apr 2017 11:50:08 AM UTC, comment #1: 

Thank you for your report. To be able to reproduce your problem, please be specific about the Octave version you are using (do you use the Windows version from https://ftp.gnu.org/gnu/octave/windows/ ?) and you might provide a small test script to reproduce the problem. Your screenshot unfortunately is not very helpful. Do you have other installations of Ghostscript (gs.exe) on your machine?

What is the output of the commands


graphics_toolkit
available_graphics_toolkits


before you start plotting? And does it help if you switched your graphics toolkit https://www.gnu.org/software/octave/doc/interpreter/Graphics-Toolkits.html ?

Kai Torben Ohlhus <siko1056>
Group Member
Fri 31 Mar 2017 09:28:05 AM UTC, original submission:  

I create scripts that plot and print data automatically.
Every 5 to 10 graphs it plots and prints ghostscripts stops working with the windows notice "gs.exe has stopped working".

Marc Dirix <dirixmjm>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #40381:  GhostScriptTest.zip added by dirixmjm (6KiB - application/octet-stream)
file #40217:  Knipsel.PNG added by dirixmjm (8KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pantxo (Updated the item)
  • -email is unavailable- added by cake314 (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by dirixmjm (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-10 rik5 StatusConfirmed Need Info
        Open/ClosedOpen Closed
    2019-02-28 pantxo StatusNeed Info Confirmed
    2017-04-12 dirixmjm Attached File- Added GhostScriptTest.zip, #40381
    2017-04-05 siko1056 StatusNone Need Info
    2017-03-31 dirixmjm Attached File- Added Knipsel.PNG, #40217

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code