google-deepmind / mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.
https://mujoco.org
Apache License 2.0
8.25k stars 823 forks source link

No Error Message from Simulate When Loading Model with Invalid Assets #2135

Closed kevinzakka closed 1 month ago

kevinzakka commented 1 month ago

Intro

👋

My setup

MuJoC Simulate App

What's happening? What did you expect?

What happens: When loading a model with a referenced assets that cannot be found, a "Loading" flickers then nothing happens and the simulate window stays blue.

What I expect should happen: error message at the bottom left corner telling me what went wrong.

UPDATE: Any invalid XML does not display the associated error.

Steps for reproduction

  1. Open simulate.
  2. Drag the above XML into the window.

Minimal model for reproduction

<mujoco>
  <compiler angle="radian" meshdir="assets" autolimits="true"/>
  <asset>
    <mesh file="test.stl"/>
  </asset>
  <worldbody>
    <body name="test" pos="0 0 0.445">
      <geom class="visual" mesh="test"/>
      <geom class="collision" size="0.125 0.04 0.057" type="box"/>
    </body>
  </worldbody>
</mujoco>

Code required for reproduction

No response

Confirmations

kevinzakka commented 1 month ago

Adding to the above, there are 2 errors in the model I attached but none are showing up:

  1. The referenced class does not exist.
  2. The mesh doesn't exist.

I checked versions from 3.1.6 to 3.2.2 and they correctly display the error:

Screenshot 2024-10-11 at 11 04 44 AM