# Unexpected global shape for user\_input.visi

**URL:** <https://discuss.ai.google.dev/t/unexpected-global-shape-for-user-input-visi/61279>\
**Category:** Gemini API\
**Tags:** audio\
**Created:** [January 17, 2025, 3:29pm UTC](https://discuss.ai.google.dev/t/unexpected-global-shape-for-user-input-visi/61279 "2025-01-17T15:29:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Shouse](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/patrick_shouse/32/31911_2.png) [@Patrick\_Shouse](https://discuss.ai.google.dev/u/Patrick_Shouse)\
**Post date:** [January 17, 2025, 3:29pm UTC](https://discuss.ai.google.dev/t/unexpected-global-shape-for-user-input-visi/61279/1 "2025-01-17T15:29:32Z")

</div>

Trying to stream audio and video with text response and am getting this error after sending a few video frames.  
Exception Group: (ConnectionClosedError(Close(code=1007, reason=‘Request trace id: f2eca90b1ca504ce, [ORIGINAL ERROR] generic::invalid\_argument: Unexpected global shape for user\_input.visi’), Close(code=1007, reason=‘Request trace id: f2eca90b1ca504ce, [ORIGINAL ERROR] generic::invalid\_argument: Unexpected global shape for user\_input.visi’), True),)

Sometimes this error also appears.

Exception Group: (ConnectionClosedError(Close(code=1007, reason='Request trace id: 63186d1c63708724, [ORIGINAL ERROR] generic::invalid\_argument: Image tensors read from serialized content '), Close(code=1007, reason='Request trace id: 63186d1c63708724, [ORIGINAL ERROR] generic::invalid\_argument: Image tensors read from serialized content '), True),)

---

<div class="post-metadata">

**Author:** ![fatwang2](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/fatwang2/32/32206_2.png) [@fatwang2](https://discuss.ai.google.dev/u/fatwang2)\
**Post date:** [January 19, 2025, 4:42am UTC](https://discuss.ai.google.dev/t/unexpected-global-shape-for-user-input-visi/61279/2 "2025-01-19T04:42:46Z")

</div>

same issue, no one reply

---

<div class="post-metadata">

**Author:** ![Krish\_Varnakavi1](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/krish_varnakavi1/32/56962_2.png) [@Krish\_Varnakavi1](https://discuss.ai.google.dev/u/Krish_Varnakavi1)\
**Post date:** [June 18, 2025, 10:38pm UTC](https://discuss.ai.google.dev/t/unexpected-global-shape-for-user-input-visi/61279/4 "2025-06-18T22:38:48Z")

</div>

Hi @Patrick_Shouse @fatwang2,

A stable version of gemini-2.5-pro - most powerful with adaptive thinking was released yesterday.. Please try with the new models and let me know if you are still facing issues.

Hope the issue gets resolved with newer models.
