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

 
 

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

Submitted by:  Armin Müller <arm_in>
Submitted on:  Wed 05 Nov 2014 11:58:50 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: DuplicateAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.2Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Member
Wed 05 Nov 2014 11:58:50 AM UTC, original submission:

Create some figure

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by arm_in (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 05 Nov 2014 09:37:41 PM UTCphilipnienhuisStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1