# Generic Runtime Error

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgeneric-runtime-error%2F53483%3E%5C
**Category:** Spaces\
**Created:** [September 4, 2023, 1:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgeneric-runtime-error%2F53483 "2023-09-04T13:06:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsalita](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bsalita](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbsalita)%5C
**Post date:** [September 4, 2023, 1:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgeneric-runtime-error%2F53483%2F1 "2023-09-04T13:06:25Z")

</div>

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: [http://10.19.185.254:8501](http://10.19.185.254:8501)  
External URL: [http://44.208.85.154:8501](http://44.208.85.154:8501)

A new version of Streamlit is available.

See what’s new at [📣 Official Announcements - Streamlit](https://discuss.streamlit.io/c/announcements)

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

Stopping…

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [September 5, 2023, 4:35am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgeneric-runtime-error%2F53483%2F2 "2023-09-05T04:35:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bsalita](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bsalita](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbsalita)%5C
**Post date:** [September 5, 2023, 1:15pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgeneric-runtime-error%2F53483%2F3 "2023-09-05T13:15:12Z")

</div>

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?
