RuixueLiu / pmtk3

Automatically exported from code.google.com/p/pmtk3
MIT License
0 stars 0 forks source link

Initialization failure on Mac OS (Lion) and Matlab 2012a #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Run the initialization

What is the expected output? What do you see instead?

Matlab crashes gives this error message:

Process:         MATLAB [3801]
Path:            /Applications/MATLAB_R2012a.app/Contents/MacOS/StartMATLAB
Identifier:      com.mathworks.matlab
Version:         R2012a [7.14.0] (7.14.0)
Code Type:       X86-64 (Native)
Parent Process:  launchd [134]

Date/Time:       2012-09-16 00:31:51.371 -0400
OS Version:      Mac OS X 10.7.4 (11E53)
Report Version:  9

Interval Since Last Report:          79014 sec
Crashes Since Last Report:           4
Per-App Interval Since Last Report:  575374 sec
Per-App Crashes Since Last Report:   4
Anonymous UUID:                      6BFC8F52-6A0E-496B-9C3C-652CC662D37A

Crashed Thread:  3

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
objc[3801]: garbage collection is OFF

Dyld Error Message:
  Symbol not found: __gfortran_allocate64_array
  Referenced from: /Users/USER/Documents/*/glmnetMex.mexmaci64
  Expected in: /Applications/MATLAB_R2012a.app/sys/os/maci64/libgfortran.3.dylib

What version / revision of the product are you using? On what operating
system?

Jan11 2012, version 3

Mac OS Lion (10.7.4)

Please provide any additional information below.

The problem seems to appear at the last step of the initialization  "Compile 
mex"

Original issue reported on code.google.com by alexandr...@gmail.com on 16 Sep 2012 at 4:39

GoogleCodeExporter commented 8 years ago
Same problem here

Original comment by ed...@socialflow.com on 18 Sep 2012 at 3:10

GoogleCodeExporter commented 8 years ago
Seems to have the same problem.  In my case it failed at glmnet(x,y).  So I 
block out the entired %write glmnetInstalled.m part.  For now I'm able to run 
testPmtk3 to completion.

Original comment by vonphoms...@gmail.com on 4 Oct 2012 at 4:24

GoogleCodeExporter commented 8 years ago
I appear to have the same problem as well. Mac OS 10.8.2. The dump shows a 
similar problem.

Original comment by t...@vollmer.ws on 11 Dec 2012 at 2:00

GoogleCodeExporter commented 8 years ago
Same problem.

Original comment by ankgu...@gmail.com on 9 Jan 2013 at 10:20

GoogleCodeExporter commented 8 years ago
I also met this problem.

Original comment by bonn...@gmail.com on 21 Jan 2013 at 1:51

GoogleCodeExporter commented 8 years ago
same problem

Original comment by PuBoBi.C...@gmail.com on 12 Feb 2013 at 6:02

GoogleCodeExporter commented 8 years ago
same problem

Original comment by sandro.r...@gmail.com on 14 Feb 2013 at 11:36

GoogleCodeExporter commented 8 years ago
There is a try-catch statement after line "% /usr/local/lib/libgfortran.2.dylib 
is missing", but the catch statement fails to catch the error, as the error 
crashes Matlab. 

Solution: we know that glmnet() is failing on Mac, so the catch block should be 
executed. Replace that try-catch-end block with one line:

installed=false;

And then run initPmtk3 again.

I do not recommend following the solution in comment #2, as the function 
glmnetInstalled.m will not be created if you comment that block of code 
completely.

Original comment by ddel...@gmail.com on 26 Feb 2013 at 4:31

GoogleCodeExporter commented 8 years ago
Moved to GitHub: https://github.com/probml/pmtk3/issues/46

Original comment by irosen on 4 Jan 2014 at 2:37