bugGNU Octave - Bugs: bug #43534, Figure "Save As" PNG...

 
 

bug #43534: Figure "Save As" PNG doesn't work

Submitter:  Armin Müller <arm_in>
Submitted:  Wed 05 Nov 2014 11:58:50 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 05 Nov 2014 09:37:41 PM UTC, comment #1: 

This is a classical pitfall on Windows that pops up regularly.

Octave shouldn't be installed in a path containing spaces. Just live with it.

This also holds for many of Octave's dependencies (e.g., to use Ghostscript, the /path/to/gs.exe shouldn't contain spaces either).

On other OS-es Octave doesn't like spaces in path names either, but it is on Windows that spaces in path- and filenames are widespread.

I think there are many duplicates and variants of this bug report and many posts in the help-octave ML about this.
Just a recent example: bug #42160

(Maybe we should add a check in the MXE-built installer to detect spaces and other unacceptable characters in the installation paths. I do not know if this is possible.)

Philip Nienhuis <philipnienhuis>
Group Member
Wed 05 Nov 2014 11:58:50 AM UTC, original submission:  

Create some figure


x=rand(20,1);
hist(x)


Click to save figure

Figure 1 => File => Save As => "D:\test.png"

... gives an error:

>> Der Befehl "C:\Program" ist entweder falsch geschrieben oder konnte nicht gefunden werden.


Probably, Octave wants to access some binary which is located in "C:\Program Files" or "C:\Program Files (x86)", but the path contains some space characters. I guess that it would work on a standard installation, where "C:\Octave" is the installation folder. Some insight:

saveas.m, 105
print.m, 422
_fltk_print_.m, 125
_ghostscript_.m, 167

cmd = "C:\Program Files (x86)\Octave\Octave-3.8.2\bin\gs.exe" -dQUIET -dNOPAUSE -dBATCH -dSAF
ER -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r150x150 -dEPSCrop -sOutputFile="
C:/Program Files (x86)/Octave/Octave-3.8.2/share/octave/3.8.2/m/plot/util\test.png" -

_fltk_print_.m, 166

Der Befehl "C:\Program" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

Happened on Windows 7 (64bit), MXE Octave 3.8.2-3 from http://mxeoctave.osuv.de/

Armin Müller <arm_in>

 

(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 arm_in (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-11-05 philipnienhuis StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code