-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent failure to add items to server #16
Comments
@jnumainville this looks familiar and I could never figure it out what exactly is causing this. for that reason, I ALWAYS pass widget and object_id here: https://github.com/kzk2000/deephaven-streamlit/blob/main/app/src/streamlit_deephaven.py#L83 This works thanks to DH execution context
|
btw, Streamlit's
just saw there is no So my hunch is that one of your many tabs/threads creates the server, but another tab/thread creates the execution context that's stored on the DH instance as attribute, and that's causing a mismatch somehow. @jnumainville So, maybe this will fix it:
|
Thanks for the suggestion! Unfortunately did not work |
@jnumainville I was testing a bit more and noticed some odd behavior Case A: Case B: it's really bizarre...if you can figure it out, I'm very curious. it must be some weird race condition somewhere |
Sometimes, when the streamlit tab opens after running streamlit run streamlit_deephaven/test_app.py an error appears in streamlit because the object is not found. It's not appearing in the panels list either.
It seems to happen more if I have lots of tabs open but I am not 100% sure as it happens consistently but I don't have a deterministic recreation.
So, something is going wrong such that a table added to main.dict is not grabbed by the server.
The text was updated successfully, but these errors were encountered: