bugGNU Octave - Bugs: bug #43057, print command doesn't work

 
 

bug #43057: print command doesn't work

Submitter:  None
Submitted:  Sat 23 Aug 2014 03:46:53 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Need Info Assigned to:  None
Originator Name:  Gianluca Cannizzaro Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.1
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 07 Dec 2014 06:33:51 AM UTC, comment #8: 

No response for 4 months.  Closing report.

Rik <rik5>
Group administrator
Tue 04 Nov 2014 05:45:33 AM UTC, comment #7: 

Has there been any resolution here?  There has been nothing reported on this bug in 2.5 months.

Rik <rik5>
Group administrator
Sun 24 Aug 2014 12:17:17 PM UTC, comment #6: 

I'm not at home at the moment, I'll be able to do as you say in a couple of days. However, now that I think about it there are problems only when saving errorbar plots.

Anonymous
Sun 24 Aug 2014 09:45:22 AM UTC, comment #5: 

Just to be clear: Does

print ("-dpng", "myfigure.png")

not produce a PNG for every plot, for example something like plot ( rand (3)), or only some specific plots?

Andreas Weber <andy1978>
Group Member
Sun 24 Aug 2014 09:40:37 AM UTC, comment #4: 

I hope you were able to reconstruct the missing part of the verbatim block '... -sDEVICE=png16m sOutputFile="out.png" out.eps'

Please start octave and execute these commands:

close all
graphics_toolkit fltk
plot (rand (3))
print ("-dpng", "myfigure.png", "-debug")


and copy the output of these commands and the ghostscript error into a verbatim block so that it isn't interpreted as markup. See here https://savannah.gnu.org/cookbook/?func=detailitem&item_id=125

Then please run print ("out.eps") and run the "fltk-pipeline" output from commandline. You have to replace the "-", which means reading from stdin with the generated eps, out.eps in your case. If this still fails then please attach the generated out.eps which fails in ghostscript.

Andreas Weber <andy1978>
Group Member
Sun 24 Aug 2014 07:08:46 AM UTC, comment #3: 

No, I don't have any fonts in /usr/share/fonts/woff.

Indeed .eps files are generated correctly. After saving "ouput.eps" and running the command you typed below that's what appears on screen:

GPL Ghostscript 9.14 (2014-03-26)
Copyright (C) 2014 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSanL-Regu font from %rom%Resource/Font/NimbusSanL-Regu... 3658508 2206703 6492392 4977582 2 done.


It seems "out.png" has been created without problems.

Anonymous
Sat 23 Aug 2014 04:02:54 PM UTC, comment #2: 

The second verbatim section in comment 1 was cropped. Second try:

gs -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m sOutputFile="out.png" out.eps


Andreas Weber <andy1978>
Group Member
Sat 23 Aug 2014 04:01:24 PM UTC, comment #1: 

I guess this only happens for PNG, JPEG and other bitmap formats but EPS works. PS won't work because pswrite was removed in ghostscript>=9.09.

Is it this ghostscript bug? https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732440
Do you have any fonts installed in /usr/share/fonts/woff?

To help debugging this issue you can create an eps first and then run ghostscript from terminal


plot(1:10)
print("out.eps")


and then from the terminal

gs -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -sOutputFile="out.png" out.eps


Andreas Weber <andy1978>
Group Member
Sat 23 Aug 2014 03:46:53 PM UTC, original submission:  

Hi, I'm running Octave 3.8.1 on Xubuntu 14.04 x64.
Yesterday (22/08/2014) I updated the system and the "print" command stopped working. Everytime I try saving a plot in any of the allowed formats the following appears:

Error: /syntaxerror in -file-
Operand stack:
   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1918   1   3   %oparray_pop   1917   1   3   %oparray_pop   --nostringval--   1901   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push
Dictionary stack:
   --dict:1177/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--   --dict:40/64(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.14: Unrecoverable error, exit code 1

Data is plotted correctly on screen, the problem appears when I try to save the plot on a file. The Octave scripts I am using worked perfectly until two days ago. I tried to use a previous version of GLP GhostScript (9.10) but the issue persists.


Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 andy1978 (Posted a comment)
  • -email is unavailable- added by None (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-07 rik5 Open/ClosedOpen Closed
    2014-11-04 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code