google / visionai

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

Can not create a video stream #3

Closed dgsngular closed 1 year ago

dgsngular commented 1 year ago

Hello everyone,

We are testing a Vertex AI vision for streaming video processes and we have a problem when trying to create streams:

vaictl -p PROJECT_ID \
         -l LOCATION_ID \
         -c application-cluster-0 \
         --service-endpoint visionai.googleapis.com \
send rtsp to streams STREAM_ID --rtsp-uri RTSP_ADDRESS

The logs that it returns are as follows:

I20230223 11:05:58.111541  6021 event_manager.cc:62] Generated event-id: yef7uwfr
I20230223 11:05:58.129709  6023 streams_event_writer.cc:45] An empty sender name was supplied; assigning the generated name "tU76RKEW".

(ingester_app:6011): GLib-GObject-WARNING **: 11:05:59.117: third_party/glib/gobject/gsignal.c:2731: instance '0x4010001a40' has no handler with id '2'

(ingester_app:6011): GLib-GObject-WARNING **: 11:05:59.118: third_party/glib/gobject/gsignal.c:2731: instance '0x4010001a40' has no handler with id '1'
GstMotionMetaAPI register.

(ingester_app:6011): GLib-GObject-CRITICAL **: 11:05:59.236: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.236: gst_pad_get_parent_element: assertion 'GST_IS_PAD (pad)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.236: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed

(ingester_app:6011): GLib-GObject-CRITICAL **: 11:05:59.236: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.236: gst_pad_get_parent_element: assertion 'GST_IS_PAD (pad)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.236: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed

(ingester_app:6011): GLib-GObject-CRITICAL **: 11:05:59.237: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.237: gst_pad_unlink: assertion 'GST_IS_PAD (srcpad)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.238: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed

(ingester_app:6011): GLib-GObject-CRITICAL **: 11:05:59.238: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.238: gst_pad_unlink: assertion 'GST_IS_PAD (srcpad)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.238: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed

(ingester_app:6011): GLib-GObject-CRITICAL **: 11:05:59.238: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.238: gst_pad_unlink: assertion 'GST_IS_PAD (srcpad)' failed

(ingester_app:6011): GStreamer-CRITICAL **: 11:05:59.238: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
Waiting for long running operation projects/sngular-padmi/locations/us-central1/operations/operation-1677150360265-5f55bff756507-045ef643-a876a31f ⠇
Waiting for long running operation projects/sngular-padmi/locations/us-central1/operations/operation-1677150362161-5f55bff9250b2-7fd166ca-5bbed120 ⠋
I20230223 11:06:06.047928  6023 streams_event_writer.cc:76] Sending data into event "yef7uwfr" through stream "dgvaivstream01".
E0223 11:06:11.069293843    6061 hpack_parser.cc:1216]       Error parsing metadata: error=invalid value key=content-type value=text/html; charset=UTF-8
E20230223 11:06:13.104212  6011 ingester.cc:241] UNAVAILABLE: Received http2 header with status: 502; during an EventWrite write; while writing a packet into an event sink; while handling a packet filtered element
E20230223 11:06:13.109506  6011 ingester_app.cc:71] UNKNOWN: The dataflow encounterd an error. See logs for more details.; while stopping modules

They have been doing research and have found that there is an open question that could be related to gRPC:

https://github.com/grpc/grpc/issues/29706

I've checked de gRPC version on Vertex AI Vision library:

go_repository(

        name = "org_golang_google_grpc",

        importpath = "[google.golang.org/grpc](http://google.golang.org/grpc)",

        sum = "h1:u+MLGgVf7vRdjEYZ8wDFhAVNmhkbJ5hmrA1LMWK1CAQ=",

        version = "v1.46.2",

    )

Who can help me?

Thanks in advance. Regards,

dchao34 commented 1 year ago

Hey @dgsngular - we know the problem here and are working on it. @yxue will follow up.

dgsngular commented 1 year ago

Thank you for your reply, @dchao34. We'll be following the new releases and this issue closely, as we're very interested in some Computer Vision projects we're working on.

yxue commented 1 year ago

Thanks @dgsngular! I will update this issue while we have the release in production.

yxue commented 1 year ago

Hi @dgsngular, the fix has been released, could you please try again? Thanks!

dgsngular commented 1 year ago

Hello @yxue ,

Thanks so much for your quick fix. It works fine now.

Have a nice day. Best regards,