Version 1.32.0

Final update: Everyone can use version 1.32.2 on Community Cloud now.

2 Likes

I still see memory leak issues for long live sessions for
st.plotly_chart function. I have tried streamlit version 1.32.0, 1.32.1 and 1.32.2, and for all of them memory leak are significant.

While troubleshooting, I tried different versions of streamlit and I found out that version 1.23.1 shows significantly less memory leak for long live sessions using st.plotly_chart compared to 1.32 versions. Below is the code that I used for testing memory leak. I am running on Ubuntu 20.04 with python3.8.

while True:
    time.sleep(0.5)
    df = pd.read_csv('bigcsv.txt')
    x = df['TIME']
    y = df['COLOR']
    
    
    fig = px.scatter(x=x,y=y)
    
    with spot:
        st.plotly_chart(fig)
    del fig
    del df
    gc.collect()
1 Like

@streamlitislit I forwarded your post to the engineers who are looking at performance. :slight_smile: