Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Invalid Mex file. #58

Closed
ghost opened this issue Mar 12, 2013 · 41 comments
Closed

Invalid Mex file. #58

ghost opened this issue Mar 12, 2013 · 41 comments

Comments

@ghost
Copy link

ghost commented Mar 12, 2013

I saw a lot of people had a similar issue, didn't help me though. I'm running a Matlab R2012a 64 bit on a 64 bit windows, with sdk 7.1 and VS10. I added the system path, C:\opencv\build\x64\vc10
I downloaded the mexopencv from the website, they talk about making something from opencv, but I'm not sure what they're talking about. All I did, downloaded opencv and mexopencv, run make.mexopencv on matlab. It seems okay, but when I try using one of the functions it doesn't work. what steps am I missing?

Thanks

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

Did you reboot the machine after you added the path?

@ghost
Copy link
Author

ghost commented Mar 12, 2013

Yes, I did. I was just reading through others, and I feel like I'm missing something.
Like I can't find The _SECURE_SCL flag anywhere, on the website they mention it's in

C:\Users(Username)\AppData\Roaming\MathWorks\MATLAB(version)\mexopts.bat

I don't have the AppData folder, and when I search for mexopts.bat, it doesn't find anything. Also, I saw some stuff about compiling from source and copying something to something! I have no idea where they are and what to do with them.

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

Just to check, run mex -setup, choose Win SDK again, and make sure it saves mexopts.bat somewhere in your computer.

@ghost
Copy link
Author

ghost commented Mar 12, 2013

Found it. I opened it with a notepad. I'm not sure how to remove _SECURE_SCL=0 this? There's D_SECURE_SCL=0, do I just erase it?!

 @echo off
rem MSSDK71OPTS.BAT
rem
rem    Compile and link options used for building MEX-files
rem    using the Microsoft Windows Software Development Kit.
rem
rem    $Revision: 1.1.6.2 $  $Date: 2011/03/09 05:35:27 $
rem    Copyright 2010 The MathWorks, Inc.
rem
rem StorageVersion: 1.0
rem C++keyFileName: MSSDK71OPTS.BAT
rem C++keyName: Microsoft SDK
rem C++keyManufacturer: Microsoft
rem C++keyVersion: 7.1
rem C++keyLanguage: C++
rem
rem ********************************************************************
rem General parameters
rem ********************************************************************

set MATLAB=%MATLAB%
set VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0
set VCINSTALLDIR=%VSINSTALLDIR%\VC
rem In this case, LINKERDIR is being used to specify the location of the SDK
set LINKERDIR=C:\Program Files\Microsoft SDKs\Windows\v7.1\
set PATH=%VCINSTALLDIR%\bin\amd64;%VCINSTALLDIR%\bin;%VCINSTALLDIR%\VCPackages;%VSINSTALLDIR%\Common7\IDE;%VSINSTALLDIR%\Common7\Tools;%LINKERDIR%\bin\x64;%LINKERDIR%\bin;%MATLAB_BIN%;%PATH%
set INCLUDE=%VCINSTALLDIR%\INCLUDE;%LINKERDIR%\include;%LINKERDIR%\include\gl;%VCINSTALLDIR%\ATLMFC\INCLUDE;%INCLUDE%
set LIB=%VCINSTALLDIR%\LIB\amd64;%LINKERDIR%\LIB\X64;%VCINSTALLDIR%\ATLMFC\LIB\AMD64;%MATLAB%\extern\lib\win64;%LIB%
set MW_TARGET_ARCH=win64

rem ********************************************************************
rem Compiler parameters
rem ********************************************************************
set COMPILER=cl
set COMPFLAGS=/c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD
set OPTIMFLAGS=/O2 /Oy- /DNDEBUG
set DEBUGFLAGS=/Z7
set NAME_OBJECT=/Fo

rem ********************************************************************
rem Linker parameters
rem ********************************************************************
set LIBLOC=%MATLAB%\extern\lib\win64\microsoft
set LINKER=link
set LINKFLAGS=/dll /export:%ENTRYPOINT% /LIBPATH:"%LIBLOC%" libmx.lib libmex.lib libmat.lib /MACHINE:X64 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /manifest /incremental:NO /implib:"%LIB_NAME%.x" /MAP:"%OUTDIR%%MEX_NAME%%MEX_EXT%.map"
set LINKOPTIMFLAGS=
set LINKDEBUGFLAGS=/debug /PDB:"%OUTDIR%%MEX_NAME%%MEX_EXT%.pdb"
set LINK_FILE=
set LINK_LIB=
set NAME_OUTPUT=/out:"%OUTDIR%%MEX_NAME%%MEX_EXT%"
set RSP_FILE_INDICATOR=@

rem ********************************************************************
rem Resource compiler parameters
rem ********************************************************************
set RC_COMPILER=rc /fo "%OUTDIR%mexversion.res"
set RC_LINKER=

set POSTLINK_CMDS=del "%LIB_NAME%.x" "%LIB_NAME%.exp"
set POSTLINK_CMDS1=mt -outputresource:"%OUTDIR%%MEX_NAME%%MEX_EXT%;2" -manifest "%OUTDIR%%MEX_NAME%%MEX_EXT%.manifest"
set POSTLINK_CMDS2=del "%OUTDIR%%MEX_NAME%%MEX_EXT%.manifest"
set POSTLINK_CMDS3=del "%OUTDIR%%MEX_NAME%%MEX_EXT%.map"

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

Recently there was a change in mexopencv.make syntax. Use instead, mexopencv.make('clean', true)

@ghost
Copy link
Author

ghost commented Mar 12, 2013

okay, well that help to clean it. But I'm still getting an invalid mex file. I reboot and did everything again, still doesn't work.

@amroamroamro
Copy link
Collaborator

@ramin0711:
Could you run the following and post the first two lines printed: mexopencv.make('dryrun',true, 'force',true)

Also you might wanna use a tool like Dependency Walker on the MEX-files to confirm that all the dependencies are present on the path.

btw, double check that you added C:\opencv\build\x64\vc10\bin to the PATH env. var. (note the bin directory at the end)

@ghost
Copy link
Author

ghost commented Mar 12, 2013

I double checked the path, I have the bin. I'm not sure how to use the Dependency Walker to check Mex-files.

Here's the first two lines,
Thanks for helping me out, it's been a long long time I'm trying to get this to work.

mex -largeArrayDims -D_SECURE_SCL=1 -I'C:\mexopencv\include' -I'C:\opencv\build\include' -L'C:\opencv\build\x64\vc10\lib'  -lopencv_calib3d244 -lopencv_contrib244 -lopencv_core244 -lopencv_features2d244 -lopencv_flann244 -lopencv_gpu244 -lopencv_haartraining_engine -lopencv_highgui244 -lopencv_imgproc244 -lopencv_legacy244 -lopencv_ml244 -lopencv_nonfree244 -lopencv_objdetect244 -lopencv_photo244 -lopencv_stitching244 -lopencv_ts244 -lopencv_video244 -lopencv_videostab244 -c 'C:\mexopencv\src\MxArray.cpp' -outdir 'C:\mexopencv\lib'
mex -largeArrayDims -D_SECURE_SCL=1 -I'C:\mexopencv\include' -I'C:\opencv\build\include' -L'C:\opencv\build\x64\vc10\lib'  -lopencv_calib3d244 -lopencv_contrib244 -lopencv_core244 -lopencv_features2d244 -lopencv_flann244 -lopencv_gpu244 -lopencv_haartraining_engine -lopencv_highgui244 -lopencv_imgproc244 -lopencv_legacy244 -lopencv_ml244 -lopencv_nonfree244 -lopencv_objdetect244 -lopencv_photo244 -lopencv_stitching244 -lopencv_ts244 -lopencv_video244 -lopencv_videostab244 'C:\mexopencv\src\+cv\CamShift.cpp' 'C:\mexopencv\lib\MxArray.obj' -output 'C:\mexopencv\+cv\CamShift'

@amroamroamro
Copy link
Collaborator

Sorry but i must ask again if you are sure about the bin thing; you previously said you added C:\opencv\build\x64\vc10 (without the bin), but you want the folder with all the DLLs on the PATH..

Plus what exactly is the error message? If its something like:

Invalid MEX-file, ..., specified module could not be found

it usually means a missing DLL file in your system path (OpenCV DLLs in this case)

To use "dependeny walker", just download the tool, run it, and open one of the compiled MEX-files xxx.mexw64 inside it. It will show you a list of the dependencies

@ghost
Copy link
Author

ghost commented Mar 12, 2013

Gotcha, I forgot to add the bin here, but I did add it to system path. the error I'm getting is this,

Error using CascadeClassifier_
Invalid path or file specified

When I want to do the mexopencv.make, I have the add the path for mexopencv first and then do it.

@ghost
Copy link
Author

ghost commented Mar 12, 2013

I redid everything again, matlab crashes every time I run my code

@amroamroamro
Copy link
Collaborator

ok then, that error message doesn't look like a compilation or PATH issue.. It appears to be originating from this line

I'm guessing you are running the samples\facedetect.m demo? It sounds like it couldn't find the cascade XML file. It should be located at: C:\mexopencv\test\haarcascade_frontalface_alt2.xml for you. Are you sure you have it?

@ghost
Copy link
Author

ghost commented Mar 12, 2013

I have the xml file in the same folder, it was complaining about the mex function, now it just crash. Do I have to change D_SECURE_SCL=0 to one or just leave it? Any suspicions on why it crashes?

@amroamroamro
Copy link
Collaborator

It shouldn't be necessary for you to manually change the _SECURE_SCL value, since it is overridden in the mex call inside +mexopencv/make.m. Please remember that if you change any build flag, you have to clean and recompile all MEX files again. The idea is that it must match whatever value was used when OpenCV was compiled (afaik, the official prebuilt windows binaries are compiled with SECURE_SCL=1)

Now I'm not sure why MATLAB crashes, but it should create a dump/log file after any crash (possibly in the %TEMP% folder). Inspect the stack trace in that log file, it should give you an indication to what caused it..

Other than that, I really don't know what's wrong in your case :)

@ghost
Copy link
Author

ghost commented Mar 12, 2013

Here's the thing, I change the _SECURE_SCL to 1, and matlab crashed, I turn it back to what it was and
Invalid path or file specified
I did reboot and clean every time I change the path. I added C:\opencv\build\x64\vc10\bin to both user and system variables. So I'm just trying to figure out what is that I missed or didn't do right.

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

Can you post the output of the following?

computer
c = mex.getCompilerConfigurations;
c.Details

@ghost
Copy link
Author

ghost commented Mar 12, 2013

Sure, it's

>> computer
ans =
PCWIN64

>> c = mex.getCompilerConfigurations;
>> c.Details
ans = 

  mex.CompilerConfigurationDetails
  Package: mex

  Properties:
         CompilerExecutable: 'cl'
              CompilerFlags: [1x115 char]
          OptimizationFlags: '/O2 /Oy- /DNDEBUG'
                 DebugFlags: '/Z7'
           LinkerExecutable: 'link'
                LinkerFlags: [1x327 char]
    LinkerOptimizationFlags: ''
           LinkerDebugFlags: '/debug /PDB:"%OUTDIR%%MEX_NAME%%MEX_EXT%.pdb"'

  Methods

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

Umm, that looks normal. Did you try any other function than samples\facedetect? Do you still get the same error message like Invalid path or file specified or anything else? If possible, can you post a crash log?

@ghost
Copy link
Author

ghost commented Mar 12, 2013

Okay, I used

im = imread('C34.jpg');
 gr = cv.cvtColor(im, 'RGB2GRAY');

and here is the error. In order to get it to crash, I have to change it _SECURE_SCL to 1, do you want that log?

Error using cv.cvtColor
Unexpected Standard exception from MEX file.
What() is:..\..\..\src\opencv\modules\imgproc\src\color.cpp:3326: error: (-215) scn
== 3 || scn == 4

@ghost
Copy link
Author

ghost commented Mar 12, 2013

I try this one as well,

camera = cv.VideoCapture();
pause(2);

The camera turn on with no error.

@amroamroamro
Copy link
Collaborator

@ramin0711 : I just submitted a PR that was merged. Retrieve the latest changes, recompile, and run cv.getBuildInformation() and post the output here please.

@ghost
Copy link
Author

ghost commented Mar 12, 2013

Okay, I replace the mexopencv folder with the updated version on the web ( is that what you wanted me to do?), so I did everything again, and here's the result to cv.getBuildInformation()

General configuration for OpenCV 2.4.4 =====================================
  Version control:               2.4.4

  Platform:
    Host:                        Windows 6.1 x86
    CMake:                       2.8.10.2
    CMake generator:             Visual Studio 10 Win64
    CMake build tool:            C:/PROGRA~2/MICROS~2.0/Common7/IDE/devenv.com
    MSVC:                        1600

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/x86_amd64/cl.exe  (ver 16.0.40219.1)
    C++ flags (Release):         /DWIN32 /D_WINDOWS /W4  /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /MD /O2 /Ob2 /D NDEBUG 
    C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4  /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    C Compiler:                  c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/x86_amd64/cl.exe
    C flags (Release):           /DWIN32 /D_WINDOWS /W3   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /MD /O2 /Ob2 /D NDEBUG 
    C flags (Debug):             /DWIN32 /D_WINDOWS /W3   /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    Linker flags (Release):      /STACK:10000000 /machine:x64   /INCREMENTAL:NO 
    Linker flags (Debug):        /STACK:10000000 /machine:x64   /debug /INCREMENTAL 
    Precompiled headers:         YES

  OpenCV modules:
    To be built:                 core imgproc flann highgui features2d calib3d ml video objdetect contrib nonfree photo legacy gpu stitching ts videostab
    Disabled:                    java world
    Disabled by dependency:      -
    Unavailable:                 androidcamera ocl python

  GUI: 
    QT 4.x:                      NO
    Win32 UI:                    YES
    OpenGL support:              NO

  Media I/O: 
    ZLib:                        build (ver 1.2.7)
    JPEG:                        build (ver 62)
    PNG:                         build (ver 1.5.12)
    TIFF:                        build (ver 42 - 4.0.2)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)

  Video I/O:
    FFMPEG:                      YES (prebuilt binaries)
      codec:                     YES (ver 53.61.100)
      format:                    YES (ver 53.32.100)
      util:                      YES (ver 51.35.100)
      swscale:                   YES (ver 2.1.100)
      gentoo-style:              YES
    OpenNI:                      NO
    OpenNI PrimeSensor Modules:  NO
    PvAPI:                       NO
    GigEVisionSDK:               NO
    DirectShow:                  YES
    XIMEA:                       NO

  Other third-party libraries:
    Use IPP:                     NO
    Use Eigen:                   NO
    Use TBB:                     NO
    Use OpenMP:                  NO
    Use GCD                      NO
    Use Concurrency              YES
    Use C=:                      NO
    Use Cuda:                    NO
    Use OpenCL:                  NO

  Python:
    Interpreter:                 C:/Python27/python.exe (ver 2.7.2)

  Java:
    ant:                         C:/Program Files (x86)/apache-ant/bin/ant.bat (ver 1.8.4)
    JNI:                         c:/Program Files (x86)/Java/jdk1.6.0_39/include c:/Program Files (x86)/Java/jdk1.6.0_39/include/win32 c:/Program Files (x86)/Java/jdk1.6.0_39/include
    Java tests:                  YES

  Documentation:
    Build Documentation:         NO
    Sphinx:                      NO
    PdfLaTeX compiler:           NO

  Tests and samples:
    Tests:                       YES
    Performance tests:           YES
    C/C++ Examples:              NO

  Install path:                  C:/slave/builds/WinInstallerMegaPack/build/install

  cvconfig.h is in:              C:/slave/builds/WinInstallerMegaPack/build
-----------------------------------------------------------------

@amroamroamro
Copy link
Collaborator

@kyamagu: ok, so it is as expected; When OpenCV was compiled _SECURE_SCL was undefined, which defaults to _SECURE_SCL=1

Therefore mexopencv should be compiled with _SECURE_SCL=1 as well (or omitted all together), right?

@ramin0711:
sorry, could you run this again and post the output of:

c = mex.getCompilerConfigurations;
c.Details.CompilerFlags

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

Yes, _SECURE_SCL should be set to 1 by default. And, indeed the following error looks like unmatched _SECURE_SCL flag.

Error using cv.cvtColor
Unexpected Standard exception from MEX file.

@ramin0711 If you ever changed _SECURE_SCL in the mexopencv.make file, return it back to 1. And please post the crash report.

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

Yes, by default VS2010 has the _SECURE_SCL set to 1. That's why we add
this in the build script.

@amroamroamro
Copy link
Collaborator

@kyamagu:
maybe I wasn't entirely correct. Reading that page again carefully, it turns out the behavior has changed starting with VS2010. It says:

VS2010

In debug mode, the default value for _SECURE_SCL is 1, .... In release mode, the default value for _SECURE_SCL is 0.

VS2008

The default value for _SECURE_SCL is 1.

So since this flag is undefined in both opencv debug/release builds of VS2010, and since mexopencv links against the release builds, we should NOT set it to 1...

In my configuration, I never touched the default mexopts.bat, so perhaps _SECURE_SCL=0 which is there by default has a higher priority than the one we specify in mexopencv.make, namely _SECURE_SCL=1??

@ghost
Copy link
Author

ghost commented Mar 12, 2013

@kyamagu I didn't change _SECURE_SCL in the mexopencv.make, I changed it in the mexopts.bat file from 0 to 1, and that's when it crashed. by default when I do the mex -setup in matlab the _SECURE_SCL in mexopts.bat is zero. If I leave it as it is, which is a 0, it won't crash, but give me those errors I mentioned before. I can change that 0 to 1 in mexopts.bat to get it to crash and send you that log if you want.

@amroamroamro here's the result

>> c = mex.getCompilerConfigurations;
>> c.Details.CompilerFlags

/c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

@amro That's interesting. I can't confirm this yet since I need to
prepare Windows environment, but can you use verbose flag in mex
command and see what's going on?

Kota

@amroamroamro
Copy link
Collaborator

@kyamagu
I just tested this, and it looks like setting the value in mexopencv.make the way we did has no effect if it it is explicitly set with /D_SECURE_SCL=0 in mexopts.bat (which is there by default).

The correct way to override it is by issuing:

mex COMPFLAGS="$COMPFLAGS /D_SECURE_SCL=1" ...

To make things worse, i think that this is no longer necessary for VS2010 onwards (since release mode defaults to a value of 1). And it only should be considered for prior VS versions.

If you want, I will make the necessary changes and submit a pull-request. I will update both README file and make.m

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

@amro Thanks, yes please send me a pull request.

@amroamroamro
Copy link
Collaborator

@kyamagu: done. sorry this took me longer than I though...

@ghost
Copy link
Author

ghost commented Mar 12, 2013

What did you change exactly?

@amroamroamro
Copy link
Collaborator

@ramin0711: I fixed the whole _SECURE_SCL flag issue. The end result is that for your case, you shouldn't have to make any manual changes.

In the mean time, undo any changes you made to mexopts.bat or +mexopencv/make.m, recompile everything, and try the following simple example:

img = zeros([100,100,3],'uint8');
img = cv.circle(img, [50,50], 20, 'Color',randi(255,[1,3]), 'Thickness',4);
imshow(img)

@kyamagu
Copy link
Owner

kyamagu commented Mar 12, 2013

@amroamroamro I appreciate!

@ramin0711 If you think you messed up the mexopts.bat, just do mex -setup again and overwrite the file to the default. And try what @amroamroamro suggested.

@ghost
Copy link
Author

ghost commented Mar 12, 2013

@amroamroamro Thanks amro, it's working now. Although, one problem I have is that whenever I run one of the matlab files it works fine the first time, but crashes the second time. Thanks for taking the time to help me out.

@amroamroamro
Copy link
Collaborator

@ramin0711: i don't know, hard to say without debugging it..

Can you post the crash report, MATLAB should create files named like matlab_crash_dump.* in the temp folder (at least that's the case for me, i'm running R2012b on WinXP 32-bit)

@ghost
Copy link
Author

ghost commented Mar 13, 2013

It's not big deal, I can live with it. It seems like when I use the camera, if I want to I run the code again, I have to delete the camera from variable list manually, if I use clear all or anything else matlab crashes, I don't know if there's any other easier way to fix the problem. I can send you the crash report, but it's like 12 mb and I can't open the file, how would you like me to send it?

@amroamroamro
Copy link
Collaborator

@ramin0711: sorry for the late reply. Are you still experiencing crashes with this? If so you should look for the text crash report (dont need the binary dump file)..

@lidiadunareanu
Copy link

lidiadunareanu commented May 22, 2013

I have the same problem, matlab crashes the second time I run the program. I am using mexopencv in Ubuntu 12.04 with Opencv 2.4.1. Here is the matlab crash dump file:

------------------------------------------------------------------------
       Segmentation violation detected at Wed May 22 18:35:21 2013
------------------------------------------------------------------------

Configuration:
  MATLAB Version:   7.9.0.529 (R2009b)
  Operating System: Linux 3.2.0-36-generic #57 SMP Fri Jan 18 10:22:30 EET 2013 x86_64
  GNU C Library:    2.15 stable
  Window System:    The X.Org Foundation (11103000), display :0.0
  Current Visual:   0x23 (class 4, depth 24)
  Processor ID:     x86 Family 6 Model 5 Stepping 5, GenuineIntel
  Virtual Machine:  Java 1.6.0_12-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
  Default Encoding:  UTF-8

Fault Count: 1

Register State:
  rax = 0000000000000000   rbx = 00007fba2894adb0
  rcx = 0000000000000000   rdx = 0000000000000031
  rbp = 00007fba2894b150   rsi = 0000000000000000
  rdi = 00007fba3a46e970   rsp = 00007fba2894ad30
   r8 = 00007fb9fc0061c8    r9 = 00007fb9fc0060e8
  r10 = 0000000000000000   r11 = 00007fb9fc006000
  r12 = 00007fba27eb8640   r13 = 00007fba2894adb0
  r14 = 00007fba27eb8628   r15 = 00007fba2894af30
  rip = 00007fba37ae4676   flg = 0000000000010246

Stack Trace:
  [0] libgcc_s.so.1:0x00007fba37ae4676(0x7fba2895b1f0, 0x7fb98eb81611, 0x7fba279611a8 "add", 0x7fb97c10f7d8 "/home/lidia/OpenCV-2.4.1/modules..")

This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.

If it is an official MathWorks function, please
follow these steps to report this problem to The MathWorks so we
have the best chance of correcting it:

The next time MATLAB is launched under typical usage, a dialog box will
open to help you send the error log to The MathWorks. Alternatively, you
can send an e-mail to segv@mathworks.com with the following file attached:
    /home/lidia/matlab_crash_dump.2888

If the problem is reproducible, please submit a Service Request via:
    http://www.mathworks.com/support/contact_us/ts/help_request_1.html

A technical support engineer might contact you with further information.

Thank you for your help. MATLAB may attempt to recover, but even if recovery appears successful,
we recommend that you save your workspace and restart MATLAB as soon as possible.

Please help me with this big problem because i am using it for my license project and i need it to work not just one time. Thank you!

@kyamagu
Copy link
Owner

kyamagu commented May 22, 2013

@lidiadunareanu Your issue is not the same. See this to fix.

@lidiadunareanu
Copy link

Thank you.

--- On Wed, 5/22/13, Kota Yamaguchi notifications@github.com wrote:

From: Kota Yamaguchi notifications@github.com
Subject: Re: [mexopencv] Invalid Mex file. (#58)
To: "kyamagu/mexopencv" mexopencv@noreply.github.com
Cc: "lidiadunareanu" lidiadunareanu@yahoo.com
Date: Wednesday, May 22, 2013, 3:48 PM

@lidiadunareanu Your issue is not the same. See this to fix.


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants