ohadf / distractors

Finding Distractors In Images (CVPR 2015)
7 stars 4 forks source link

Problem with Edge Detection Toolbox (EdgeBoxes) #2

Closed fardinSS closed 7 years ago

fardinSS commented 7 years ago

So, I'm trying to run your code; following the Readme instruction, I've downloaded and installed all the mentioned toolboxes and modules. Running the script I encounter an error in the EdgeBoxes like this:

Single segment reached in 51.443 secs
----------------------------------------
55.6881 seconds 
Finding edge boxes...
------------------------------------------------------------------------
       Segmentation violation detected at Mon Mar 27 00:10:15 2017
------------------------------------------------------------------------
Configuration:
  Crash Decoding      : Disabled - No sandbox or build area path
  Crash Mode          : continue (default)
  Current Graphics Driver: Unknown hardware 
  Current Visual      : 0x40 (class 4, depth 24)
  Default Encoding    : UTF-8
  Deployed            : false
  GNU C Library       : 2.23 stable
  MATLAB Entitlement ID: Unknown
  MATLAB Root         : /usr/local/MATLAB/R2016b
  MATLAB Version      : 9.1.0.441655 (R2016b)
  OpenGL              : hardware
  Operating System    : Linux 4.4.0-66-generic #87-Ubuntu SMP Fri Mar 3 15:29:05 UTC 2017 x86_64
  Processor ID        : x86 Family 6 Model 58 Stepping 9, GenuineIntel
  Virtual Machine     : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  Window System       : The X.Org Foundation (11803000), display :0

Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
  RAX = 0000000000000000  RBX = 0000000000000000
  RCX = 0000000000000000  RDX = 0000000000000000
  RSP = 00007fd9e3255f30  RBP = 00007fd9e3255f40
  RSI = 00007fd8f3d68b70  RDI = 0000000000000000
  RIP = 00007fda00204a6e  EFL = 0000000000010206
   CS = 0033   FS = 0000   GS = 0000

Stack Trace (from fault):
[  0] 0x00007fda00204a6e      /usr/local/MATLAB/R2016b/bin/glnxa64/libmx.so+00399982 _ZN6matrix6detail10noninlined12mx_array_api11mxGetScalarEPK11mxArray_tag+00000014
[  1] 0x00007fd8979e2e59 /media/fardin/72BE0881BE084059/Code/external/pre-trained/lib/edgesDetectMex.mexa64+00003673 mexFunction+00000518
[  2] 0x00007fd9f435bcaa     /usr/local/MATLAB/R2016b/bin/glnxa64/libmex.so+00175274 mexRunMexFile+00000106
[  3] 0x00007fd9f43541a3     /usr/local/MATLAB/R2016b/bin/glnxa64/libmex.so+00143779
[  4] 0x00007fd9f4355345     /usr/local/MATLAB/R2016b/bin/glnxa64/libmex.so+00148293
[ 54] 0x00007fda0587d9af /usr/local/MATLAB/R2016b/bin/glnxa64/libmwservices.so+02640303
[ 60] 0x00007fda04568b5d                    /lib/x86_64-linux-gnu/libc.so.6+01076061 clone+00000109
[ 61] 0x0000000000000000                                   <unknown-module>+00000000

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.

Caught MathWorks::System::FatalException
[Please exit and restart MATLAB]>>

I'm running matlab 2016b in an ubuntu 16.04. Any kind of help would be appreciated

ohadf commented 7 years ago

I can't tell for sure, but it seems like this is related to the Edge Detection Toolbox and not to the distractor removal code.

Have you followed the Edge Detection Toolbox readme.txt and successfully compiled all .mex files?

fardinSS commented 7 years ago

Yes I followed and successfully compiled all.mex files without any warning and error in matlab2016, and run demo file from Edge Detection Toolbox also, it works correctly but in your code I meet this error unfortunately! Wondering if there's a solution to this problem.

ohadf commented 7 years ago

Try the following:

Do you still see a crash?

fardinSS commented 7 years ago

Thank you sir for your help it was of my MEX version. I solved it.