#8215·IsaacLab

[Bug Report] Newton FrameView created before sim.reset() covers the wrong environments

Author: NeoZngCreated Sep 30, 2026Updated Sep 30, 2026

Describe the bug

A NewtonSiteFrameView (what FrameView resolves to on Newton) that is created before the Newton model exists does not match the environments it selects. The model does not exist until sim.reset().

  • A static per-environment frame is a frame under a non-physics prim, for example {ENV}/Prop/Mount under an AssetBaseCfg prop. If the view is created after the scene is cloned but before sim.reset(), it has one frame instead of one per env. That frame sits at the env-local pose, with no env origin added.
  • A view that selects only some envs, for example /World/envs/env_1/..., gets a frame in every env. This happens for both static and body-attached frames, and whether the view is created before or after cloning. Its destination prim paths are then left unpaired, so pose writes are not mirrored to Fabric.

The same views created after sim.reset() are correct. So are the same views on PhysX, before or after reset.

Steps to reproduce

Use 4 envs with env_spacing=2. Each env has a rigid Cube at (0, 0, 1) and a visual-only AssetBaseCfg Prop at (0.3, 0.2, 0). Each gets a child Xform, Cube/Mount (0, 0, 0.25) and Prop/Mount (0, 0, 0.5). The env origins are (1,-1), (1,1), (-1,-1) and (-1,1).

python
scene = InteractiveScene(SceneCfg(num_envs=4, env_spacing=2.0))
sim_utils.create_prim("/World/envs/env_0/Prop/Mount", translation=(0.0, 0.0, 0.5))
sim_utils.create_prim("/World/envs/env_0/Cube/Mount", translation=(0.0, 0.0, 0.25))
static = FrameView("/World/envs/env_[^/]+/Prop/Mount", device="cuda:0")
static_env2 = FrameView("/World/envs/env_2/Prop/Mount", device="cuda:0")
body_env2 = FrameView("/World/envs/env_2/Cube/Mount", device="cuda:0")
sim.reset()
for view in (static, static_env2, body_env2):
    print(view.count, view.get_world_poses()[0].torch)
view Newton, created before reset Newton, after reset / PhysX
env_[^/]+/Prop/Mount 1 frame at (0.3, 0.2, 0.5) 4 frames at origin + (0.3, 0.2, 0.5)
env_2/Prop/Mount 1 frame at (0.3, 0.2, 0.5) 1 frame at (-0.7, -0.8, 0.5)
env_2/Cube/Mount 4 frames, one per env 1 frame on env 2's cube
env_[^/]+/Cube/Mount 4 frames, correct 4 frames, correct

System Info

  • Commit: develop c1a8bfa50b; the same code is on release/3.0.0 (d9a1a12d19)
  • Isaac Sim Version: 6.1.0-rc.26
  • Newton 1.6.0
  • OS: Ubuntu 24.04
  • GPU: RTX PRO 5000 Blackwell, driver 580.126.20

Additional context

Before the model exists, the view registers Newton sites through NewtonManager.cl_register_site and later reads them back from _cl_site_index_map. That path does not carry the selected env ids:

  • A body frame is registered with a .* world pattern.
  • A static frame is registered with per_world=True, which means every world. Its registration key has no env ids.
  • _initialize_from_site_map then collects the sites of every world.

After replication, pending sites are injected by NewtonManager.start_simulation, which adds a per-world site only once, as a global site with the env-local transform.

In-tree callers create their views after the model exists, for example Camera at PHYSICS_READY. The affected cases are user code and tests that create a view before reset. That is the flow used by the Newton FrameView contract fixture.

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

  • A Newton frame view created before sim.reset() has exactly one frame per selected env, at that env's pose, the same as a view created after reset. This holds for static and body-attached frames and for a view created before or after cloning.