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

CTrack::RectUpdate Segmentation fault #383

Open
lizongnan opened this issue Jul 1, 2022 · 2 comments
Open

CTrack::RectUpdate Segmentation fault #383

lizongnan opened this issue Jul 1, 2022 · 2 comments
Assignees
Labels

Comments

@lizongnan
Copy link

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!

@Nuzhny007 Nuzhny007 self-assigned this Jul 1, 2022
@Nuzhny007 Nuzhny007 added the bug label Jul 1, 2022
@Nuzhny007
Copy link
Collaborator

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.

@lizongnan
Copy link
Author

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.

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

No branches or pull requests

2 participants