Deepstream-image-meta-test crashing while trying to encode the images on DS5.0

Hello,

I am trying to crop and save the inferred object in my application and I’m referring the deepstream_image_meta_test app for this purpose

However, I see that the deepstream_image_meta_test is crashing at nvds_obj_enc_finish(ctx) in the pgie_src_pad_buffer_probe()

• Hardware Platform (Jetson / GPU) - Jetson TX2
• DeepStream Version - DS 5.0
• JetPack Version (valid for Jetson only) - JETPACK_44_b183
• TensorRT Version- 7.1.3.0-1+cuda10.2

We do not have this issue with original sample, is there possible share one workable sample to repro your issue in our environments?

I had installed the deepstream-5.0.0 deb package. And compiled the source code form /opt/nvidia/deepstream/deepstream5.0/sources/apps/sample-apps/deepstream-image-meta-test folder
As it was throwing a permission denied error, I compiled with sudo.
While running the app, I had to run as super user to run it successfully

You had to run as super user if you run from /opt/nvidia/deepstream/deepstream5.0/sources/apps/sample-apps/deepstream-image-meta-test
since the sample will write files to this location. you need super permission to write files to location
where you do not have permission using normal user.