google / visionai

BSD 3-Clause "New" or "Revised" License
43 stars 12 forks source link

Segmentation fault when loading libgstkvssink.so in ingester_app #6

Open Prajwal-Koirala opened 1 year ago

Prajwal-Koirala commented 1 year ago

When attempting to send an RTSP stream using the vaictl command, a segmentation fault occurs while loading the libgstkvssink.so plugin file. This issue is accompanied by multiple GStreamer warnings, GLib-GObject critical errors, and GLib-GObject warnings. This prevents the successful sending of the RTSP stream.

root ➜ / $ vaictl -p complexorganizations-github -l us-central1 -c application-cluster-0 --service-endpoint visionai.googleapis.com send rtsp to streams test-stream-0 --rtsp-uri rtsp://Administrator:Password@137.184.68.170:8554/test_0
(ingester_app:24114): GStreamer-WARNING **: 14:56:37.403: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
(process:24114): GLib-GObject-CRITICAL **: 14:56:37.409: g_param_spec_boxed: assertion 'G_TYPE_IS_BOXED (boxed_type)' failed
(process:24114): GLib-GObject-CRITICAL **: 14:56:37.409: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed
(process:24114): GLib-GObject-CRITICAL **: 14:56:37.409: g_param_spec_boxed: assertion 'G_TYPE_IS_BOXED (boxed_type)' failed
(process:24114): GLib-GObject-CRITICAL **: 14:56:37.409: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed
(process:24114): GLib-GObject-WARNING **: 14:56:37.409: ../../../gobject/gtype.c:4269: type id '0' is invalid
(process:24114): GLib-GObject-WARNING **: 14:56:37.409: can't peek value table for type '<invalid>' which is not currently referenced
(process:24114): GLib-GObject-WARNING **: 14:56:37.409: ../../../gobject/gvalue.c:185: cannot initialize GValue with type '(null)', this type has no GTypeValueTable implementation
(process:24114): GLib-GObject-WARNING **: 14:56:37.409: ../../../gobject/gtype.c:4269: type id '0' is invalid
(process:24114): GLib-GObject-WARNING **: 14:56:37.409: can't peek value table for type '<invalid>' which is not currently referenced
(process:24114): GLib-GObject-CRITICAL **: 14:56:37.409: g_value_peek_pointer: assertion 'value_table' failed
ERROR: Caught a segmentation fault while loading plugin file:
/etc/amazon-kinesis-video-streams-producer-sdk-cpp/build/libgstkvssink.so
Please either:
- remove it and restart.
- run with --gst-disable-segtrap --gst-disable-registry-fork and debug.
dchao34 commented 1 year ago

It looks like you have KVS video sink installed? Is it possible to remove that from the search path for now?

Prajwal-Koirala commented 1 year ago

Hey, That's a temporary solution; can you provide me with a permanent one? Perhaps make a modification to the code and relaunch the application.

dchao34 commented 1 year ago

Sure - may I ask your affiliation? May be able to prioritize your ask.

Prajwal-Koirala commented 1 year ago

Sure - may I ask your affiliation? May be able to prioritize your ask.

Thank you in advance for your effort. Could you perhaps provide a rough timeline for when this problem could be resolved? If there is anything I can do to assist, I would be more than delighted to do so. The plan is to operate both of these video streams simultaneously on the same server while also using AWS Kinesis.

dchao34 commented 1 year ago

As of current, this is probably going to be a P1 effort. We will try to squeeze this into the next refresh, which is in roughly 1 month.

Prajwal-Koirala commented 1 year ago

As of current, this is probably going to be a P1 effort. We will try to squeeze this into the next refresh, which is in roughly 1 month.

A month is a very long time; perhaps carry it out in the open via a community branch so that other devs can readily assist.

Coffee is always free at Google, Amazon, and Microsoft.

Prajwal-Koirala commented 1 year ago

Done?