Skip to content

Slicing cube with dask.slicing (dask 2.0) runs into stack overflow  #3346

@valeriupredoi

Description

@valeriupredoi

hey guys, we noticed that a particular type of cube slicing done by dask.slicing with dask=2.0.0 produces a stack overflow error. The problem is described in ESMValGroup/ESMValTool#1188 specifically ESMValGroup/ESMValTool#1188 (comment) and boils down to an example: take any cube with time-lat-lon dims:

cube[(0, slice(None, None, None), slice(None, None, None), slice(None, None, None))]

results in Fatal Python error: Cannot recover from stack overflow. and core dumping.

I am not 100% sure this is dask's fault, but if it is, we should raise it with them 🍺

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions