Repository navigation
Description
Describe the bug
When scripts/reinforcement_learning/rsl_rl/play.py is run with --livestream 2, WebRTC signaling completes successfully, ICE reaches connected, and all 5 data-channels open (input_channel_v1, cursor_channel, stats_channel, control_channel, remote_trace_channel). However, no inbound-rtp (kind=video) entry appears in chrome://webrtc-internals — the server never creates a video RTP stream.
In contrast, scripts/demos/quadrupeds.py with the same flags produces an inbound-rtp (kind=video, codec=H264) entry and the viewport renders correctly in the browser.
On the client side, document.querySelector('video') shows videoWidth=0, videoHeight=0, currentTime=0 — no frames ever arrive.
Steps to reproduce
cd IsaacLab
# WORKS — browser shows quadruped robots, video track H264 flowing
./isaaclab.sh -p scripts/demos/quadrupeds.py --livestream 2
# FAILS — WebRTC connected but no video track, blank viewport
./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/play.py \
--task Isaac-Ant-v0 --num_envs 4 --livestream 2Open http://<host>/viewer/ (NVIDIA web viewer sample) in Chrome, then open chrome://webrtc-internals in another tab.
chrome://webrtc-internals comparison
quadrupeds.py (works):
Stats graphs for candidate-pair (state=succeeded)
Stats graphs for transport (iceState=connected, dtlsState=connected)
Stats graphs for inbound-rtp (kind=audio)
Stats graphs for inbound-rtp (kind=video, codec=H264 96) ← PRESENT
Stats graphs for data-channel x 5
play.py (broken):
Stats graphs for candidate-pair (state=succeeded)
Stats graphs for transport (iceState=connected, dtlsState=connected)
Stats graphs for media-playout (kind=audio)
Stats graphs for data-channel x 5
(no inbound-rtp video entry at all)
Client-side check:
const v = document.querySelector('video');
console.log(v.readyState, v.videoWidth+'x'+v.videoHeight, v.currentTime);
// Output: 0 0x0 0 (no frames ever decoded)Attempts that did NOT help
- Forcing
render_mode="rgb_array"ingym.make(line 116 ofplay.py) - Adding
env.unwrapped.sim.render()in the rollout loop afterenv.step() - Setting
env_cfg.sim.use_fabric = Falseto force USD prim materialization - Removing
--experienceto letAppLauncherpick Isaac Lab's default
None of these caused a video track to be negotiated.
Expected behavior
play.py --livestream 2 should produce a WebRTC video stream of the same viewport that demo scripts produce. Users should be able to visualize trained policies running in a browser.
System Info
- Isaac Lab: 2.1.1
- Isaac Sim: 6.0.0-rc.22
- Task:
Isaac-Ant-v0,--num_envs 4 - WebRTC client: Chrome on macOS
- Streaming library:
@nvidia/omniverse-webrtc-streaming-library - Deployment: Kubernetes pod (containerd), NVIDIA RTX 6000 Ada
Additional context
ManagerBasedRLEnv appears to be constructed without a viewport/rendering configuration that Kit's livestream extensions can capture. Demo scripts like quadrupeds.py construct a different scene hierarchy (direct USD spawn) that does register with the livestream publisher.
This is likely an integration gap between play.py's env setup and Kit's omni.kit.livestream.webrtc extension — not a networking or ICE issue (those all succeed).
This blocks live visualization of trained RL policies in browser, which is the primary use case for --livestream 2 with play.py.
Activity
100milliongold commentedon Apr 23, 2026
Update 2026-04-24 — expanded investigation
Retested on Isaac Lab 3.0.0-beta1 (same Isaac Sim 6.0.0-rc.22 host). Bug reproduces identically. Full attempt matrix for user-side workarounds:
--kit_argswithprimaryStream.publicIp/signalPort/streamPortisaacsim.exp.full.streaming.kit's[settings.exts."omni.kit.livestream.app"]block (streamType=webrtc,allowDynamicResize,enableEventTracing,enableOpenTelemetry, ...)--enable omni.services.livestream.session+ itsquitOnSessionEnded / resumeTimeoutSeconds / waitForSessionReadyEventsettingsisaaclab.python.kit+"omni.kit.livestream.app" = {}and"omni.services.livestream.session" = {}added to[dependencies], loaded via--experience"isaacsim.exp.full" = {}also added to[dependencies]isaac-sim.streaming.sh(→isaacsim.exp.full.streaming.kit, no Isaac Lab) → openhttp://<host>/viewer/in ChromeStrongest signal
isaaclab.python.kitdoes not declareisaacsim.exp.fullin[dependencies]and its[settings.exts."omni.kit.livestream.app"]block is empty. The Kit experience that streams correctly,isaacsim.exp.full.streaming.kit, declares both (dep + populated settings block).Adding
isaacsim.exp.fullinto Isaac Lab's own experience is blocked by #5362, so #5364 and #5362 resolution appear coupled — fixing #5364 from the user side requires #5362 to be fixed first, or the Isaac Lab team to ship a pre-integrated streaming-aware experience (e.g.isaaclab.python.streaming.kit).System info update
GPU:line in the body should read:NVIDIA RTX 6000 Ada Generation (48 GB).Acceptance criteria (suggested)
./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/play.py --task Isaac-Ant-v0 --num_envs 4 --livestream 2renders the Ant scene athttp://<host>/viewer/chrome://webrtc-internalsshows aninbound-rtp (kind=video, codec=H264)entry within a few seconds of connectionSERVER_DISCONNECTEDat ~51 squadrupeds.pyandtrain.pypaths remain unaffectedRandomOakForest commentedon Apr 24, 2026
Thanks for posting this. We will aim to review this soon.
100milliongold commentedon Apr 25, 2026
Update 2026-04-25 — single-env isolation + working
TaskAdapterworkaroundContinued investigation, two new data points.
Single-env isolation
play.py --task Isaac-Ant-Direct-v0 --num_envs 1 --livestream 2reproduces. With one robot the stage has 38 USD prims under/World/envs/env_*, the active viewport binds,omni.kit.viewport.utility.get_active_viewport()returns a non-nullViewportAPI,env.unwrapped.sim.render()is callable in-loop, and the inbound-rtp video track still never appears. The bug isn't about replication, fabric clones, or scene size — it's in thegym.make→ env_setup_scenepath itself.Config-knob attempts that all failed
env_cfg.scene.clone_in_fabric = Falseenv_cfg.scene.replicate_physics = False--/rtx/hydra/readTransformsFromFabricInRenderDelegate=falseenv.unwrapped.sim.render()per loop stepomni.kit.viewport.utility.capture_viewport_to_file()after warmupThe Kit boot warning
[rtx.hydra] readTransformsFromFabricInRenderDelegate and geometry streaming are enabled together but this can cause issues with dynamic objects not streaming correctlypoints at the right area but isn't reachable from user-facing config.TaskAdapterworkaround that worksGeneralization of
quadrupeds.py:AppLauncher(args_cli)boots Kit (no special experience).SimulationContext(SimulationCfg(dt=…))directly — nogym.make.prim_utils.create_prim(f"/World/envs/env_{i}", "Xform", …)per env.Articulation(cfg.replace(prim_path="/World/envs/env_.*/Robot")).sim.step(); robot.update(dt). Per decimation tick: compute the task's obs, run actor MLP, set joint target.Per-task code is ~150 LOC isolated to
obs_dim,action_dim, network arch, action layout, and acompute_obsmirroring_get_observations. Adapters forIsaac-Ant-Direct-v0andIsaac-Velocity-Flat-Anymal-D-v0. NVST publishes a 1080p H264 video track on this path — same Kit, same kit_args, same livestream port, same pod.A wrapper takes the same CLI as
play.py(--task X --num_envs N --checkpoint … --livestream 2) so existing tutorial commands work with one path change.Implication for upstream fix
Structural difference is in scene construction, not rendering. Anything that uses
InteractiveScene.clone_environments(copy_from_source=False)produces stage geometry RTX can see but doesn't get routed to NVST's capture target. Hooking Kit's viewport binding to the same render product the wrapper's directSimulationContextreaches — or routing fabric-clone transforms back through the USD path RTX reads — would lift this for any task going through Manager- or Direct-RL env.100milliongold commentedon Apr 25, 2026
Reproducible commands (this pod, K8s, Isaac Lab 3.0.0-beta1, Isaac Sim 6.0.0-rc.22)
Standard tutorial flow that fails (
play.py— black screen):./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/play.py \ --task Isaac-Ant-Direct-v0 \ --num_envs 64 \ --checkpoint /workspace/isaaclab/logs/rsl_rl/ant_direct/<run>/model_999.pt \ --livestream 2 \ --kit_args "--/exts/omni.kit.livestream.app/primaryStream/publicIp=$ISAACSIM_HOST --/exts/omni.kit.livestream.app/primaryStream/streamPort=$ISAACSIM_STREAM_PORT --/exts/omni.kit.livestream.app/primaryStream/signalPort=$ISAACSIM_SIGNAL_PORT"→ WebRTC connects,
Stream Ready, butchrome://webrtc-internalsshows noinbound-rtp(kind=video)entry. Browser viewer stays black.Wrapper that works (same CLI shape):
./isaaclab.sh -p /workspace/data/replay/play_livestream.py \ --task Isaac-Ant-Direct-v0 \ --num_envs 64 \ --checkpoint /workspace/isaaclab/logs/rsl_rl/ant_direct/<run>/model_999.pt \ --livestream 2 \ --kit_args "--/exts/omni.kit.livestream.app/primaryStream/publicIp=$ISAACSIM_HOST --/exts/omni.kit.livestream.app/primaryStream/streamPort=$ISAACSIM_STREAM_PORT --/exts/omni.kit.livestream.app/primaryStream/signalPort=$ISAACSIM_SIGNAL_PORT"→ Identical Kit boot.
inbound-rtp(kind=video, codec=H264)appears within ~5 s. 64 ants stream in browser.Single-env isolation (the path that proves it's not replication):
./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/play.py \ --task Isaac-Ant-Direct-v0 \ --num_envs 1 \ --livestream 2 \ --kit_args "..." # 38 USD prims under /World/envs/env_*; viewport active; sim.render() callable; black screen.The wrapper source (
play_livestream.py+replay_common.py+ per-taskreplay_*.py) is ~700 LOC total.100milliongold commentedon Apr 26, 2026
🎯 ROOT CAUSE IDENTIFIED — single-line fix
After progressive isolation (each variable added to a known-working baseline until the screen turned black), the trigger is:
parser.set_defaults(visualizer=["kit"])is missing fromplay.py.add_app_launcher_args(parser)registers the--visualizerargparse option but doesn't set a default. Soargs_cli.visualizerisNone, andlaunch_simulation's_compute_visualizer_intent(env_cfg)resolves to a non-Kit path that doesn't bind RTX/Hydra's render product to NVST's capture target → no inbound-rtp video frames.The fix (1 line)
In
scripts/reinforcement_learning/rsl_rl/play.py, immediately before:add:
That's it. With nothing else changed,
play.py --livestream 2produces aninbound-rtp(kind=video, codec=H264)track and the viewport renders correctly.Verification matrix (this pod, Isaac Lab 3.0.0-beta1, Isaac Sim 6.0.0-rc.22)
Each row = stock
play.pywith one independent variable changed:runner.export_policy_to_jit/onnxBYPASSEDwith launch_simulation(...)BYPASSED (direct AppLauncher)cli_args.update_rsl_rl_cfg(agent_cfg, args_cli)BYPASSEDparse_env_cfg+load_cfg_from_registryparser.set_defaults(visualizer=["kit"])ADDED (only this)Why the previous TaskAdapter workaround worked
The earlier
replay_*.pywrappers from this thread happened to callparser.set_defaults(visualizer=["kit"])explicitly during their own argparse setup. That wasn't load-bearing for the SimulationContext path (since SimulationContext bypasseslaunch_simulationentirely) — it just happened to be there. The actual structural/scene-graph hypothesis (clone_in_fabric, replicate_physics, fabric→Hydra transforms) was wrong: the entire env/scene/runner/policy chain works fine throughgym.make. Only the visualizer argparse default was missing.Suggested upstream fix scope
Either:
play.pydirectly (andtrain.pyetc. by audit), orAppLauncher.add_app_launcher_argsso all consumers get it without each script remembering.The latter is probably better — affects every RL script at once and matches the implicit assumption that
--livestreamusers want the Kit visualizer.System info
Isaac-Ant-Direct-v0,--num_envs 64,--livestream 2Exokern commentedon May 5, 2026
I checked the current
developsources against the root-cause note above. The missing default still appears present inscripts/reinforcement_learning/rsl_rl/play.py: the script callsadd_launcher_args(parser)and then parses immediately, without settingvisualizer=["kit"]first.The relevant launcher path also seems consistent with the reported failure mode:
_get_visualizer_types()returns an empty set whenargs_cli.visualizeris unset, solaunch_simulation()has no explicit Kit visualizer request to propagate for this script path.A minimal patch would be:
I have not run the Isaac Sim livestream path locally, so I am not claiming runtime validation here; this is just a source-level confirmation that the one-line candidate fix still matches current
develop.AntoineRichard commentedon Aug 27, 2026
@100milliongold, thanks for the report and for the root-cause analysis in the thread. That cause is now fixed generically:
launch_simulation()calls_ensure_livestream_kit_visualizer()insource/isaaclab/isaaclab/app/sim_launcher.py, which forces thekitvisualizer whenever--livestreamis non-zero (and errors clearly if you passed--viz none), so the RTX render product is bound and a video track is produced. Landed in #5977.Closing as fixed — please reopen with your launch command if a current release still gives a blank viewport.
🤖 This issue was reviewed as part of an AI-assisted triage of the Isaac Lab backlog, with automated verification against the current codebase. If we got this wrong, please reopen — we'd rather hear about it!