Error running app -> resources limits

Hello I don’t understand why in general my app crashes.

Sometimes I can reach the finished game screen and restart the game, but in general it crashes before of it.

I create two versions of the app, trying to delete elements in the functions of the version “v8b”, but the two version crashed too.

I use CLIP, a very new IA model to deal between images and natural text relationship. I think it can be related to the problem because it is possible that CLIP uses to much resources. But sometimes the app crashing happens when CLIP is not used in the execution of the app which shoot the error.

Can someone help me to find the problem?

Thank you.



Successfully installed ftfy-6.0.3 numpy-1.21.2 pillow-8.3.1 regex-2021.8.3 torch-1.9.0 torchvision-0.10.0 typing-extensions- wcwidth-0.2.5
e[35mWARNINGe[0m: You are using pip version 21.1.1; however, version 21.2.4 is available.
You should consider upgrading via the ‘/home/appuser/venv/bin/python -m pip install --upgrade pip’ command.
e[32m[manager] e[0mPython dependencies were installed from /app/clip-guesswho/requirements.txt using pip.
e[32m[manager] e[0mProcessed dependencies!
e[32m[manager] e[0mStreamlit server consistently failed status checks
e[32m[manager] e[0mPlease fix the errors, push an update to the git repo, or reboot the app.

I try to improve the app with this version, but the same error appears:

App link:

[manager] Starting up for owner: ‘arnaudimai’, repository: ‘clip-guesswho’, branch: ‘main’, main module: ‘’
[manager] Cloning repository …
[manager] Cloning into ‘clip-guesswho’…
[manager] Cloned repository!
[manager] Processing dependencies …
Looking in links:
Collecting ftfy
Downloading ftfy-6.0.3.tar.gz (64 kB)
[client] Preparing system…
[client] Spinning up manager process…
Collecting regex
Downloading regex-2021.8.28-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (745 kB)
Collecting numpy
Downloading numpy-1.21.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
Collecting pip==21.2.4
Downloading pip-21.2.4-py3-none-any.whl (1.6 MB)
Collecting torch==1.9.0+cpu
Downloading (175.5 MB)
Collecting torchvision==0.10.0+cpu
Downloading (15.7 MB)
Collecting typing-extensions
Downloading typing_extensions- (26 kB)
Collecting pillow>=5.3.0
Downloading Pillow-8.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
Collecting wcwidth
Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Building wheels for collected packages: ftfy
Building wheel for ftfy ( started
Building wheel for ftfy ( finished with status ‘done’
Created wheel for ftfy: filename=ftfy-6.0.3-py3-none-any.whl size=41933 sha256=6def9a5d9aaab6ad954eb29c9a06f10dac514b91b3a4f6ad9ec53caeb0ac6963
Stored in directory: /tmp/pip-ephem-wheel-cache-n90c6pfl/wheels/19/f5/38/273eb3b5e76dfd850619312f693716ac4518b498f5ffb6f56d
Successfully built ftfy
Installing collected packages: typing-extensions, wcwidth, torch, pillow, numpy, torchvision, regex, pip, ftfy
Attempting uninstall: typing-extensions
Found existing installation: typing-extensions
Uninstalling typing-extensions-
Successfully uninstalled typing-extensions-
Attempting uninstall: wcwidth
Found existing installation: wcwidth 0.2.5
Uninstalling wcwidth-0.2.5:
Successfully uninstalled wcwidth-0.2.5
Attempting uninstall: pillow
Found existing installation: Pillow 8.3.2
Uninstalling Pillow-8.3.2:
Successfully uninstalled Pillow-8.3.2
Attempting uninstall: numpy
Found existing installation: numpy 1.21.2
Uninstalling numpy-1.21.2:
Successfully uninstalled numpy-1.21.2
Attempting uninstall: pip
Found existing installation: pip 21.1.1
Uninstalling pip-21.1.1:
Successfully uninstalled pip-21.1.1
Successfully installed ftfy-6.0.3 numpy-1.21.2 pillow-8.3.2 pip-21.2.4 regex-2021.8.28 torch-1.9.0+cpu torchvision-0.10.0+cpu typing-extensions- wcwidth-0.2.5
[manager] Python dependencies were installed from /app/clip-guesswho/requirements.txt using pip.
[manager] Processed dependencies!

[client] Connecting…

[manager] Streamlit server consistently failed status checks
[manager] Please fix the errors, push an update to the git repo, or reboot the app.

repo link: GitHub - ArnauDIMAI/CLIP-GuessWho