Skip to content

[Bug Report] Autoreset in AsyncVectorEnv causes crash in 1.2.0 #1445

@amarkoolk

Description

@amarkoolk

https://github.com/Farama-Foundation/Gymnasium/blame/7cb208f491fd9876a8ee41bb2d8d212d0d6ffabc/gymnasium/vector/async_vector_env.py#L757

During autoreset reward, truncation, and termination are set to non numpy array types.

np.array(rewards, dtype=np.float64),
np.array(terminations, dtype=np.bool_),
np.array(truncations, dtype=np.bool_),

This results in the above lines of code failing due to inhomogeneous structure between numpy arrays of np.float32 and int for reward, as well as for termination and truncation.

gymnasium==1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions