[Bug]: IPC ground regression tests fail with pyuipc 0.0.28.

Author: cyanseekCreated Sep 29, 2026Updated Sep 29, 2026

Bug Description

On main d00455a16a86a0a2e63f8295132c9bf8b74d2f79 with pyuipc 0.0.28, test_ground_clearance and test_ground_sliding fail for both n_envs=0 and n_envs=2 (four failures). Their setup depends on backend behavior that no longer matches the assumptions of the assertions.

Steps to Reproduce

With the test dependencies and pyuipc 0.0.28 installed, run on an NVIDIA GPU:

bash
pytest -n 0 --backend gpu -o addopts='' --import-mode=importlib -m 'not benchmarks' \
  tests/ipc/test_rigid.py::test_ground_clearance \
  tests/ipc/test_rigid.py::test_ground_sliding -q

No external assets are needed. This reproduces on the unmodified commit above, independently of #3441.

Expected Behavior

The clearance test should compare distinct effective contact resistances, and the sliding test should solve contact accurately enough to test its existing friction-independent height assertion.

Relevant Results

  • Clearance: libuipc clamps pair resistances to a scene-dependent interval. In this scene the lower bound is about 98516.3. The first three cube-plane harmonic means (about 199.98, 1998.00, 19801.98) all clamp to that bound and produce the same approximately 6.3914 mm clearance. The strict ordering assertion therefore fails. Longer settling and tighter solver tolerances do not restore distinct resistances.
  • Sliding: at step 100 the middle cube rocks to about 16 degrees, creating an adjacent center-height difference of about 9.295 mm, above the 0.05 mm assertion. Disabling only newton_semi_implicit_enable reduces the largest adjacent height difference to about 0.00233 mm. Tightening only the linear or ordinary Newton tolerances did not suffice.

The backend's contact implementation clamps the coefficients, and its Newton documentation describes the enabled-by-default semi-implicit early exit. The installed backend configuration also reports newton/semi_implicit/enable = 1.

Environment

  • Linux, RTX 4090, NVIDIA driver 580.126.09
  • Python 3.12.3, PyTorch 2.13.0+cu130, pyuipc 0.0.28
  • Genesis precision 32, seed 0
  • Genesis commit d00455a16a86a0a2e63f8295132c9bf8b74d2f79

Additional Context

A test-only fix can keep every existing assertion and step count: choose cube resistances whose pair coefficients remain distinct after clamping, and use eight substeps per outer step to resolve sliding contact with the default semi-implicit solver. Eight and sixteen substeps reduced the largest adjacent center-height difference to approximately 0.585 and 0.458 micrometers. Both storage modes pass all four ground cases with eight substeps; the total simulated time and original assertions are unchanged. This does not require changing production solver defaults or treating the separate chain-contact report #2784 as resolved.

Source: Genesis-Embodied-AI/genesis-world