-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Repeated calls to Overlay, Curve, and .opts() causes StoreOptions to fail #5430
Comments
This seems to happen because of a race condition happening between holoviews/holoviews/core/options.py Lines 1782 to 1783 in 6c0dafb
I'm curious about why you need to run this test with so many iterations. |
Hi @hoxbro , |
This allows to almost always reproduce the error. I've seen it at the iteration 3, 4, and 5. import numpy as np
import holoviews as hv
from holoviews import Curve, Overlay
hv.extension('bokeh')
arrs = [np.random.rand(10) for _ in range(5)]
for i in range(1000):
try:
Overlay(items=[Curve(arr).opts(show_grid=True) for arr in arrs])
except ValueError:
raise RuntimeError(f'Found it at iteration {i-1}') |
Thank you @maximlt . |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
ALL software version info
Python 3.9, with a simple
Makefile
:Run with
make env
.Description of expected behavior and the observed behavior
Not to crash. Instead,
hypothesis
marks this as a flaky test: one that fails initially, but then succeeded upon shrinking.Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
Run with
pytest test_plots.py
:The text was updated successfully, but these errors were encountered: