Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matlab crashes on forward #657

Closed
szagoruyko opened this issue Jul 9, 2014 · 4 comments
Closed

Matlab crashes on forward #657

szagoruyko opened this issue Jul 9, 2014 · 4 comments

Comments

@szagoruyko
Copy link

on R2014a Ubuntu 14.04 recent master branch crashes in mex on matcaffe_demo. matcaffe_init works well. I have no idea how to debug it.

I use LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/local/MATLAB/R2014a/bin/matlab to run MATLAB. And I also tried to switch all MATLAB internal libs to system in LD_PRELOAD, got the same crash.

@rbgirshick
Copy link
Contributor

I tried to reproduce this problem using Ubuntu 14.04 LTS, CUDA 5.5, Intel MKL, the latest Caffe master (commit b80fc86), and g++-4.6, but haven't had success. matcaffe_demo.m runs without crashing, also I didn't find it necessary to use any LD_PRELOADs. (My LD_LIBRARY_PATH is set to /opt/intel/mkl/lib/intel64:/opt/local/lib:/usr/local/cuda-5.5/lib64.)

Can you provide more details?
-- Which g++ version did you use to compile Caffe and matcaffe?
-- Which CUDA version are you using?
-- Are you using GPU or CPU mode? If CPU mode, which blas backend are you using? (atlas, openblas, mkl)
-- Please run matlab from the terminal and include the entire terminal output for a session where you: (1) start matlab, (2) run matcaffe_demo, and (3) observe the crash output.

It's good practice to include this type of information when reporting crashes since it's difficult to debug/reproduce otherwise.

@sguada
Copy link
Contributor

sguada commented Jul 17, 2014

When you say matcaffe_init works well means does it mean that you
cafffe('is_initialized') == 1

On Thursday, July 17, 2014, Ross Girshick notifications@github.com wrote:

I tried to reproduce this problem using Ubuntu 14.04 LTS, CUDA 5.5, Intel
MKL, the latest Caffe master (commit b80fc86
b80fc86), and g++-4.6, but haven't
had success. matcaffe_demo.m runs without crashing, also I didn't find it
necessary to use any LD_PRELOADs. (My LD_LIBRARY_PATH is set to
/opt/intel/mkl/lib/intel64:/opt/local/lib:/usr/local/cuda-5.5/lib64.)

Can you provide more details?
-- Which g++ version did you use to compile Caffe and matcaffe?
-- Which CUDA version are you using?
-- Are you using GPU or CPU mode? If CPU mode, which blas backend are you
using? (atlas, openblas, mkl)
-- Please run matlab from the terminal and include the entire terminal
output for a session where you: (1) start matlab, (2) run matcaffe_demo,
and (3) observe the crash output.

It's good practice to include this type of information when reporting
crashes since it's difficult to debug/reproduce otherwise.


Reply to this email directly or view it on GitHub
#657 (comment).

Sergio

@szagoruyko
Copy link
Author

@sguada @rbgirshick
I've found the problem, I edited imagenet deploy proto file. Sorry!
I guess there should be a check for input dimensions consistency, it's not good that it crashes silently.

@shelhamer shelhamer mentioned this issue Jul 18, 2014
@shelhamer
Copy link
Member

Closing, but noted input dimensions check suggestion in #501.

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

No branches or pull requests

4 participants