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 errorContainer 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:8501External URL:http://44.208.85.154:8501A new version of Streamlit is available.See what’s new at📣 Official Announcements - StreamlitEnter the following command to upgrade:$ pip install streamlit --upgradeStopping…
2023-09-05T04:35:36Z
hi@bsalita, just to confirm, are you using a Streamlit Space SDK or a Docker SDK?
2023-09-05T13:15:12Z
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_datadecorators. 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?