I’m not sure how to ask this question properly, because I can’t come up with a minimal example that others could reproduce. I guess I’m looking for ideas on what could be causing the problem.
I have a streamlit application that will sometimes “fade” (the page looks like it is refreshing), and the next time the code writes to the page (e.g. with streamlit.write() or updating the value of a streamlit.empty()) the page will refresh and raises a script_runner.StopException.
I’m thinking it has to do with the code running for too long. The code repeatedly calls an optimization (integer programming) solver on a remote machine, and each call to the solver can take several minutes to return. Sometimes the error happens on the first call to the solver within a run of the code, sometimes after many - with everything else being equal, it’s not consistent.
Any ideas what is causing this? I can’t replicate the error without calling the remote optimization solver, so I can’t share an example.
I’m running Windows 10, python 3.7.7, streamlit 0.66.0, and had same error with 0.62.0.