Hey bcao! This is my stacktrace. It does not seem to be outputting much. I am able to get the libnvds_mot_klt to work but not the libnvds_nvdcf.
My CMAKE flags: “-m64 -g -O0 -rdynamic”
Thread 13 "module_server" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffae2c0700 (LWP 1829)]
__GI___libc_free (mem=0x894855c3c9ffffff) at malloc.c:3103
3103 malloc.c: No such file or directory.
(gdb) backtrace
#0 0x00007ffff68c298d in __GI___libc_free (mem=0x894855c3c9ffffff) at malloc.c:3103
#1 0x00007ffff043b9dd in NvMOTContext::~NvMOTContext() () at /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_nvdcf.so
#2 0x00007ffff043d64e in NvMOT_DeInit () at /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_nvdcf.so
#3 0x00007ffff043d690 in NvMOT_Init () at /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_nvdcf.so
#4 0x00007ffff59c1dc3 in ThirdInsight::Modules::ModuleNvidiaTracker::doInit() (this=0x5555559901b0)
at /home/user/gazebo_dev/vino-server/src/modules/module_nvidia_tracker/moduleNvidiaTracker.cxx:83
#5 0x00007ffff774e826 in ThirdInsight::Library::Module::ModuleBase::init() (this=0x5555559901b0)
at /home/user/gazebo_dev/vino-server/src/lib/library_module/modules/moduleBase.cxx:158
#6 0x00007ffff77463cf in ThirdInsight::Library::Module::GroupManager::doGroupLoop() (this=0x555555851e10)
at /home/user/gazebo_dev/vino-server/src/lib/library_module/modules/groupManager.cxx:179
#7 0x00007ffff77462e5 in ThirdInsight::Library::Module::GroupManager::doGroupLoop() (this=0x555555850f90)
at /home/user/gazebo_dev/vino-server/src/lib/library_module/modules/groupManager.cxx:155
#8 0x00007ffff774682e in ThirdInsight::Library::Module::GroupManager::groupLoop() (this=0x555555850f90)
at /home/user/gazebo_dev/vino-server/src/lib/library_module/modules/groupManager.cxx:264
Using thread apply all bt full
#0 0x00007ffff68c298d in __GI___libc_free (mem=0x894855c3c9ffffff) at malloc.c:3103
ar_ptr = <optimized out>
p = <optimized out>
hook = 0x0
mem = 0x894855c3c9ffffff
hook = 0x0
#1 0x00007ffff043b9dd in NvMOTContext::~NvMOTContext() () at /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_nvdcf.so
#2 0x00007ffff043d64e in NvMOT_DeInit () at /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_nvdcf.so
#3 0x00007ffff043d690 in NvMOT_Init () at /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_nvdcf.so
#4 0x00007ffff59c1dc3 in ThirdInsight::Modules::ModuleNvidiaTracker::doInit() (this=0x5555559901b0)
at /home/user/gazebo_dev/vino-server/src/modules/module_nvidia_tracker/moduleNvidiaTracker.cxx:83
configFile = "/opt/nvidia/deepstream/deepstream-4.0/sources/apps/sample_apps/deepstream-test2/dstest2_tracker_config.txt"
configFileRecasted = 0x7fffa8000ca0 "/opt/nvidia/deepstream/deepstream-4.0/sources/apps/sample_apps/deepstream-test2/dstest2_tracker_config.txt"
query =
{computeConfig = 1 '\001', numTransforms = 1 '\001', colorFormats = {NVBUF_COLOR_FORMAT_NV12, 2535390720, 171161968, 2922117408}, memType = NVBUF_MEM_CUDA_UNIFIED, supportBatchProcessing = true}
transformBatchConfig = {bufferType = NVBUF_MEM_CUDA_UNIFIED, maxWidth = 640, maxHeight = 368, maxPitch = 1, maxSize = 235520, colorFormat = 6}
config =
{computeConfig = 1 '\001', maxStreams = 1, numTransforms = 1 '\001', perTransformBatchConfig = 0x7fffae2bf7d0, miscConfig = {gpuId = 4151457464, maxObjPerStream = 32767, maxObjPerBatch = 0}, customConfigFilePathSize = 106, customConfigFilePath = 0x7fffa8000ca0 "/opt/nvidia/deepstream/deepstream-4.0/sources/apps/sample_apps/deepstream-test2/dstest2_tracker_config.txt"}
contextHandle = 0x5555555dd620 <__gnu_cxx::__exchange_and_add_dispatch(_Atomic_word*, int)+46>
configResponse = {summaryStatus = 2922117120, computeStatus = 32767, transformBatchStatus = 2922117176, miscConfigStatus = 32767, customConfigStatus = 2922117088}
status_init = (NvMOTStatus_Error | NvMOTStatus_Invalid_Path | unknown: 32764)
surface = 0xffffffffae2bf790
surfaceCreateParams =
{gpuId = 2818575440, width = 32767, height = 2818575424, size = 32767, isContiguous = 96, colorFormat = 32767, layout = (unknown: 2535390720), memType = 171161968}
result = -1372850304
yDevMem = 0x7fffa8000c48
motFrame =
{streamID = 140736115505360, frameNum = 2922117616, timeStamp = 0, timeStampValid = false, doTracking = false, reset = false, numBuffers = 0 '\000', bufferList = 0x7fffae2bf910, objectsIn = {detectionDone = 96, list = 0x7fffae2bf940, numAllocated = 1435351488, numFilled = 21845}}
processParams = {numFrames = 2922117040, frameList = 0x7fffa8000c40}
---Type <return> to continue, or q <return> to quit---
trackedObjList = {{streamID = 18446744072336701936, frameNum = 2818575432, valid = 255, list = 0x7fffae2bf960, numAllocated = 1432253587, numFilled = 21845}}
trackedObjBatch = {list = 0x7fffae2bf7c0, numAllocated = 1432240575, numFilled = 21845}
frameNum = -1
videoCapture =
{_vptr.VideoCapture = 0x7fffae2bf8a0, cap = {<std::shared_ptr<CvCapture>> = std::shared_ptr<CvCapture> (use count 161, weak count -1) = {get() = 0x7fffae2bf9f0}, <No data fields>}, icap = {<std::shared_ptr<cv::IVideoCapture>> = std::shared_ptr<cv::IVideoCapture> (use count -143517856, weak count 32766) = {get() = 0x5555558db9c0}, <No data fields>}, throwOnFail = false}
#5 0x00007ffff774e826 in ThirdInsight::Library::Module::ModuleBase::init() (this=0x5555559901b0)
at /home/user/gazebo_dev/vino-server/src/lib/library_module/modules/moduleBase.cxx:158
__FUNCTION__ = "init"
#6 0x00007ffff77463cf in ThirdInsight::Library::Module::GroupManager::doGroupLoop() (this=0x555555851e10)
at /home/user/gazebo_dev/vino-server/src/lib/library_module/modules/groupManager.cxx:179
module = 0x5555559901b0
lock = {_M_device = 0x555555852000, _M_owns = true}
it = 0x5555559901b0
minSleepId = ""
deletedAModule = false
allowRunModules = true
__FUNCTION__ = "doGroupLoop"
#7 0x00007ffff77462e5 in ThirdInsight::Library::Module::GroupManager::doGroupLoop() (this=0x555555850f90)
at /home/user/gazebo_dev/vino-server/src/lib/library_module/modules/groupManager.cxx:155
module = 0x555555851e10
lock = {_M_device = 0x555555851180, _M_owns = true}
it = 0x555555851e10
minSleepId = ""
deletedAModule = false
allowRunModules = true
__FUNCTION__ = "doGroupLoop"
#8 0x00007ffff774682e in ThirdInsight::Library::Module::GroupManager::groupLoop() (this=0x555555850f90)
at /home/user/gazebo_dev/vino-server/src/lib/library_module/modules/groupManager.cxx:264
sleepTimeNanos = 999935466