debug: 4 collect-mode issues seen on 536 (nova)
Browse filesFiles changed (4)
123456789101112131415161718# N012 sawyer_umi: ~47 % success in collect mode, mostly pre_grasp planning failures
Reported by the 536 collection machine (agent nova), 2026-11-07. Code: mobile-ready ab32a6159 / 81e58ce6a. Owner said ~40 % is acceptable; this note is for the record.
## Numbers (536, `--collect`)| DR | ok | fail ||---|---|---|| off | 46 | 58 || on | 49 | 48 |go2_arm and stretch3 on N012: 49/50 per cell with few failures.
## Failure reasons (last 40 failed sawyer episodes, report `failure_reason`)- 16 × `stage pre_grasp failed (planner/skill code 3): failed: global planner ...` (cuRobo MotionGen: "ALL FAILED ... No trajectory satisfied all constraints" although IK solves)- 7 × `manipulation: the squeegee is not in the hand after closing`- 2 × `violation: squeegee dropped to the floor`; 2 × `push_1 ... target not reached`; 2 × `pre_grasp ... target not reached`; 2 × `grasp ... target not reached`
## Possible leverThe handoff command sets `MMB_LEAN_SEEDS=1` ("the cuRobo seeds of every N012 Gate 3 run"). We used it for sawyer_umi too. If the Gate 3 sawyer runs did not use the lean seeds, the pre_grasp MotionGen failures (the largest group) may come from it. Worth confirming which seeds the sawyer Gate 3 used.1234567891011121314151617181920212223242526272829# N051: collect-mode instruction names the wrong tray colour in ~45 % of successful episodes
Reported by the 536 collection machine (amarel xc536, agent nova), 2026-11-07. Code: mobile-ready 6431d1ba1 .. 81e58ce6a (unchanged in this area).
## Symptom`scripts/mmb_a11/verify_collect_dataset.py <cell> --task N051 --report <out>/report.json` fails on`[FAIL] task text = MobileBench instruction`: the dataset's `meta/tasks.jsonl` says "... pull the cord that brings the **blue** tray to your side",while the report of the same episode (`episodes[0]...goal_tray`) says **red** (or the other way round). The trajectory itself is the red one (the task succeeded against goal_tray).
536 counts (successful episodes = ok + verify_fail; failed episodes not counted):| robot | DR | kept (instruction correct) | rejected (instruction wrong) ||---|---|---|---|| go2_arm | off | 11 | 7 || go2_arm | on | 11 | 10 || stretch3 | off | 11 | 8 || stretch3 | on | 11 | 9 |850 saw the same (153 rejected). It does not depend on visual DR or robot: ~45 % of successes, i.e. close to a coin flip on the tray colour.
## Likely cause (from reading the code; not stepped through in a debugger)- `collect_mode._n051_slots` returns `{"tray_colour": task_env._ep[env_id]["truth"]["goal_tray"]}` and is called "when the episode is accepted (before the save worker)" (`instructions.set_slot_provider` docstring).- `n051_env._sample_truth` draws a new `goal_tray` (random, red/blue) in `_after_episode_reset`.- If the episode's reset runs before the recorder accepts the finished trajectory (auto-reset on done, or `finalize_recording` enqueueing after the loop), the provider reads the **next** episode's freshly drawn truth → the colour is right only when the new draw happens to equal the old one (≈50 %), which matches the counts.- `report.json` is written from the episode result taken before the reset, so it holds the right colour.
## Suggested fixCapture the slot value when the episode starts (or when success is detected) and keep it with the trajectory, instead of reading `task_env._ep` at accept time; or make the provider read the truth stored in the episode result. A test: run 5 seeds with `--collect` and check `tasks.jsonl` colour == report `goal_tray`.
## Impact on the dataOnly episodes whose instruction matches the report were uploaded (the verify step rejects the others), so the HF data is correct; ~45 % of N051 compute is wasted until fixed.123456789101112131415161718# N052 stretch3 (and 850's N052 sawyer_umi): every collect episode fails at take_item:lift
Reported by the 536 collection machine (agent nova) and 850 (agent data-monster), 2026-11-07. Code: mobile-ready 6431d1ba1 / 7ac467262.
## Symptom- N052 × stretch3, `--collect`, DR off and on: **0 / 11** (536). N052 × sawyer_umi on 850: **0 / 13**. N052 go2_arm on the same machines: ~85 % success.- Every failure: `reason='skill_failed:take_item:lift:3'` (MemoryStation runner), ~2 min into the episode:```event move_target {'label': 'take_item:down:0', 'mode': 4, 'pos': [0.12, 1.1, 0.5136], ...}event settle_err {'label': 'take_item:down', 'k': 0, 'err_mm': [1.7, 0.0, -2.9], 'norm_mm': 3.4}event move_target {'label': 'take_item:lift', 'mode': 4, 'pos': [0.12, 1.1, 0.6336], ...}Env 0 task failed (failed: skill 'take_item:lift' truncated 3)``` i.e. the hand reaches the item (3.4 mm settle error), closes, and the lift move is truncated (code 3).
## Things worth checking on the build machine- The item USD: our machines do not have `/workspace/mobilemanipbench/data/...`; we downloaded `clutter_dice_00000/Object.usd` and `rigid_pen_00010/Object.usd` from the public HF dataset `prlq/dexgrasp-robotwin-4gripper` and bind them at that path. If the build machine's copy differs (scale, collision, mass), grasping with the smaller grippers could fail while go2's works. A checksum of the build machine's `clutter_dice_00000/Object.usd` would settle it.- Whether the Gate 3 runs of N052 stretch3 / sawyer used settings that the collect command in DATA_COLLECTION_HANDOFF section 7 does not pass (the MemoryStation command only sets `MEMORY_ROBOT`, `--spawn-jitter 0.3`, `--max-steps 20000`).12345678910111213141516171819202122232425262728293031323334353637383940414243# N032 / N033 / N034 sawyer_umi: collect mode crashes on the first step (AttributeError robot_name)
Reported by the 536 collection machine (amarel xc536, agent nova), 2026-11-07 22:5x CST.
## Symptom- Cells N032 / N033 / N034 × sawyer_umi, `--collect` (visual DR on and off): every episode exits after ~3 min, no dataset.- 536 counts: N032 sawyer 0/12, N033 sawyer 0/12, N034 sawyer 0/10. go2_arm and stretch3 cells of the same tasks run normally (N032 go2 4/4, N033 go2 4/4 at the time of writing).- Report line: `STATION_RESULT {... "robot": "sawyer_umi", "error": "AttributeError: 'N032EnvXR' object has no attribute 'robot_name'", ...}` (same with `N033EnvXR`, `N034EnvXR`).
## Traceback (identical for the three tasks)```File ".../Collect/Task/StationSearch/Env/TestStationEnvXR.py", line 363, in mainFile ".../Task/MobileBench/collect_mode.py", line 423, in after_stepFile ".../Task/MobileBench/collect_mode.py", line 417, in _bind self.rob = self.env.scene.robot_manager.robots[self.env.env.robot_name]AttributeError: 'N032EnvXR' object has no attribute 'robot_name'```
## Cause`collect_mode.HeadTracker` (sawyer_umi only, on by default in collect mode, `MMB_COLLECT_HEAD_TRACK`) looks the robot up lazily on the first `after_step()` through `env.env.robot_name`.The MemoryStation runner's env has that attribute (N051–N053 sawyer collect fine), but the StationSearch XR envs (`N032EnvXR`, `N033EnvXR`, `N034EnvXR`, created in `TestStationEnvXR.py`) do not.`TestStationEnvXR.py:330` creates the tracker with `HeadTracker.from_env(env, collect_robot)` and line 363 calls `head_track.after_step()`, so every sawyer collect episode dies at the first control step.go2_arm and stretch3 are unaffected because `from_env` returns None for robots other than sawyer_umi.
## Suggested fix (for the build machine; we did not change any code)Either- give `HeadTracker._bind` a fallback when `env.env` has no `robot_name` (e.g. the single entry of `env.scene.robot_manager.robots`, or the XR env's own robot key), or- pass the robot asset explicitly from `TestStationEnvXR.py` (`HeadTracker(robot_asset=<sawyer asset>, env=env)`), or- add `robot_name` to the StationSearch XR envs.A unit test in `tests/station/test_collect_wiring.py` that runs one `after_step()` with `--robot sawyer_umi --collect` would catch it.
## Reproducemobile-ready 81e58ce6a (contains 64eee62be8):```OMNI_KIT_ACCEPT_EULA=YES ACCEPT_EULA=Y PYTHONPATH=$PWD/src MAGICSIM_MOTIONGEN_FAILURE_DIAGNOSTICS=1 \python -m magicsim.Collect.Task.StationSearch.Env.TestStationEnvXR --robot sawyer_umi --task N032 --level easy --seed 1001 \ --stage full --episodes 1 --walltime-s 4800 --report OUT/report.json --out OUT/rec \ --headless --enable_cameras --collect --visual-dr off --set station.dr.enabled=true```Workaround that should avoid the crash without a code change (not tried, it changes the head camera): `MMB_COLLECT_HEAD_TRACK=0` (the head then keeps its initial pan).
## Status on 536The three sawyer cells were dropped automatically (0 successes in ≥ 8 attempts). They will be collected once a fixed commit is on mobile-ready.debug/536/n012_sawyer_planning.mdAdded+18
debug/536/n051_instruction_colour.mdAdded+29
debug/536/n052_stretch3_lift.mdAdded+18
debug/536/station_sawyer_collect_crash.mdAdded+43