Skip to content

ROS2Subscriber: setting messageName segfaults (libisaacsim.ros2.nodes.plugin.so) when the ROS 2 bridge failed to load #892

Done

Description

@l-tschreiber-a11y

Description

When Isaac Sim is started without the ROS 2 environment (LD_LIBRARY_PATH not containing exts/isaacsim.ros2.core/humble/lib), the ROS 2 bridge fails to load. Isaac Sim logs the failure but keeps running. Setting inputs:messageName on a isaacsim.ros2.bridge.ROS2Subscriber node afterwards then crashes the whole process with a native SIGSEGV, instead of raising an error. I would expect a Python exception (or at least a logged error) here, not a crash that takes the process down.

Two smaller observations from the same log, stated as observed, without a claim about the cause:

  • The fallback message says it is "falling back to internal libraries", then tries to load <isaac-sim>/exts/isaacsim.ros2.core/humble/liblibrosidl_runtime_c.so. That file does not exist. The library is at <isaac-sim>/exts/isaacsim.ros2.core/humble/lib/librosidl_runtime_c.so.
  • The startup failure is logged, but the app keeps running with the bridge unloaded.

Minimal reproduction (headless, no ROS 2 environment sourced: ROS_DISTRO, AMENT_PREFIX_PATH, RMW_IMPLEMENTATION and LD_LIBRARY_PATH are unset in the launching shell):

# repro.py -- run with: ./python.sh repro.py
from isaacsim import SimulationApp
app = SimulationApp({"headless": True})

import omni.kit.app, omni.graph.core as og, omni.usd

em = omni.kit.app.get_app().get_extension_manager()
em.set_extension_enabled_immediate("isaacsim.ros2.bridge", True)

omni.usd.get_context().new_stage()
keys = og.Controller.Keys
graph, (sub,), _, _ = og.Controller.edit(
    {"graph_path": "/G", "evaluator_name": "execution"},
    {keys.CREATE_NODES: [("Sub", "isaacsim.ros2.bridge.ROS2Subscriber")]},
)
for name, value in [("topicName", "/x"), ("messagePackage", "sensor_msgs"),
                    ("messageSubfolder", "msg"), ("messageName", "JointState")]:
    print("SET", name, value, flush=True)
    og.Controller.attribute(f"inputs:{name}", sub).set(value)
print("OK done", flush=True)
app.close()

Result: the first three SET lines print, then SET messageName JointState prints, then the process dies with Segmentation fault (core dumped). OK done is never printed.

Relevant log lines before the crash:

Checking to see if RMW can be loaded:
failed to get symbol 'rmw_init_options_init' due to Environment variable 'AMENT_PREFIX_PATH' is not set or empty, ...
RMW was not loaded
[Error] [isaacsim.ros2.core.impl.extension] ROS2 Bridge startup failed
...
Could not load the dynamic library from librosidl_runtime_c.so. Error: librosidl_runtime_c.so: cannot open shared object file: No such file or directory
Loading librosidl_runtime_c.so from sourced ROS_DISTRO failed, falling back to internal libraries.
Could not load the dynamic library from <isaac-sim>/exts/isaacsim.ros2.core/humble/liblibrosidl_runtime_c.so. Error: ... cannot open shared object file: No such file or directory
[Warning] [isaacsim.ros2.core.plugin] Could not load ROS2 Bridge due to missing library dependencies, please make sure your sourced ROS2 workspace has the correct packages/libraries installed

Native backtrace (gdb, Isaac Sim 6.0.1, no symbols available for the plugin frames):

Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
#0  0x... in ?? () from .../exts/isaacsim.ros2.nodes/.../bin/libisaacsim.ros2.nodes.plugin.so
#1  0x... in ?? () from .../exts/isaacsim.ros2.nodes/.../bin/libisaacsim.ros2.nodes.plugin.so
#2  0x... in ?? () from .../omni.graph.core-3.1.2+.../bin/libomni.graph.core.plugin.so
#3  0x... in ?? () from .../omni.graph.core-3.1.2+.../bin/libomni.graph.core.plugin.so
#4  0x... in ?? () from .../omni/graph/core/_omni_graph_core.cpython-312-x86_64-linux-gnu.so
...

The Python-side stack written by Kit's crash reporter for this script ends at the .set(value) line of the loop (repro.py:15).

Workaround / comparison. Starting Isaac Sim with the environment from setup_ros_env.sh makes the same script finish (OK done) on 6.0.1:

ROS_DISTRO=humble RMW_IMPLEMENTATION=rmw_fastrtps_cpp \
LD_LIBRARY_PATH=<isaac-sim>/exts/isaacsim.ros2.core/humble/lib ./python.sh repro.py

With that environment, the full workflow I was running (a ROS2Subscriber/ROS2Publisher graph for a gripper, driven from an external rclpy process) also works. I only observed the crash in the state where the bridge failed to load, and I understand that Isaac Sim expects the environment to be set. The report is that, in that state, the result is a native crash rather than an error.

Also checked on Isaac Sim 6.2.0-rc.14: ./python.sh --no-ros-env repro.py logs ROS2 Bridge startup failed, the same liblibrosidl_runtime_c.so lookup path, and the Could not load ROS2 Bridge due to missing library dependencies warning, then ends in Segmentation fault, with OK done never printed. I did not take a gdb backtrace on 6.2.0. By default, 6.2.0's python.sh sources setup_ros_env.sh (not tested on 6.0.1, whose python.sh does not), which is why the plain run there did not crash.

I did not get 6.1.0 to run my script (it failed at startup for an unrelated reason), so I make no claim about it.

Isaac Sim version

6.0.1 (6.0.1-rc.7+release.42383.32955d8d.gl; isaacsim.ros2.bridge 5.1.2, isaacsim.ros2.core 1.9.4, isaacsim.ros2.nodes 1.18.13). Also reproduced with --no-ros-env on 6.2.0-rc.14+release.52805.02189a84.gl (isaacsim.ros2.bridge 5.1.4, isaacsim.ros2.core 1.11.2, isaacsim.ros2.nodes 1.22.9).

Operating System (OS)

Ubuntu 22.04.5 LTS

GPU Name

NVIDIA RTX 2000 Ada Generation Laptop GPU

GPU Driver and CUDA versions

Driver 595.99.02, CUDA 13.2

Activity

  1. PeterL-NV commented on Oct 19, 2026

    @PeterL-NV

    Hi, thanks for reporting the issue. I agree with you Isaac Sim should not crash when started without the ROS 2 environment.
    I have opened an internal ticket to track this.
    Internal ticket 6956681

  2. PeterL-NV commented on Dec 1, 2026

    @PeterL-NV

    Hi, this will be fixed in our next release.
    One note: We don’t support humble any more but Jazzy and Lyrical should no longer repro this issue.
    I am closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions