Real-time opencv application failed, CPU used up?

I deployed a real-time app using opencv to detect smile https://engaugewebclient-mgk8ujgwkwqkdwhbnjgzu9.streamlit.app/
however this error showed up and the streaming video freeze.
Could anyone figure out what the problem is?

Hi @xckrisliang,

Here’s a graph of the memory usage for this app. It does look like it’s spiking beyond the limit (1 GB typically).

Hi Caroline,

Thanks a lot for your reply. Could you tell me where I can find the chart? Thank you.

Best wishes,
Xiaocheng

Unfortunately the memory usage charts aren’t available within Community Cloud (I pulled it from our system)

Hi Caroline,

Thank you for the reply. Do you have any idea on why that’s happening and anything that I could fix that problem? Thanks a lot.

Best wishes,
Xiaocheng

在 2023年11月15日星期三,Caroline Frasca via Streamlit <notifications@streamlit.discoursemail.com> 写道:

Hi @xckrisliang,

It looks like the app is private, so it will be pretty difficult for us to pinpoint the root cause. If you’re not able to make the source code public, I’d recommend checking out our blog post on resource limits here.