Repository navigation
Description
If you are submitting a bug report, please fill in the following details and use the tag [bug].
Describe the bug
NewtonBufferMonitor.check() aborts on every MuJoCo-Warp overflow flag. Two of those flags,
OverflowType.ITERATIONS (0x200) and OverflowType.LS_ITERATIONS (0x400), are not buffer overflows. They mean a
step's solver or line search reached its iteration limit. MuJoCo keeps the last iterate and continues, and no physics
data is dropped. Arena reports them as "Newton physics buffer overflow; simulation results are invalid" and asks for
larger capacities, which does not help.
The Newton preset makes this more likely: ls_iterations=30 (since #1481) is below MuJoCo's default of 50, Isaac
Lab's MJWarpSolverCfg default of 50, and the 50 that Arena's gear insertion environment sets.
Steps to reproduce
With the fixtures of isaaclab_arena/tests/test_newton_buffer_monitor.py:
monitor, data, _ = _make_monitor()
data.overflow.assign([0, 0x200]) # one world reached the solver iteration limit
monitor.record_solver_status()
monitor.check()Error:
AssertionError: Newton physics buffer overflow; simulation results are invalid. MuJoCo-Warp overflow flags: 0x200.
Increase the indicated capacities with headroom and restart the run.
In practice, a 2048-environment PPO run in a contact-rich manipulation scene aborted after a few minutes on 0x200, and long contact-rich episodes aborted on 0x400 with ls_iterations=30.
System Info
Additional context
- Abort Newton runs on physics buffer overflow #1385 added the monitor to catch failures that "silently discard physics data". Iteration limits discard none.
- MuJoCo-Warp separates them the same way: update overflow warnings google-deepmind/mujoco_warp#1615 made overflow warnings maskable per flag
so users can silence "benign or expected" line-search warnings, and Support enum negation in model overrides and respect warn_overflow in testspeed google-deepmind/mujoco_warp#1626 masks
ITERATIONSandLS_ITERATIONSso its benchmarks run to completion. - [Tasks] Fix MJWarp line-search overflow in lift tasks IsaacLab#7942 raised the lift tasks to
ls_iterations=50: "Iterative line search exits when it converges,
so environments that need fewer iterations do not execute the full ceiling."
Checklist
- I have checked that there is no similar issue in the repo (required)
- I have checked that the issue is not in running Isaac Sim itself and is related to the repo
Acceptance Criteria
- Buffer overflows (contacts, constraint rows, and the other MuJoCo-Warp flags) still abort the run.
- Iteration-limit flags are counted and logged instead of aborting.
- The Newton preset uses MuJoCo's default
ls_iterations(50).
Activity