[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38166] crash when printing with no output fil
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr) |
Date: |
Sat, 31 Aug 2013 20:44:27 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36 |
Update of bug #38166 (project octave):
Summary: crash on incorrect print command => crash when
printing with no output file (i.e. spooling via lpr)
_______________________________________________________
Follow-up Comment #5:
In the absence of a file name, the print command produces a temporary file
which is spooled to the system a printer via lpr. Using the "-debug" will
provide information for debugging what goes wrong (the print command works for
me on MacOSX)
For Gnuplot ...
print -dpsc -debug
GPL Ghostscript 9.06: **** Could not open the file .
---- begin /var/tmp/oct-YP9zhA.ps ----
%!PS-Adobe-3.0
<< /Margins [0 0] /.HWMargins [0 0 0 0] /PageOffset [18 180] >> setpagedevice
%%EOF
----- end /var/tmp/oct-YP9zhA.ps -----
Ghostscript command: '/opt/local/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER
-sDEVICE=pswrite -dLanguageLevel=1 -dEmbedAllFonts=true -dEPSCrop
-sPAPERSIZE=letter -dFIXEDMEDIA /var/tmp/oct-YP9zhA.ps
/var/tmp/oct-noAx1s.eps'
lpr command: '/usr/bin/lpr -l'
gnuplot-pipeline: '/opt/local/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER
-sDEVICE=pswrite -dLanguageLevel=1 -dEmbedAllFonts=true -dEPSCrop
-sPAPERSIZE=letter -dFIXEDMEDIA /var/tmp/oct-YP9zhA.ps /var/tmp/oct-noAx1s.eps
| /usr/bin/lpr -l ; rm /var/tmp/oct-noAx1s.eps ; rm /var/tmp/oct-YP9zhA.ps'
For FLTK ...
print -dpsc -debug
---- begin /var/tmp/oct-IYbcMv.ps ----
%!PS-Adobe-3.0
<< /Margins [0 0] /.HWMargins [0 0 0 0] /PageOffset [18 180] >> setpagedevice
%%EOF
----- end /var/tmp/oct-IYbcMv.ps -----
Ghostscript command: '/opt/local/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER
-sDEVICE=pswrite -dLanguageLevel=1 -dEmbedAllFonts=true -dEPSCrop
-sPAPERSIZE=letter -dFIXEDMEDIA -sOutputFile="-" /var/tmp/oct-IYbcMv.ps -'
lpr command: '/usr/bin/lpr -l'
fltk-pipeline: '/opt/local/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER
-sDEVICE=pswrite -dLanguageLevel=1 -dEmbedAllFonts=true -dEPSCrop
-sPAPERSIZE=letter -dFIXEDMEDIA -sOutputFile="-" /var/tmp/oct-IYbcMv.ps - |
/usr/bin/lpr -l ; rm /var/tmp/oct-IYbcMv.ps'
The diff below will provide more info for debugging.
diff --git a/scripts/plot/print.m b/scripts/plot/print.m
--- a/scripts/plot/print.m
+++ b/scripts/plot/print.m
@@ -292,6 +292,10 @@
error ("print: no figure to print");
endif
+ if (opts.debug)
+ opts
+ endif
+
orig_figure = get (0, "currentfigure");
set (0, "currentfigure", opts.figure);
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38166>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #38166] crash when printing with no output file (i.e. spooling via lpr),
Ben Abbott <=