openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.83k stars 810 forks source link

Engine error: Stack overflow #674

Open zixichen007115 opened 2 years ago

zixichen007115 commented 2 years ago

Describe the bug I try to use body-composite in xml file to represent a deformable box. When there are 12800 particles, this error will appear.

_Exception: Failed to load XML file: xmls/sensor_force_xy.xml. mjloadXML error: b'Error: engine error: Stack overflow'

To Reproduce run python force_xy.py. The code is here. https://github.com/zixichen007115/mujoco_force

Expected behavior I know it works if I decrease the particle number, but big particles fail to represent the deformable box. I want to know whether I can keep the particle number and run the code. Is there a better way to represent a deformable box?

Error Messages _Exception: Failed to load XML file: xmls/sensor_force_xy.xml. mjloadXML error: b'Error: engine error: Stack overflow'

haoranlab commented 2 years ago

You can open the xml file and try setting 'nstack' larger.