App works well several times, then suddenly crashes - Any reasons for this?

Hi guys.

I deployed an app on Streamlit Sharing which works well many times, then suddenly crashes!

You can check the app here: https://share.streamlit.io/charlywargnier/what-the-faq/main/app.py

I’m not sure why this is happening.

Example of 2 URLs that worked well at first, then crashed the app when retried:

URL 01: https://en.wikipedia.org/wiki/Healthy_diet
URL 02: https://www.streamlit.io/

When retried again after crashing, they usually work again.

Could it be a memory issue? I’m only suggesting this as the “slug” in Heroku is 322MB - not sure whether increasing memory would make any difference?

Also here’s the last log file - not sure why Pastebin is labelling this as potentially offensive! :slight_smile:
Pastebin file: https://pastebin.com/2rcNMX5p

Thanks in advance! :pray:
Charly

Hi @amey-st :wave:

Did you have a chance to look at this issue?

Hopefully just a memory issue! :slight_smile:

Thanks,
Charly

Hi @Charly_Wargnier! Sorry for the delay in picking this one. We are investigating and will get back to you shortly.

Cheers,
Amey

1 Like

Thanks Amey, much appreciated! :pray:

Charly

Hey @Charly_Wargnier,

The app is running out of memory, as you expected.

Our fail whale isn’t catching it at the moment but we’re hoping to roll out some changes to address this soon, so it’s clear why it’s crashing (or prevent the crash) and what the resource usage is.

1 Like

Thanks Jonathan, I appreciate the feedback! :slight_smile:

1 Like

By the way Jonathan, do you think it’d be worth adding a wee bit of memory now so I can share my app with the world? (that is, provided there would not be too many crashes :))

Thanks,
Charly