# Python segment fault on trying to launch Python example in container mode

**URL:** <https://forums.developer.nvidia.com/t/python-segment-fault-on-trying-to-launch-python-example-in-container-mode/293421>\
**Category:** Isaac Sim\
**Tags:** docker, python\
**Created:** [May 20, 2024, 6:16am UTC](https://forums.developer.nvidia.com/t/python-segment-fault-on-trying-to-launch-python-example-in-container-mode/293421 "2024-05-20T06:16:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MARMOTatZJU](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/marmotatzju/32/313059_2.png) [@MARMOTatZJU](https://forums.developer.nvidia.com/u/MARMOTatZJU)\
**Post date:** [May 20, 2024, 6:16am UTC](https://forums.developer.nvidia.com/t/python-segment-fault-on-trying-to-launch-python-example-in-container-mode/293421/1 "2024-05-20T06:16:42Z")

</div>

Hi, I am new to Isaac Sim and I am following the official documentation to try to reproduce the result of official Python example.

I am running Linux Ubuntu 22.04. I have installed Streaming Client and I have pulled the `nvcr.io/nvidia/isaac-sim:2023.1.1` docker image.

My environment is able to launch Isaac Sim headless `./runheadless.native.sh -v `.

I instantiated a container by following the instruction in [Container Installation — Omniverse IsaacSim latest documentation](https://docs.omniverse.nvidia.com/isaacsim/latest/installation/install_container.html)

```bash
docker run --name isaac-sim --entrypoint bash -it --gpus all -e "ACCEPT_EULA=Y" --rm --network=host \
    -e "PRIVACY_CONSENT=Y" \
    -v ~/docker/isaac-sim/cache/kit:/isaac-sim/kit/cache:rw \
    -v ~/docker/isaac-sim/cache/ov:/root/.cache/ov:rw \
    -v ~/docker/isaac-sim/cache/pip:/root/.cache/pip:rw \
    -v ~/docker/isaac-sim/cache/glcache:/root/.cache/nvidia/GLCache:rw \
    -v ~/docker/isaac-sim/cache/computecache:/root/.nv/ComputeCache:rw \
    -v ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw \
    -v ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw \
    -v ~/docker/isaac-sim/documents:/root/Documents:rw \
    nvcr.io/nvidia/isaac-sim:2023.1.1

```

Then I tried a Python example by following the instruction from [1.2. Isaac Sim Workflows — Omniverse IsaacSim latest documentation](https://docs.omniverse.nvidia.com/isaacsim/latest/introductory_tutorials/tutorial_intro_workflows.html)

```bash
./python.sh standalone_examples/api/omni.isaac.franka/follow_target_with_rmpflow.py

```

I got a segment fault:

```plaintext
Starting kit application with the following args: ['/isaac-sim/exts/omni.isaac.kit/omni/isaac/kit/simulation_app.py', '/isaac-sim/apps/omni.isaac.sim.python.kit', '--/app/tokens/exe-path=/isaac-sim/kit', '--/persistent/app/viewport/displayOptions=3094', '--/rtx/materialDb/syncLoads=True', '--/rtx/hydra/materialSyncLoads=True', '--/omni.kit.plugin/syncUsdLoads=True', '--/app/renderer/resolution/width=1280', '--/app/renderer/resolution/height=720', '--/app/window/width=1440', '--/app/window/height=900', '--/renderer/multiGpu/enabled=True', '--/app/fastShutdown=True', '--ext-folder', '/isaac-sim/exts', '--ext-folder', '/isaac-sim/apps', '--/physics/cudaDevice=0', '--portable', '--allow-root']
Passing the following args to the base kit application: []
[Info] [carb] Logging to file: /isaac-sim/kit/logs/Kit/Isaac-Sim/2023.1/kit_20240520_060541.log
2024-05-20 06:05:41 [0ms] [Warning] [omni.kit.app.plugin] No crash reporter present, dumps uploading isn't available.
[0.065s] [ext: omni.kit.async_engine-0.0.0] startup
[1.101s] [ext: omni.activity.core-1.0.1] startup
[1.109s] [ext: omni.assets.plugins-0.0.0] startup
[1.115s] [ext: omni.stats-0.0.0] startup
[1.119s] [ext: omni.client-1.0.1] startup
[1.156s] [ext: omni.activity.profiler-1.0.2] startup
[1.160s] [ext: omni.gpu_foundation-0.0.0] startup
[1.214s] [ext: omni.rtx.shadercache.vulkan-1.0.0] startup
[1.217s] [ext: carb.windowing.plugins-1.0.0] startup
2024-05-20 06:05:42 [1,199ms] [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
2024-05-20 06:05:42 [1,199ms] [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.4]) (impl: carb.windowing-glfw.plugin)
[1.220s] [ext: omni.kit.renderer.init-0.0.0] startup
2024-05-20 06:05:42 [1,214ms] [Warning] [omni.platforminfo.plugin] failed to open the default display. Can't verify X Server version.
2024-05-20 06:05:42 [1,272ms] [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
2024-05-20 06:05:42 [1,272ms] [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.4]) (impl: carb.windowing-glfw.plugin)

|---------------------------------------------------------------------------------------------|
| Driver Version: 550.67 | Graphics API: Vulkan
|=============================================================================================|
| GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID |
| | | | | | Device-ID | UUID |
| | | | | | Bus-ID | |
|---------------------------------------------------------------------------------------------|
| 0 | NVIDIA GeForce RTX 4090 D | Yes: 0 | | 24564 MB | 10de | 0 |
| | | | | | 2685 | d666955a.. |
| | | | | | 1 | |
|=============================================================================================|
| OS: 22.04.3 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.3, Kernel: 6.5.0-35-generic
| Processor: Intel(R) Core(TM) i9-14900KF | Cores: 24 | Logical: 48
|---------------------------------------------------------------------------------------------|
| Total Memory (MB): 63980 | Free Memory: 58851
| Total Page/Swap (MB): 2047 | Free Page/Swap: 2047
|---------------------------------------------------------------------------------------------|
[1.740s] [ext: omni.kit.pipapi-0.0.0] startup
[1.743s] [ext: omni.kit.pip_archive-0.0.0] startup
[1.743s] [ext: omni.pip.compute-1.2.0] startup
[1.744s] [ext: omni.pip.cloud-1.0.1] startup
[1.756s] [ext: omni.isaac.core_archive-2.2.1] startup
[1.756s] [ext: omni.pip.torch-2_0_1-2.0.2] startup
[1.975s] [ext: omni.kit.telemetry-0.5.0] startup
[1.993s] [ext: omni.kit.loop-isaac-1.1.0] startup
[1.995s] [ext: omni.kit.test-0.0.0] startup
[1.998s] [ext: omni.isaac.ml_archive-1.1.3] startup
[1.998s] [ext: omni.mtlx-0.1.0] startup
[2.000s] [ext: omni.usd.config-1.0.3] startup
[2.008s] [ext: omni.gpucompute.plugins-0.0.0] startup
[2.010s] [ext: omni.usd.libs-1.0.0] startup
[2.155s] [ext: omni.appwindow-1.1.5] startup
2024-05-20 06:05:43 [2,135ms] [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
2024-05-20 06:05:43 [2,135ms] [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.4]) (impl: carb.windowing-glfw.plugin)
2024-05-20 06:05:43 [2,136ms] [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
2024-05-20 06:05:43 [2,136ms] [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.4]) (impl: carb.windowing-glfw.plugin)
2024-05-20 06:05:43 [2,136ms] [Error] [omni.appwindow.plugin] Failed to acquire IWindowing interface
[2.160s] [ext: omni.kit.renderer.core-0.0.0] startup
Fatal Python error: Segmentation fault

Current thread 0x000079474657db80 (most recent call first):
  File "/isaac-sim/exts/omni.isaac.kit/omni/isaac/kit/simulation_app.py", line 304 in _start_app
  File "/isaac-sim/exts/omni.isaac.kit/omni/isaac/kit/simulation_app.py", line 192 in __init__
  File "/isaac-sim/standalone_examples/api/omni.isaac.franka/follow_target_with_rmpflow.py", line 11 in <module>

Extension modules: psutil._psutil_linux, psutil._psutil_posix (total: 2)
./python.sh: line 41: 13 Segmentation fault (core dumped) $python_exe "$@" $args
There was an error running python

```

Could anyone help me with this issue? Many thanks in advance!

---

<div class="post-metadata">

**Author:** ![Ene.li](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Ene.li](https://forums.developer.nvidia.com/u/Ene.li)\
**Post date:** [December 9, 2024, 6:59am UTC](https://forums.developer.nvidia.com/t/python-segment-fault-on-trying-to-launch-python-example-in-container-mode/293421/2 "2024-12-09T06:59:46Z")

</div>

hello, in here:

```auto
from isaacsim import SimulationApp

simulation_app = SimulationApp({"headless": False})

from omni.isaac.core import World
from omni.isaac.franka.controllers.rmpflow_controller import RMPFlowController
from omni.isaac.franka.tasks import FollowTarget

```

({“headless”: False}) ——\> ({“headless”: True})
