Skip to content

Attempt to free invalid pointer #1761

@ananay22

Description

@ananay22

Posting rules

  1. Duplicated posts will not be answered. Check the FAQ section, other GitHub issues, and general documentation before posting. E.g., low-speed, out-of-memory, output format, 0-people detected, installation issues, ...).
  2. Fill the Your System Configuration section (all of it or it will not be answered!) if you are facing an error or unexpected behavior. Feature requests or some other type of posts might not require it.
  3. No questions about training or 3rd party libraries:
    • OpenPose only implements testing.
    • Caffe errors/issues, check Caffe documentation.
    • CUDA check failed errors: They are usually fixed by re-installing CUDA, then re-installing the proper cuDNN version, and then re-compiling (or re-installing) OpenPose. Otherwise, check for help in CUDA forums.
    • OpenCV errors: Install the default/pre-compiled OpenCV or check for online help.
  4. Set a proper issue title: add the Ubuntu/Windows keyword and be specific (e.g., do not call it: Error).
  5. Only English comments.
    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:

  • Compilation/installation error
  • Execution error
  • Help wanted
  • Question
  • Enhancement / offering possible extensions / pull request / etc
  • Other (type your own type)

Your System Configuration

  1. Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here: LINK

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

  1. OpenPose version: Latest GitHub code? Or specific commit (e.g., d52878f)? Or specific version from Release section (e.g., 1.2.0)?

1.7 [Lateest]

  1. General configuration:
    • Installation mode: CMake, sh script, manual Makefile installation, ... (Ubuntu); CMake, ... (Windows); ...?: CMake
    • Operating system (lsb_release -a in Ubuntu): macOS
    • Operating system version (e.g., Ubuntu 16, Windows 10, ...): 11.0.1
    • Release or Debug mode? (by default: release): Release
    • Compiler (gcc --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

  1. Non-default settings:

    • 3-D Reconstruction module added? (by default: no): no
    • Any other custom CMake configuration with respect to the default version? (by default: no):
      BUILD_PYTHON: Yes
      BUILD_Caffe: No
      Caffe_LIBS: /usr/local/libs/libcaffe.dylib
      Caffe_INCLUDE_DIR: /usr/local/include/caffe
  2. 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

  3. If GPU mode issue: No [CPU Mode]

    • CUDA version (cat /usr/local/cuda/version.txt in most cases): N/A
    • cuDNN version: N/A
    • GPU model (nvidia-smi in Ubuntu): N/A
  4. If CPU-only mode issue: Yes

    • CPU brand & model: 2.7 GHz Dual-Core Intel Core i5
    • Total RAM memory available: 8 GB 1867 MHz DDR3
  5. If Python API: Yes

    • Python version: 2.7, 3.7, ...?: 3.8
    • Numpy version (python -c "import numpy; print numpy.version.version" in Ubuntu): 1.16.3
  6. If Windows system: No

    • Portable demo or compiled library?
  7. If speed performance issue: No

    • Report OpenPose timing speed based on this link.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions