*** stack smashing detected ***: <unknown> terminated

• Jetson AGX Xavier
• Deepstream 6.0
• JetPack 4.6
• TensorRT 8.0.1
• NVIDIA GPU Driver 32.6.1

Hi, I’m trying to make usb-input and rtsp-output pipeline with face recognition.

I used this code as an example: deepstream c++ rtsp流输出 - 代码先锋网

Here is my code
Makefile (2.6 KB)
deepstream_infer_tensor_meta_test.cpp (33.5 KB)
dstest2_pgie_config.txt (3.1 KB)
dstest2_sgie1_config.txt (423 Bytes)

So here is the issue:
When I’m starting pipeline and there is no faces in the frame it works well, but when face appears it printing embeddings one time and print this error:

+_+_+_+_+_+_+_+_+_+_+_+_+EMBEDDING+_+_+_+_+_+_+_+_+_+_+_+_+
There is 512 embeddings
+_+_+_+_+_+_+_+_+_+_+_+_+EMBEDDING+_+_+_+_+_+_+_+_+_+_+_+_+
*** stack smashing detected ***: <unknown> terminated

I can’t understand where is the error exactly

Before I added rtsp-out it worked well (I user overlay as a sink)

Hi @gff1038m , Could you test your pipeline with the deepstream-test cli? You can write a simple config text with your pipeline to debug first, like

/opt/nvidia/deepstream/deepstream-X.X/samples/configs/deepstream-app/source1_usb_dec_infer_resnet_int8.txt

And run it with the cli:

deepstream-test "your config file"

After the cli works well. then you can write code refer the cli pipeline. Thanks

Hi, thank you for help, but I can’t find info about cli. What is this? And where is deepstream-test located?

Ok, I tried deepstream-app “config path”, so i’ll try to make my application with refer on deepstream-app. But why my code is not working?

I’m trying to make an app using deepstream-app. But can’t understand why g_print in deepstream_app_main.main() is not working?
Could you please show some guides or examples?

Hi @gff1038m ,

  1. You could learn the basic knowledge about Gstreamer, like source , sink, plugin, etc.
    https://gstreamer.freedesktop.org/documentation/tutorials/index.html?gi-language=c
  2. You could learn the basic plugin about Deepstream and know how to setup the config file
    https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_ref_app_deepstream.html
  3. Then you can just change the config file with different paras, like
/opt/nvidia/deepstream/deepstream-X.X/samples/configs/deepstream-app/source1_usb_dec_infer_resnet_int8.txt
  1. just use the deepstream-test "your config file" command to run without write any code

5.If the command works well, you can write code by referring the plugin in your config file

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.