You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have provided sufficient information below to help reproduce this issue.
Summary
The code below is the simplest I could come up with to demonstrate it. With the image shown the memory usage increases rapidly into the GB regime. However, even without the video shown, the memory increases because of the np.random call. This suggests that the problem is not st.image specific. Restarting the script causes the memory to become free!
streamlit version 1.30.0.
In my actual application I added an st.rerun() call every 10min to reduce the memory usage, but there is still a slower increase in memory consumption caused by something else.
There is an earlier thread that was closed: #6510
Hey @ks00x Thanks for the report! We do actually not remove images from our media file manager until the script finishes running, which would explain the massive memory leak being shown with the example.
As for the refresh, we are working on a concept of "partial reruns" which should make this easier to manage memory-wise. Part of the problem is how well Python garbage collects (we've seen examples of the memory increasing, but Python is not utilizing it all). Going to close cause I think we will have better solutions in the near future.
Checklist
Summary
The code below is the simplest I could come up with to demonstrate it. With the image shown the memory usage increases rapidly into the GB regime. However, even without the video shown, the memory increases because of the np.random call. This suggests that the problem is not st.image specific. Restarting the script causes the memory to become free!
streamlit version 1.30.0.
In my actual application I added an st.rerun() call every 10min to reduce the memory usage, but there is still a slower increase in memory consumption caused by something else.
There is an earlier thread that was closed: #6510
Reproducible Code Example
Steps To Reproduce
No response
Expected Behavior
leveling off of memory usage
Current Behavior
linear increase of memory usage with time
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: