When I try to send the data after tracking to kafka in the osd_sink_pad_buffer_probe function, I get this error:
NvMapMemCacheMaint Bad parameter
nvbusurface: NvBufSurfaceSyncForCpu: Error(4) in sync
libnvosd (96):(ERROR) : Cache sync failed
ERROR from element nv-onscreendisplay: Unable to draw text
Error details: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvdsosd/gstnvdsosd.c(519): gst_nvds_osd_transform_ip (): /GstPipeline:retinanet-pipeline/GstNvDsOsd:nv-onscreendisplay
libnvosd (219):(ERROR) : Error in nvll_osd_put_textReturned, stopping playback