Repository navigation
Description
[bug]
Describe the bug
When running multi-GPU distributed training (nproc_per_node=2), the script fails for the Isaac-Velocity-Rough-G1-v0 task, but works correctly for the Isaac-Reach-Franka-v0 task.
The error appears in both ranks (rank 0 and rank 1) and is a CUDA error: an illegal memory access was encountered. This error originates from the PyTorch distributed backend (ProcessGroupNCCL) and causes the process group watchdog to terminate, ultimately leading to a ChildFailedError (Signal 6, SIGABRT).
Steps to reproduce
-
Run the following command (which works correctly) to verify the base distributed setup:
python -m torch.distributed.run --nnodes=1 --nproc_per_node=2 scripts/reinforcement_learning/rsl_rl/train.py --task=Isaac-Reach-Franka-v0 --headless --distributed
-
Run the failing command:
python -m torch.distributed.run --nnodes=1 --nproc_per_node=2 scripts/reinforcement_learning/rsl_rl/train.py --task=Isaac-Velocity-Rough-G1-v0 --headless --distributed
-
The following error occurs:
Error executing job with overrides: [] [rank0]:[E1113 13:57:32.273333750 ProcessGroupNCCL.cpp:1896] [PG ID 0 PG GUID 0(default_pg) Rank 0] Process group watchdog thread terminated with exception: CUDA error: an illegal memory access was encountered Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. Exception raised from c10_cuda_check_implementation at /pytorch/c10/cuda/CUDAException.cpp:43 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x98 (0x7189217775e8 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0xe0 (0x71892170c4a2 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #2: c10::cuda::c10_cuda_check_implementation(int, char const*, char const*, int, bool) + 0x3c2 (0x7189248a5422 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10_cuda.so) frame #3: c10d::ProcessGroupNCCL::WorkNCCL::finishedGPUExecutionInternal() const + 0x56 (0x7185754e5456 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #4: c10d::ProcessGroupNCCL::WorkNCCL::isCompleted() + 0x70 (0x7185754f56f0 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #5: c10d::ProcessGroupNCCL::watchdogHandler() + 0x782 (0x7185754f7282 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #6: c10d::ProcessGroupNCCL::ncclCommWatchdog() + 0x14d (0x7185754f8e8d in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #7: <unknown function> + 0xdc253 (0x718c40cdc253 in /lib/x86_64-linux-gnu/libstdc++.so.6) frame #8: <unknown function> + 0x94ac3 (0x718c41e94ac3 in /lib/x86_64-linux-gnu/libc.so.6) frame #9: <unknown function> + 0x1268c0 (0x718c41f268c0 in /lib/x86_64-linux-gnu/libc.so.6) terminate called after throwing an instance of 'c10::DistBackendError' what(): [PG ID 0 PG GUID 0(default_pg) Rank 0] Process group watchdog thread terminated with exception: CUDA error: an illegal memory access was encountered Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. Exception raised from c10_cuda_check_implementation at /pytorch/c10/cuda/CUDAException.cpp:43 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x98 (0x7189217775e8 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0xe0 (0x71892170c4a2 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #2: c10::cuda::c10_cuda_check_implementation(int, char const*, char const*, int, bool) + 0x3c2 (0x7189248a5422 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10_cuda.so) frame #3: c10d::ProcessGroupNCCL::WorkNCCL::finishedGPUExecutionInternal() const + 0x56 (0x7185754e5456 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #4: c10d::ProcessGroupNCCL::WorkNCCL::isCompleted() + 0x70 (0x7185754f56f0 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #5: c10d::ProcessGroupNCCL::watchdogHandler() + 0x782 (0x7185754f7282 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #6: c10d::ProcessGroupNCCL::ncclCommWatchdog() + 0x14d (0x7185754f8e8d in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #7: <unknown function> + 0xdc253 (0x718c40cdc253 in /lib/x86_64-linux-gnu/libstdc++.so.6) frame #8: <unknown function> + 0x94ac3 (0x718c41e94ac3 in /lib/x86_64-linux-gnu/libc.so.6) frame #9: <unknown function> + 0x1268c0 (0x718c41f268c0 in /lib/x86_64-linux-gnu/libc.so.6) Exception raised from ncclCommWatchdog at /pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:1902 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x98 (0x7189217775e8 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #1: <unknown function> + 0xcc7a4e (0x7185754c7a4e in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #2: <unknown function> + 0x9165ed (0x7185751165ed in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #3: <unknown function> + 0xdc253 (0x718c40cdc253 in /lib/x86_64-linux-gnu/libstdc++.so.6) frame #4: <unknown function> + 0x94ac3 (0x718c41e94ac3 in /lib/x86_64-linux-gnu/libc.so.6) frame #5: <unknown function> + 0x1268c0 (0x718c41f268c0 in /lib/x86_64-linux-gnu/libc.so.6) Error executing job with overrides: [] [rank1]:[E1113 13:57:32.346752417 ProcessGroupNCCL.cpp:1896] [PG ID 0 PG GUID 0(default_pg) Rank 1] Process group watchdog thread terminated with exception: CUDA error: an illegal memory access was encountered Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. Exception raised from c10_cuda_check_implementation at /pytorch/c10/cuda/CUDAException.cpp:43 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x98 (0x7e3be53c75e8 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0xe0 (0x7e3be535c4a2 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #2: c10::cuda::c10_cuda_check_implementation(int, char const*, char const*, int, bool) + 0x3c2 (0x7e3be54a5422 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10_cuda.so) frame #3: c10d::ProcessGroupNCCL::WorkNCCL::finishedGPUExecutionInternal() const + 0x56 (0x7e38364e5456 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #4: c10d::ProcessGroupNCCL::WorkNCCL::isCompleted() + 0x70 (0x7e38364f56f0 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #5: c10d::ProcessGroupNCCL::watchdogHandler() + 0x782 (0x7e38364f7282 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #6: c10d::ProcessGroupNCCL::ncclCommWatchdog() + 0x14d (0x7e38364f8e8d in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #7: <unknown function> + 0xdc253 (0x7e3f022dc253 in /lib/x86_64-linux-gnu/libstdc++.so.6) frame #8: <unknown function> + 0x94ac3 (0x7e3f03494ac3 in /lib/x86_64-linux-gnu/libc.so.6) frame #9: <unknown function> + 0x1268c0 (0x7e3f035268c0 in /lib/x86_64-linux-gnu/libc.so.6) terminate called after throwing an instance of 'c10::DistBackendError' what(): [PG ID 0 PG GUID 0(default_pg) Rank 1] Process group watchdog thread terminated with exception: CUDA error: an illegal memory access was encountered Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. Exception raised from c10_cuda_check_implementation at /pytorch/c10/cuda/CUDAException.cpp:43 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x98 (0x7e3be53c75e8 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0xe0 (0x7e3be535c4a2 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #2: c10::cuda::c10_cuda_check_implementation(int, char const*, char const*, int, bool) + 0x3c2 (0x7e3be54a5422 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10_cuda.so) frame #3: c10d::ProcessGroupNCCL::WorkNCCL::finishedGPUExecutionInternal() const + 0x56 (0x7e38364e5456 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #4: c10d::ProcessGroupNCCL::WorkNCCL::isCompleted() + 0x70 (0x7e38364f56f0 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #5: c10d::ProcessGroupNCCL::watchdogHandler() + 0x782 (0x7e38364f7282 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #6: c10d::ProcessGroupNCCL::ncclCommWatchdog() + 0x14d (0x7e38364f8e8d in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #7: <unknown function> + 0xdc253 (0x7e3f022dc253 in /lib/x86_64-linux-gnu/libstdc++.so.6) frame #8: <unknown function> + 0x94ac3 (0x7e3f03494ac3 in /lib/x86_64-linux-gnu/libc.so.6) frame #9: <unknown function> + 0x1268c0 (0x7e3f035268c0 in /lib/x86_64-linux-gnu/libc.so.6) Exception raised from ncclCommWatchdog at /pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:1902 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x98 (0x7e3be53c75e8 in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libc10.so) frame #1: <unknown function> + 0xcc7a4e (0x7e38364c7a4e in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #2: <unknown function> + 0x9165ed (0x7e38361165ed in /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/lib/libtorch_cuda.so) frame #3: <unknown function> + 0xdc253 (0x7e3f022dc253 in /lib/x86_64-linux-gnu/libstdc++.so.6) frame #4: <unknown function> + 0x94ac3 (0x7e3f03494ac3 in /lib/x86_64-linux-gnu/libc.so.6) frame #5: <unknown function> + 0x1268c0 (0x7e3f035268c0 in /lib/x86_64-linux-gnu/libc.so.6) W1113 13:57:33.581000 2055138 site-packages/torch/distributed/elastic/multiprocessing/api.py:900] Sending process 2055222 closing signal SIGTERM E1113 13:57:33.846000 2055138 site-packages/torch/distributed/elastic/multiprocessing/api.py:874] failed (exitcode: -6) local_rank: 0 (pid: 2055221) of binary: /mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/bin/python Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/distributed/run.py", line 896, in <module> main() File "/mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 355, in wrapper return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/distributed/run.py", line 892, in main run(args) File "/mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/distributed/run.py", line 883, in run elastic_launch( File "/mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 139, in __call__ return launch_agent(self._config, self._entrypoint, list(args)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/ssd2/homes/lzj/miniconda3/envs/env_isaaclab/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 270, in launch_agent raise ChildFailedError( torch.distributed.elastic.multiprocessing.errors.ChildFailedError: ======================================================== scripts/reinforcement_learning/rsl_rl/train.py FAILED -------------------------------------------------------- Failures: <NO_OTHER_FAILURES> -------------------------------------------------------- Root Cause (first observed failure): [0]: time : 2025-11-13_13:57:33 host : szdx-G7666-X6 rank : 0 (local_rank: 0) exitcode : -6 (pid: 2055221) error_file: <N/A> traceback : Signal 6 (SIGABRT) received by PID 2055221 ======================================================
System Info
Describe the characteristic of your environment:
- Commit: c32db68
- Isaac Sim Version: 5.1.0
- OS:
Ubuntu 22.04.5 LTS (Jammy Jellyfish)(Kernel:6.8.0-86-generic) - GPU:
RTX 5090 - CUDA: 12.8.93
- GPU Driver:
580.82.09
Additional context
The problem seems specific to the Isaac-Velocity-Rough-G1-v0 task environment when used in distributed mode. The fact that Isaac-Reach-Franka-v0 works suggests the base environment, PyTorch installation, and NCCL setup are likely correct, but some tensor operation or memory access specific to the G1 task is causing an illegal memory access on the GPU.
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
- The command
python -m torch.distributed.run --nnodes=1 --nproc_per_node=2 scripts/reinforcement_learning/rsl_rl/train.py --task=Isaac-Velocity-Rough-G1-v0 --headless --distributedruns successfully without theCUDA error: an illegal memory access was encountered.
Activity
[-][Bug Report] Bug title[/-][+][Bug Report] NCCL "illegal memory access" error during distributed training for Isaac-Velocity-Rough-G1-v0[/+]RandomOakForest commentedon Nov 17, 2025
Thank you for posting this. The team will review it.
sesem738 commentedon Feb 19, 2026
Is there any update on this issue? I am experiencing the same problem for my environment as well.
sesem738 commentedon Feb 19, 2026
So, it seems to be an issue with 5090s. I tried it with a workstation with RTX 8000s and they work
dr-blitz commentedon Feb 24, 2026
I ran into this exact same issue (crashing at
ProcessGroupNCCL.cppor the first forward pass withCUDA error: an illegal memory access) when training with depth cameras via DDP.My setup: AMD Ryzen 9800X3D, 2x RTX 5080s, Isaac Sim 5.1.0, Ubuntu 24.04.
After debugging, I found two simultaneous hardware/driver conflicts causing this:
cuda:1) accidentally initializes its Vulkan render context on physical GPU 0. Reading that depth tensor across the PCIe bus triggers the illegal access./dev/shm). AMD's IOMMU isolates PCIe devices for security and blocks this transfer, which crashes the NCCL watchdog.The Workaround
You don't need to modify the source code or change
maxGpuCount. You just need to force device ordering and restrict NCCL to local sockets to bypass the IOMMU block. Export these before launching:(Alternatively, if you have root access, adding
amd_iommu=offto your/etc/default/grubconfig also prevents the NCCL crash without needing theNCCL_SHM_DISABLEflag).Hope this helps!!!!
insung8150 commentedon Mar 26, 2026
Workaround: 5-GPU G1 Distributed Training with NCCL Environment Variables
I ran into the exact same issue and found a minimal set of 3 NCCL environment variables that enables 5-GPU distributed training for G1 humanoid (23 DOF) on Isaac Lab 2.3.2 + Isaac Sim 5.1.0.
Setup
Minimal Required Environment Variables
Why These 3 Variables
I systematically tested each variable by removing one at a time from a working configuration:
NCCL_SHM_DISABLE=1NCCL_IB_DISABLE=1NCCL_ALGO=RingNCCL_P2P_DISABLE=1NCCL_PROTO=SimpleNCCL_NET=Sockettorch.cuda.synchronize()before broadcastThe key discovery is
NCCL_ALGO=Ring— without it, the default Tree algorithm creates complex GPU synchronization patterns that conflict with Omniverse's CUDA contexts. Ring topology uses a simple circular pattern (GPU0→1→2→3→4→0) that avoids these conflicts.Successful Commands
GPU utilization: 80-90% per GPU with
num_envs=32768. Memory usage: ~23% per GPU.Additional Notes
CUDA_VISIBLE_DEVICESmust NOT be set (conflicts with Omniverse GPU enumeration)NCCL_ALGO=Ring, which is critical for 3+ GPUsdocs: add NCCL troubleshooting notes for multi-GPU training (#5195)
docs: add NCCL troubleshooting notes for multi-GPU training (isaac-si…
docs: add NCCL troubleshooting notes for multi-GPU training (#5212)
docs: add NCCL troubleshooting notes for multi-GPU training (isaac-si…
docs: add NCCL troubleshooting notes for multi-GPU training (isaac-si…
Document additional NCCL troubleshooting options (#7344)
Document additional NCCL troubleshooting options (#7344)
StafaH commentedon Sep 20, 2026
Thanks @LZJ910 for reporting the
ProcessGroupNCCLillegal-memory-access failure during multi-GPU training.This failure mode and its system-specific NCCL workarounds are now covered in the multi-GPU troubleshooting guide. The guide covers
NCCL_SHM_DISABLE=1, CUDA/renderer device ordering, P2P and InfiniBand fallbacks,NCCL_ALGO=Ring, and a standalone NCCL probe for separating system-topology failures from Isaac Lab behavior. The guidance was added in #5212 and expanded in #7344.We're closing this as documented. Please reopen if it still reproduces on a current release after following the guide—particularly if the standalone NCCL probe succeeds but the G1 training command still fails.
🤖 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!