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
Looking at the frontend logs, there's a 404 finding the image. However, trying again a couple of seconds later always works. It's possible there's a race condition in the memory media storage.
I didn't fully investigate the issue, and instead patched it with frontend retry logic here.
I'm opening this issue in case someone else faces the same problem down the line. You can install from my fork with pip install -U git+https://github.com/VikParuchuri/streamlit-drawable-canvas@develop.
The text was updated successfully, but these errors were encountered:
VikParuchuri
changed the title
Possible race condition
Possible race condition with background images
Dec 19, 2023
I'm building an app where I swap background images a lot (rendering pdf page images to the canvas).
When I set a background image on a canvas, I get a blank image on the frontend about 20% of the time:
Looking at the frontend logs, there's a 404 finding the image. However, trying again a couple of seconds later always works. It's possible there's a race condition in the memory media storage.
I didn't fully investigate the issue, and instead patched it with frontend retry logic here.
I'm opening this issue in case someone else faces the same problem down the line. You can install from my fork with
pip install -U git+https://github.com/VikParuchuri/streamlit-drawable-canvas@develop
.The text was updated successfully, but these errors were encountered: