Skip to content

mujoco.MjData(None) will hang forever #2426

Open
@vikashplus

Description

@vikashplus

Intro

Hi,
I'm an advanced user

My setup

MuJoCo, python, OSX

What's happening? What did you expect?

Trying to create mj_data using model=None should gracefully fail or throw an error, but hangs forever

Steps for reproduction

Run attached code

Minimal model for reproduction

No model needed

Code required for reproduction

import mujoco

print(
    "Trying to create mj_data using model=None. This should gracefully fail or throw an error"
)
mj_data = mujoco.MjData(None)
print("Created mj_data")

Confirmations

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