How to print error message at runtime when using a custom C++ plugin for parsing the o/p of model

Hello all,

I am writing a custom C++ plugin to parse the output of my SSD based object detection model. However, there are some errors that come at runtime, but I’m not being able to see them on terminal. All I could see is Segmentation fault (core dumped) & then the execution ends.

But, I want to see the exact error, so that I can debug my code easily.
Kindly help me.

P.S:
I’m able to see a print statement in C++ plugin getting printed on the terminal.

Thanks!

• Hardware Platform: Jetson Nano
• DeepStream Version: 5.0
• JetPack Version (valid for Jetson only): 4.4
• TensorRT Version: 7.1.3.0

Hi @sparsh-b,
why do you think this is DeepStream related?

Thanks for the reply @mchi.

If I put the same piece of code in a separate .cpp file & compile & run it, it shows the actual error(that I’m trying to access n+1 th element in an array with n elements).

But deepstream just says: Segmentation fault (core dumped)

Is it possible to share us more details?
It’s hard to say what the issue is.
Do you think it’s DeepStream issue? What do you expect us to do?