Generic Runtime Error

I’m getting the following error on HF spaces. The error repeats with each page refresh. I usually have to Factory Reset to get the space running again. I’m wondering if it’s related to timeout or some resource exhaustion such as a memory leak. Why would it repeat with a page refresh? Must be some system level issue. Why is there a two word error message? Is there a resource monitor?

Runtime error
Container logs:

===== Application Startup at 2023-09-04 11:52:18 =====

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

You can now view your Streamlit app in your browser.

Network URL:
External URL:

A new version of Streamlit is available.

See what’s new at 📣 Official Announcements - Streamlit

Enter the following command to upgrade:
$ pip install streamlit --upgrade


hi @bsalita , just to confirm, are you using a Streamlit Space SDK or a Docker SDK?

I’m using Streamlit Space SDK.

I found stability after making two changes. First was upgrading to Streamlit 1.26. Second was removing all @st.cache_data decorators. Probably one or the other changes resolved the issue but I’m not sure which. An unproven theory is that st.cache_data caused memory exhaustion. It’s not clear whether this was the issue or whether it should be an issue at small scale.

What I think is clearly an HF issue is lack of detail in error reporting. It’s like the user’s who say “didn’t work” – not helpful without context.

Is there a way to monitor resource usage in Spaces?

1 Like