Skip to content

[Bug Report] NewtonBufferMonitor aborts runs when the solver reaches its iteration limit #1525

Open

Description

@daniel-debrun

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

  • Arena main 6b27eb3 (also b5708b7), Isaac Lab 3.0.0, newton 1.6.1, mujoco-warp 3.12, warp 1.17

Additional context

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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