Skip to content

Segmentation fault issue when trying to launch rviz2 and source install/setup.bash, no such file or directory #274

@adlimited

Description

@adlimited

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Hi, I'm following this tutorial from Elephant Robotics:
https://docs.elephantrobotics.com/docs/gitbook-en/12-ApplicationBaseROS/12.2-ROS2/12.2.7-rivz%E4%BB%8B%E7%BB%8D%E5%8F%8A%E4%BD%BF%E7%94%A8/

Everything works fine until I run this command:
source install/setup.bash

Then I get the following error:
(ros_env) a1234@ ros2_ws % source install/setup.bash
/opt/miniconda3/envs/ros_env/local_setup.bash:.:11: no such file or directory: /Users/a1234/ros2_ws/local_setup.sh

I also encountered a segmentation fault issue when trying to launch rviz2 under the new environment (Python 3.11, macOS M1 Pro).

Here's the output:
[INFO] [1743158087.387806132] [rviz2]: Stereo is NOT SUPPORTED [INFO] [1743158087.387860549] [rviz2]: OpenGl version: 2.1 (GLSL 1.2) 2025-03-28 18:34:47.402 rviz2[97758:6619794] +[IMKClient subclass]: chose IMKClient_Modern 2025-03-28 18:34:47.402 rviz2[97758:6619794] +[IMKInputSession subclass]: chose IMKInputSession_Modern [INFO] [1743158087.426113255] [rviz2]: Stereo is NOT SUPPORTED zsh: segmentation fault rviz2

mamba list:
environment.txt

Installed packages

Please find the attached environment.txt file above.

Environment info

libmamba version : 2.0.8
          mamba version : 2.0.8
           curl version : libcurl/8.12.1 OpenSSL/3.4.1 (SecureTransport) zlib/1.2.13 zstd/1.5.6 libssh2/1.11.1 nghttp2/1.57.0
     libarchive version : libarchive 3.7.7 zlib/1.2.13 liblzma/5.4.6 bz2lib/1.0.8 liblz4/1.9.4 libzstd/1.5.2
       envs directories : /opt/miniconda3/envs
          package cache : /opt/miniconda3/pkgs
                          /Users/a1234/.mamba/pkgs
            environment : ros_env (active)
           env location : /opt/miniconda3/envs/ros_env
      user config files : /Users/a1234/.mambarc
 populated config files : /opt/miniconda3/envs/ros_env/.condarc
                          /Users/a1234/.condarc
       virtual packages : __unix=0=0
                          __osx=15.3.2=0
                          __archspec=1=arm64
               channels : https://conda.anaconda.org/robostack-humble/noarch
                          https://conda.anaconda.org/robostack-humble/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/conda-forge/osx-arm64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/main/osx-arm64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/r/osx-arm64
       base environment : /opt/miniconda3
               platform : osx-arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions