-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
RecursionError when using PerformanceReport context manager #8578
Comments
Thanks for the report @jinmannwong. Unfortunately I'm not able to reproduce with the following steps: # Create a fresh software environment with the specified version of `dask`
$ mamba create -n test python=3.11 dask=2024.2.0 xarray netcdf4
$ mamba activate test
$ python test.py where from dask.distributed import Client, performance_report
import xarray as xr
dask_graph = {"source": (xr.load_dataset, "rasm.nc")}
if __name__ == "__main__":
with Client() as client:
with performance_report(filename="dask-report.html"):
client.get(dask_graph, "source") I also tried with the latest Are you doing something different than what I described above? |
Thank for looking into this. I was running on a virtual environment that had a lot of other dependencies installed and indeed when I ran with just the required dependencies the problem didn't arise. I combed through the other dependencies I had and realised that the problem arises due to the installations of cupy-cuda11x=13.0.0 and jax=0.4.25 together. When I try running with the dependencies you listed and then one of cupy or jax, there is no problem. The output of
and I am using xarray version 2024.2.0. |
Hmm that's interesting. I am able to reproduce when I install cc @crusaderky @charlesbluca @quasiben in case someone has bandwidth to dig in a bit |
For what its worth, I'm experiencing this same issue when dealing with a large number of geojson formatted dictionaries. Not sure if that is a specific cause here or not, but have started having the same error as in the original post. |
I'm also experiencing this issue. my {
"Python": "3.10.12",
"Platform": "Linux",
"dask": "2023.10.0",
"distributed": "2023.10.0",
"numpy": "1.23.4",
"pandas": "2.1.1",
"cloudpickle": "3.0.0",
"fsspec": "2023.9.2",
"bokeh": "3.2.2",
"fastparquet": "2023.8.0",
"pyarrow": "13.0.0",
"zarr": "2.16.1"
} |
FWIW, I encounter the same bug testing my code as:
It disappears if I call my script multiple times on multiple files as in:
My
|
Describe the issue:
When executing certain custom task graphs with the PerformanceReport context manager I get log warnings like the following:
which repeats until it finally ends with
The computation still completes correctly and this problem doesn't arise when executing without the performance report.
Minimal Complete Verifiable Example:
This is a small example code that reproduces the problem, where I am using the xarray data from https://github.com/pydata/xarray-data/blob/master/rasm.nc.
Environment:
The text was updated successfully, but these errors were encountered: