bugGNU Octave - Bugs: bug #39100, tsa MEX: "invalid image"

 
 

bug #39100: tsa MEX: "invalid image"

Submitter:  None
Submitted:  Tue 28 May 2013 05:06:58 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Works For Me Assigned to:  None
Originator Name:  Ingmar Voigt Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * other
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 16 Nov 2016 07:49:41 PM UTC, comment #4: 

Closing as "works for me" based on comment #2 and several years of inactivity.

If there is still a real bug with the mex files in the tsa package, this bug can be reopened or a new one can be reported.

Mike Miller <mtmiller>
Group Member
Wed 29 May 2013 06:59:13 AM UTC, comment #3: 

Nitzan,

sorry indeed I fixed the script to make it work with octave (also attached, IsomapR1.zip):

r2 = 1-corrcoef(reshape(real(L2_distance(Y.coords{di}, Y.coords{di})),N^2,1),D).^2;


(file #28201)

Ingmar Voigt <ingmar_voigt>
Wed 29 May 2013 05:35:56 AM UTC, comment #2: 

Could not reproduce this with Octave3.6.4 mingw on my win7 x64.

The Isomap script runs with no errors until it gets to line 180 and warns about deprecated corrcoef which is not compatible with matlab's corrcoef:

warning: corrcoef is not equivalent to Matlab and will be removed from a future version of Octave; for similar functiona
lity see corr

Since the octave's corcoeff produce a scalar output when the input are ttwo row vectros the next line 181 produce an "out of bounds indexing error":

error: Isomap: A(I,J): row index out of bounds; value 2 out of bound 1
error: called from:
error:   C:\isomap\Isomap.m at line 181, column 16

This is unrelated to the issue reported by this discussion.

Nitzan Arazi <nitnit>
Tue 28 May 2013 05:14:20 PM UTC, comment #1: 

IMPORTANT NOTE:
using dijkstra.dll from http://web.mit.edu/cocosci/isomap/code/ is not recommendable, this used to generate unrelated issues

just do not download the script will run fine anyways

Ingmar Voigt <ingmar_voigt>
Tue 28 May 2013 05:06:58 PM UTC, original submission:  

"tsa" package in Windows MinGW build generates error in Windows Server 2008 R2 (similar to Windows 7)

Running several functions generates an error message box from Windows entitled "octave.exe - Invalid Image",  message box body is "Octave3.6.4_gcc4.6.2\share\octave\packages\tsa-4.2.4\i686-pc-mingw32-api-v48+\sumskipnan_mex.mex is not intended for execution with windows or contains an error". In fact I could not even find the file ...

The issues stopped occurring, after unloading the "tsa" package
Unfortunately I could not really track down the faulting instruction, however it can be reproduced with the code from http://web.mit.edu/cocosci/isomap/isomap.html

Code: http://web.mit.edu/cocosci/isomap/code/

Instructions to execute (from http://web.mit.edu/cocosci/isomap/code/Readme):

load swiss_roll_data
D = L2_distance(X_data(:,1:1000), X_data(:,1:1000), 1);
options.dims = 1:10;
% this is the core script where the error occurs
[Y, R, E] = Isomap(D, 'k', 7, options);


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #28201:  IsomapR1.zip added by ingmar_voigt (11KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by nitnit (Posted a comment)
  • -email is unavailable- added by ingmar_voigt (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-16 mtmiller StatusNone Works For Me
        Open/ClosedOpen Closed
        Release3.6.4 other
    2013-05-29 ingmar_voigt Attached File- Added IsomapR1.zip, #28201

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code