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
When running the above code using streamlit run xxx.py it raises an KeyError: 'Foo'.
This only happens for height values below 300.
The code is run 4 times by streamlit and in one of the 4 runs the st.session state is empty when printed after the canvas initialization while it is not empty right before calling it.
However this does not occure every time you run it but in about 3/4 of the time.
Expected behavior:
It should print the value "Value" of Foo each time with no errors.
Environment:
It can be observed on both, Ubuntu 20.04 LTS and Windows 11
Python: 3.9.17
streamlit==1.27.2
streamlit-drawable-canvas==0.9.3
If more information is needed hit me up
The text was updated successfully, but these errors were encountered:
There seems to be a a weired bug when using the st_canvas:
Minimal example:
Behavior:
When running the above code using streamlit run xxx.py it raises an KeyError: 'Foo'.
This only happens for height values below 300.
The code is run 4 times by streamlit and in one of the 4 runs the st.session state is empty when printed after the canvas initialization while it is not empty right before calling it.
However this does not occure every time you run it but in about 3/4 of the time.
Expected behavior:
It should print the value "Value" of Foo each time with no errors.
Environment:
It can be observed on both, Ubuntu 20.04 LTS and Windows 11
Python: 3.9.17
streamlit==1.27.2
streamlit-drawable-canvas==0.9.3
If more information is needed hit me up
The text was updated successfully, but these errors were encountered: