Unexpected interrupt happened when I Trying to save image by using '...frame_copy = np.array(n_frame, copy=True, order='C')...'

• Hardware Platform (Jetson / GPU) RTX 3060
• DeepStream Version 6.1
• JetPack Version (valid for Jetson only) None
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only) 510
• Issue Type( questions, new requirements, bugs) bugs
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

I am trying to save images by using following codes:

#1 n_frame = pyds.get_nvds_buf_surface(hash(gst_buffer), frame_meta.batch_id)
#2 frame_copy = np.array(n_frame, copy=True, order=‘C’)
#3 frame_copy = cv2.cvtColor(frame_copy, cv2.COLOR_RGBA2BGRA)
#4 img_path = “./{}.jpg”.format(alarm_id)
#5 cv2.imwrite(img_path, frame_copy)

when the app run to line 2, it will be interrupted and I got following message:

“Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)”

with “export GST_DEBUG=”*:1"", I got following message:

“Segmentation fault (core dumped)”

with “gdb --args python3 xxxx.py” , I got following error:

“__memmove_avx_unaligned_erms () at …/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:436”
“436 …/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.”

however, in the same environment “deepstream-imagedata-multistream/deepstream_imagedata-multistream.py” is ok.

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)


demux_src_pad = demux.get_static_pad(“sink”)

what is the difference between your code and the official sampe? deepstream_imagedata-multistream.py can save image.

my_app.py (15.3 KB)
The file is part of my code.
I think there is no difference between my code and the official sample in the logic of screenshot.

there are many modifications between my_app.py and deepstream_imagedata-multistream.py, please narrow down your issue. please test saving image every time you add some code, and check which code causes crash.

Sorry , it’s my fault, for x86, I missed following codes:

mem_type = int(pyds.NVBUF_MEM_CUDA_UNIFIED)
streammux.set_property(“nvbuf-memory-type”, mem_type)
nvvidconv.set_property(“nvbuf-memory-type”, mem_type)
nvvidconv1.set_property(“nvbuf-memory-type”, mem_type)
tiler.set_property(“nvbuf-memory-type”, mem_type)

please close this topic , thanks

Glad to know you fixed it, thanks for the update!

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