-
Notifications
You must be signed in to change notification settings - Fork 924
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
Attempt to free invalid pointer. Abort trap: 6 #100
Comments
If you're still getting this error, I would make sure you are compiling Caffe and OpenCV correctly. In particular, I'd recommend making sure you're using the same version of the library at run time (via your LD_LIBRARY_PATH) as at compile time. Closing for now. |
Apologies if I'm missing something but I've tried this install on a two of my Macs to no avail and still have the same issue. Note, I didn't set the LD_LIBRARY_PATH per the Caffe instructions and caffe works CPU only. |
Actually, I solved this as it appears there a few conflicts that could be resolved via:
resulted in the error: But if you were to re-order them per below, then everything works.
Thus, you may need to update the
|
Thanks a lot it is working now.
…On 3 Jul 2017 8:50 a.m., "Denny Lee" ***@***.***> wrote:
Actually, I solved this as it appears there a few conflicts that could be
resolved via:
- Per the Caffe OSX Installation Instructions
<http://caffe.berkeleyvision.org/install_osx.html>, when installing
opencv you may want to install using the flag --without-numpy so it
uses the numpy that is stilled via pip instead of installing of having
brew install another copy of numpy.
- If you're using CPU-only, you may also want to use the flag
--without-opencl when installing opencv.
- Within the Deep Visualization Toolbox
<https://github.com/dennyglee/deep-visualization-toolbox/blob/master/README.md>
instructions, if you already have scipy installed via pip, you may
want so skip the step to install scipy via brew.
- Even after all of this, the order of the imports may still result in
an Abort trap: 6 error. For example, running the imports in this order:
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import caffe
resulted in the error:
>>> src/tcmalloc.cc:283] Attempt to free invalid pointer 0x7ff514a70e80
Abort trap: 6
But if you were to re-order them per below, then everything works.
import numpy as np
import caffe
import matplotlib.pyplot as plt
from PIL import Image
Thus, you may need to update the run_toolbox.py file so that the top of
it has:
# added this to avoid "Abort Trap 6" error
import numpy as np
import caffe
import cv2
import scipy
import skimage
# added this to avoid "Abort Trap 6" error
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#100 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVPdLHkUswL5zpKv-fQVL6wNHbRH2_LTks5sKF4NgaJpZM4Mpa_V>
.
|
Related to the issue [Attempt to free invalid pointer. Abort trap: 6 BVLC#100](yosinski/deep-visualization-toolbox#100)
…w with python 2.7.12 Related to the issue [Attempt to free invalid pointer. Abort trap: 6 yosinski#100](yosinski#100)
After setting up toolbox using the instructions in the end I am getting below error. Working on Mac OS x sierra 10.12.3 with CPU only.
I0326 18:17:51.248069 3768251328 net.cpp:804] Ignoring source layer data
I0326 18:17:51.290961 3768251328 net.cpp:804] Ignoring source layer loss
Running toolbox. Push h for help or q to quit.
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x7fe6871717e0
Abort trap: 6
The text was updated successfully, but these errors were encountered: