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
We have an application where we process a set of files, sometimes more than 2000.
The file_uploader widget hangs, then eventually produces a network error when the number of images exceeds 980.
This issue wasn't previously occurring. We did run into one issue where we had to increase the Python recursion limit since we iterate over each file and the default Python recursion limit is 1000 (I assumed ~20 or so iterations went to setup/config), and would produce an error. So we set the recursion limit to the number of files uploaded + 50.
Now, the file_uploader widget fails to upload >980 files. 980 works fine, and 981 uploads all but one. I looked at the source code and didn't see any upper limit defined for this operation. Logs don't show anything besides hanging until there are exactly 980 files, at which point it returns the list of uploaded files and continues executing the script.
Wondering if internally the recursion limit is being met, and might need to be increased.
Otherwise, please help us determine why we are now running into this issue. We were previously using streamlit version 1.29.0, and upgraded to 1.33.0 to find the issue still persists.
Thank you!
Reproducible Code Example
No response
Steps To Reproduce
No response
Expected Behavior
980 files upload successfully
Current Behavior
980 files upload successfully, the remainder hang and eventually produce a network-related error
Is this a regression?
Yes, this used to work in a previous version.
Debug info
Streamlit version: 1.33.0
Python version: 3.12.2
Additional Information
No response
The text was updated successfully, but these errors were encountered:
I forgot to mention - we initially thought it is related to the server running out of memory as I was not able to reproduce it locally at first. Increasing the server's memory did not help, and now it occurs locally as well, which indicates that it is likely related to streamlit. Investigating further drew me to the file_uploader widget, and now finding that it is directly related to the number of files being uploaded, which we did not have an issue with before.
Checklist
Summary
We have an application where we process a set of files, sometimes more than 2000.
The file_uploader widget hangs, then eventually produces a network error when the number of images exceeds 980.
This issue wasn't previously occurring. We did run into one issue where we had to increase the Python recursion limit since we iterate over each file and the default Python recursion limit is 1000 (I assumed ~20 or so iterations went to setup/config), and would produce an error. So we set the recursion limit to the number of files uploaded + 50.
Now, the
file_uploader
widget fails to upload >980 files. 980 works fine, and 981 uploads all but one. I looked at the source code and didn't see any upper limit defined for this operation. Logs don't show anything besides hanging until there are exactly 980 files, at which point it returns the list of uploaded files and continues executing the script.Wondering if internally the recursion limit is being met, and might need to be increased.
Otherwise, please help us determine why we are now running into this issue. We were previously using streamlit version 1.29.0, and upgraded to 1.33.0 to find the issue still persists.
Thank you!
Reproducible Code Example
No response
Steps To Reproduce
No response
Expected Behavior
Current Behavior
980 files upload successfully, the remainder hang and eventually produce a network-related error
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: