Describe the Bug
I'm running Windows 11 Pro 24H2 (26100.7840), and I can reproducibly cause a memory leak by importing dask.array as follows (using uv --version = uv 0.10.10 (8c730aaad 2026-03-13)):
- Create a blank project with
uv init --python=3.13.12
uv add dask==2025.5.1
uv add pyrefly==0.57.1
- Enter the environment with
.\.venv\Scripts\activate.ps1
- Run
pyrefly init
- Set
main.py to match the code snippet below (entire file).
- Run
pyrefly check
- Observe frozen
pyrefly and the process memory steadily climbing.
import dask.array as da
def main(foo):
x = da.nanmin(foo)
This also happens with the IDE extension and with other environment managers, e.g., the project where I found this originally uses pixi. I have not tried searching if a “future” dask release remediates this internally, but at a glance dask==2026.3.0 (the latest stable) has the same issue.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
Describe the Bug
I'm running Windows 11 Pro 24H2 (26100.7840), and I can reproducibly cause a memory leak by importing
dask.arrayas follows (usinguv --version=uv 0.10.10 (8c730aaad 2026-03-13)):uv init --python=3.13.12uv add dask==2025.5.1uv add pyrefly==0.57.1.\.venv\Scripts\activate.ps1pyrefly initmain.pyto match the code snippet below (entire file).pyrefly checkpyreflyand the process memory steadily climbing.This also happens with the IDE extension and with other environment managers, e.g., the project where I found this originally uses
pixi. I have not tried searching if a “future”daskrelease remediates this internally, but at a glancedask==2026.3.0(the latest stable) has the same issue.Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response