Please provide complete information as applicable to your setup.
• Hardware Platform GPU
• DeepStream Version 6
• TensorRT Version 8
• NVIDIA GPU Driver Version 470
• Issue Type questions
Hi there
I’m building an app and trying to use kafka to send message out. I use python and follow the deepstream-test4 example.
However, this error occurs.
Error: gst-library-error-quark: GStreamer encountered a general supporting library error. (1): gstnvmsgbroker.cpp(523): legacy_gst_nvmsgbroker_render (): /GstPipeline:pipeline0/GstNvMsgBroker:nvmsg-broker:
failed to send the message. err(1)
Exiting app
I guess it is because I give a large string to the struct. These are my steps:
- add a field in
nvdsmeta_schema.h
to save the croped image array.
typedef struct NvDsPersonObject {
gchar *gender; /**< Holds a pointer to the person's gender. */
gchar *hair; /**< Holds a pointer to the person's hair color. */
gchar *cap; /**< Holds a pointer to the type of cap the person is
wearing, if any. */
gchar *apparel; /**< Holds a pointer to a description of the person's
apparel. */
guint age; /**< Holds the person's age. */
gcha *image;
} NvDsPersonObject;
- I modify codes in bindschema.cpp and build the bindings. It works fine.
- I get the croped image array by following deepstream-imagedata-multistream-redaction and then convert the array into json format:
lists = frame_copy.tolist()
json_str = json.dumps(lists)
- I pass the array to the field I add like this:
def generate_person_meta(data, array):
obj = pyds.NvDsPersonObject.cast(data)
obj.age = 24
obj.cap = "cap"
obj.hair = "hair"
obj.gender = "male"
obj.apparel = "formal"
obj.image = array
return obj
- I run the app and kafka listner could receive the message correctly. The problem occurs after I run the app for a few seconds.
This confused me. Why it runs normal for few seconds and fails. If there is something wrong, shouldn’t it fail at the very beginning?
This error disappears if I give the field a short “string”. I also checked the type of gchar *param
, it’s a int pointer and my array is in json string format. I also looked into the other files in bindings/include/bind
and didn’t figure out why.
Any ideas to solve this? Or is there a better way to pass array through kafka?
Please help me, thanks a lot