How can I solve this bug for my app

If you’re creating a debugging post, please include the following info:

  1. Are you running your app locally
  2. I didnt why I get this error and I can’t deploy my app
  3. This my app link - https://aiassignment-mmnehnovtp8znh7wfsrceh.streamlit.app/
    This is my github link - GitHub - EdisonNg14/Ai_Assignment
  4. /app/scripts/run-streamlit.sh: line 9: 197 Killed sudo -E -u appuser /home/adminuser/venv/bin/streamlit “$@”

Thanks for sharing your issue. It looks like your app link isn’t publicly accessible at the moment, and it would help if you could provide a bit more information to better understand what’s going on.

Since you’re running this in Streamlit Cloud, here are a few things that might help with debugging:

  1. Check Resource Limits:
    The error message (197 Killed) suggests that your app may be exceeding the memory or CPU limits of Streamlit Cloud. You might want to review your app’s resource usage, especially if it’s processing large datasets or running heavy computations.
  2. Logs and Error Messages:
    You can check the logs for your app in Streamlit Cloud by going to your app dashboard. The logs might provide more detailed error messages that can point to the root cause.
  3. Running Locally:
    Have you tried running your app locally? This can help determine if the issue is specific to Streamlit Cloud or if there’s something in your app itself that might be causing problems.
  4. Dependencies:
    Make sure your requirements.txt is up to date and doesn’t include any unnecessary packages that could be bloating memory usage.
  5. Simplifying the App:
    If possible, try simplifying your app (e.g., removing heavy computations or limiting the amount of data being loaded) to see if it can deploy successfully. This can help narrow down the cause of the issue.

If you can provide more details about your app, including relevant parts of the code or any packages you’re using, we’ll be able to assist more effectively. Once your app is accessible again, feel free to share the link, and we can take a closer look.

Let me know how it goes!

Hi Nico,

Got the same problem. error message (197 killed).

App used to work perfectly fine. I added a new module where lots of data is processed and heavy computations are done. Now it crashes once it gets to that part.

Locally the app works fine.

Does it have to do with limitations of Streamlit cloud?

What is a solution if I need to do these heavy computations online?

The current limitations of Community Cloud are:

  • CPU: 0.078 cores minimum, 2 cores maximum
  • Memory: 690MB minimum, 2.7GBs maximum
  • Storage: No minimum, 50GB maximum

If your use case exceeds this, then you should try an alternative deployment platform or move those heavy computations to another service. As your resource needs increase, your free options will become more limited. You can, for example, deploy your app in a container on any of the major Cloud providers.