-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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 #1761
Comments
This issue pertains to the build cycle. The provided patch for macOS isn't a good fix. Will put up a pull request with the proper installation instructions. The issue lies in a dependency of caffe, called leveldb [EDIT] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Posting rules
Error
).Posts which do not follow these rules will be ignored, closed, or reported with no further clarification.
Issue Summary
Executed Command (if any)
Note: add
--logging_level 0 --disable_multi_thread
to get higher debug information.openpose % ./build/examples/openpose/openpose.bin --tracking 5 --number_people_max 1 --logging_level 0 --disable_multi_thread
OpenPose Output (if any)
Starting OpenPose demo...
Configuring OpenPose...
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToProducer():210
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToProducerType():170
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToPoseMode():11
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToPoseModel():33
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToScaleMode():82
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToHeatMapScaleMode():116
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToDetector():147
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToDetector():147
Starting thread(s)...
Running configureThreadManager...
/Users/AnanayG/openpose/openpose/src/openpose/producer/producer.cpp:createProducer():417
Errors (if any)
src/tcmalloc.cc:332] Attempt to free invalid pointer 0x7ff81e508bd0
zsh: abort ./build/examples/openpose/openpose.bin --tracking 5 --number_people_max 1 0
Type of Issue
You might select multiple topics, delete the rest:
Your System Configuration
openpose % ./build/examples/openpose/openpose.bin --tracking 5 --number_people_max 1 --logging_level 0 --disable_multi_thread
Starting OpenPose demo...
Configuring OpenPose...
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToProducer():210
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToProducerType():170
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToPoseMode():11
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToPoseModel():33
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToScaleMode():82
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToHeatMapScaleMode():116
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToDetector():147
/Users/AnanayG/openpose/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToDetector():147
Starting thread(s)...
Running configureThreadManager...
/Users/AnanayG/openpose/openpose/src/openpose/producer/producer.cpp:createProducer():417
src/tcmalloc.cc:332] Attempt to free invalid pointer 0x7ff81e508bd0
zsh: abort ./build/examples/openpose/openpose.bin --tracking 5 --number_people_max 1 0
Release
section (e.g., 1.2.0)?1.7 [Lateest]
lsb_release -a
in Ubuntu): macOSgcc --version
in Ubuntu or VS version in Windows): 5.4.0, ... (Ubuntu); VS2015 Enterprise Update 3, VS2017 community, ... (Windows); ...?:openpose % gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Non-default settings:
BUILD_PYTHON: Yes
BUILD_Caffe: No
Caffe_LIBS: /usr/local/libs/libcaffe.dylib
Caffe_INCLUDE_DIR: /usr/local/include/caffe
3rd-party software:
Caffe version: Default from OpenPose, custom version, ...?: Downloaded from Homebrew
CMake version (
cmake --version
in Ubuntu):openpose % cmake --version
cmake version 3.18.4
OpenCV version: pre-compiled
apt-get install libopencv-dev
(only Ubuntu); OpenPose default (only Windows); compiled from source? If so, 2.4.9, 2.4.12, 3.1, 3.2?; ...?:openpose % brew install opencv
Updating Homebrew...
Warning: opencv 4.5.0_4 is already installed and up-to-date
If GPU mode issue: No [CPU Mode]
cat /usr/local/cuda/version.txt
in most cases): N/Anvidia-smi
in Ubuntu): N/AIf CPU-only mode issue: Yes
If Python API: Yes
python -c "import numpy; print numpy.version.version"
in Ubuntu): 1.16.3If Windows system: No
If speed performance issue: No
I think the issue is a common one, as far as I could tell from online searches, its when the cpp allocs from one allocation library and then free's the memory from another. Since v1.7 was released 2 days ago I think this issue might have gone unnoticed. The library works, and on another laptop with the same build etc [different hardware], the OP Wrapper gave the datapoints to the python code before crashing, so am fairly certain that its not the build process or the python bindings that has caused this issue.
The text was updated successfully, but these errors were encountered: