Multitarget-tracker icon indicating copy to clipboard operation
Multitarget-tracker copied to clipboard

CTrack::RectUpdate Segmentation fault

Open lizongnan opened this issue 2 years ago • 2 comments

When debugging the Master branch code, I got segmentation fault in https://github.com/Smorodov/Multitarget-tracker/blob/master/src/Tracker/track.cpp#L681. The error occurred the second time the Kalman Filters state was updated.

I have changed:

  1. option(BUILD_YOLO_LIB "Should compiled standalone yolo_lib with original darknet?" ON)
  2. I deleted all "constexpr" in " if constexpr ***"(e.g. if constexpr (HUNGARIAN_LOGS)) in src/Tracker/HungarianAlg/HungarianAlg.cpp, because my compiler(C++14) does not support C++17.

The relevant information: Code branch: Master settings.ini: default(yolov4.weights,data/yolov4.cfg) Run examples 5: ./MultitargetTracker ../data/atrium.avi -e=5 -a=0 -o=res_darknet_yolo.mp4 Ubuntu16.04 Cuda 10.0 Cudnn 7.6.4 GCC 5.4.0

Any help is OK, Thanks!

lizongnan avatar Jul 01 '22 02:07 lizongnan

Hi! It can be a bug in OpenCV tracker. Do you can run it in debug mode and send me additional info? But before one more thing: Set here: https://github.com/Smorodov/Multitarget-tracker/blob/master/example/examples.h#L703

m_trackerSettings.m_lostTrackType = tracking::TrackKCF;

CSRT tracker in OpenCV isn't stable and has some bugs.

Nuzhny007 avatar Jul 01 '22 07:07 Nuzhny007

I have verified:

  1. The segmentation error occurs in both release and debug modes without change the code: https://github.com/Smorodov/Multitarget-tracker/blob/master/example/examples.h#L703.
  2. KCF is feasible. In fact, I also verified that KCF is OK by specifying it in the configuration file(setting.ini) yesterday in both release and debug modes.

lizongnan avatar Jul 02 '22 01:07 lizongnan