Skip to content

setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (256, 6) + inhomogeneous part. #458

@svha1977

Description

@svha1977

Hi

I get this error on a custom gymnasium wrapped environment with variable episode length.
I suspect that it might be near episode end where it cannot collect x samples.

I did strip away all the logic in the env - that is having chat gpt do it so there might be stray artifacts in there, but its gets to produce the same error as I my real life scenario

I did it in a Jupyter notebook, so it's not directly debuggable but close.
LightZeroBug.ipynb

@puyuan1996 As discussed on discord I here post a reproduction of the issue. I also did at printout of current numpy version and light zero version (0.2.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions