Nvvideoconvert core dump

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson ) xavier nx
**• DeepStream Version 6.3
**• JetPack Version (valid for Jetson only)5.1.2
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I update deepstream6.0 to 6.3 recently, jetpack 4.6 update to 5.1.2, but application core dump sometimes, here is gdb dump. dump thread is app-source, then I try other api use gst_buffer_new_and_alloc instead gst_buffer_new_wrapped_full it will ok.
appsrc input like this:

#if 1
cv::Mat img = appsrc->inputQueue_->wait_and_pop();
if (img.data == NULL)
LOG_ERROR(“frame is nullptr, please check”);

gstBuffer = gst_buffer_new_wrapped_full((GstMemoryFlags)GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS,
                                        img.rows * img.cols * 1.5,
                                        img.rows * img.cols * 1.5,

// LOG_INFO(“request from local file”);
GstMapInfo map;
uint64_t frame_size = 2456 * 1500 * 1.5;
// LOG_INFO(“request width:{} height:{} size {}”,currentImage.cols, currentImage.rows,frame_size);
gstBuffer = gst_buffer_new_and_alloc(frame_size);
gst_buffer_map(gstBuffer, &map, GST_MAP_WRITE);
// memcpy(map.data, currentImage.data, frame_size);
FILE *fp = fopen(“ocr2456.yuv”, “rb”);
fread(map.data, 1, 5526000, fp);
map.size = 5526000;
gst_buffer_unmap(gstBuffer, &map);

std::string name = “app-source” + std::to_string(appsrc->unqiuedId_);
GstElement *appsrcElemet = gst_bin_get_by_name(GST_BIN(appsrc->source_bin_), name.c_str());
g_signal_emit_by_name(appsrcElemet, “push-buffer”, gstBuffer, &gstret);

Do you mean to use the above code instead of the following code and it will work normally? Is your image format NV12? You could probably try 2464 * 1500 × 1.5, I guess it could be an alignment issue

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