Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (Address not mapped to object [0x18]) #2719

Open
1 of 16 tasks
abdvswmdr opened this issue Jan 14, 2025 · 4 comments
Open
1 of 16 tasks

Segmentation fault (Address not mapped to object [0x18]) #2719

abdvswmdr opened this issue Jan 14, 2025 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@abdvswmdr
Copy link

abdvswmdr commented Jan 14, 2025

Environment

  • OS Version: Ubuntu 24.04
  • Source or binary build? Binary build (ROS2 Jazzy Jalisco)
  • If this is a GUI or sensor rendering bug, describe your GPU and rendering system. Otherwise delete this section.
    • Rendering plugin: [ogre2].
      • [x]GUI rendering error.
        libEGL warning: egl: failed to create dri2 screen
        libEGL warning: egl: failed to create dri2 screen
        libEGL warning: egl: failed to create dri2 screen
        [Err] [SystemPaths.cc:425] Unable to find file with URI [model://fyp_projectlab2/meshes/fyp_projectlab2.dae]
        [Err] [SystemPaths.cc:525] Could not resolve file [model://fyp_projectlab2/meshes/fyp_projectlab2.dae]
        [Err] [MeshManager.cc:211] Unable to find file[model://fyp_projectlab2/meshes/fyp_projectlab2.dae]
        Segmentation fault (Address not mapped to object [0x18])
        [GUI] [Err] [GuiFileHandler.cc:108] Service call for generating world SDFormat timed out
        Unknown error occurred when saving the world. Please check the console output of gz-sim
      • Running in EGL headless mode
    • Generally, mention all circumstances that might affect rendering capabilities:
      • running on a dual GPU machine (integrated GPU + discrete GPU)
      • running on a multi-GPU machine (it has multiple discrete GPUs)
      • running on real hardware
      • running in virtual machine
      • running in Docker/Singularity
      • running remotely (e.g. via SSH)
      • running in a cloud
      • using VirtualGL, XVFB, Xdummy, XVNC or other indirect rendering utilities
      • GPU is concurrently used for other tasks
        • desktop acceleration
        • video decoding (i.e. a playing Youtube video)
        • video encoding
        • CUDA/ROCm computations (Tensorflow, Torch, Caffe running)
        • multiple simulators running at the same time
      • other...
    • Rendering system info:
      • On Linux, provide the outputs of the following commands:
        LANG=C lspci -nn | grep VGA  # might require installing pciutils
        01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] [10de:25a2] (rev a1)
        06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [Radeon RX Vega 6 (Ryzen 4000/5000 Mobile Series)] [1002:1636] (rev c7)
        echo "$DISPLAY"
        :0
        
        LANG=C glxinfo -B | grep -i '\(direct rendering\|opengl\|profile\)'  
        direct rendering: Yes
              Preferred profile: core (0x1)
              Max core profile version: 4.6
              Max compat profile version: 4.6
              Max GLES1 profile version: 1.1
              Max GLES[23] profile version: 3.2
        OpenGL vendor string: AMD
        OpenGL renderer string: AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.0-51-generic)
        OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.9-0ubuntu0.3
        OpenGL core profile shading language version string: 4.60
        OpenGL core profile context flags: (none)
        OpenGL core profile profile mask: core profile
        OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.3
        OpenGL shading language version string: 4.60
        OpenGL context flags: (none)
        OpenGL profile mask: compatibility profile
        OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.0.9-0ubuntu0.3
        OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
        
        ps aux | grep Xorg
        abdvswm+    1981  2.2  0.7 26489608 189936 tty2  Sl+  02:18   1:38 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -novtswitch -verbose 3
        abdvswm+   12008  0.0  0.0  18136  2176 pts/1    S+   03:30   0:00 grep --color=auto Xorg
        
        sudo env LANG=C X -version  
        X.Org X Server 1.21.1.11
        X Protocol Version 11, Revision 0
        Current Operating System: Linux abdvswmdr-ASUS-TUF-Gaming-A15-FA506ICB-FA506ICB 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec  5 13:09:44 UTC 2024 x86_64
        Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-51-generic root=UUID=efca1208-5064-4070-9228-18834a8f5285 ro quiet splash vt.handoff=7
        xorg-server 2:21.1.12-1ubuntu1.1 (For technical support please see http://www.ubuntu.com/support) 
        Current version of pixman: 0.42.2
                        Before reporting problems, check http://wiki.x.org
                        to make sure that you have the latest version.

ogre2.log

Description

  • Expected behavior: Save world file as .sdf after having included the .dae file using Resource Spawner on gz sim. I exported my model (.dae) file path into Gazebo Sim and the model loads correctly with the right materials, appearance and everything.
  • Actual behavior: When I load the custom .dae into Gazebo Sim (version 8.7.0 Harmonic), I encounter segmentation faults and mesh loading errors.

Steps to reproduce

Output

image

@abdvswmdr abdvswmdr added the bug Something isn't working label Jan 14, 2025
@azeey
Copy link
Contributor

azeey commented Jan 14, 2025

Thanks for the issue, but this is a type of question that is best asked on https://robotics.stackexchange.com/. I encourage you to post your question there and if you find that there's a specific bug or feature request, come back and create a new issue here. In the mean time, I'll go ahead and close this.

I saw error messages saying the mesh files were not found and too quickly responded with the message above. Even if the mesh files are missing, Gazebo should not segfault, so I'm reopening this issue.

@azeey azeey closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Jan 14, 2025
@azeey azeey reopened this Jan 14, 2025
@github-project-automation github-project-automation bot moved this from Done to Inbox in Core development Jan 14, 2025
@azeey
Copy link
Contributor

azeey commented Jan 14, 2025

Can you please follow the issue template and fill out the relevant parts including the full logs in text format rather than an image?

@abdvswmdr
Copy link
Author

Can you please follow the issue template and fill out the relevant parts including the full logs in text format rather than an image?

Sure, I've filled the template you can view. Some things I left blank since I didn't know what to fill

@azeey
Copy link
Contributor

azeey commented Jan 14, 2025

Sorry, but there is not enough information here to diagnose the problem. Can you copy the full console output from Gazebo (not an image)? Can you share the .dae file that's causing the issue? Also, can you create a step-by-step instruction so that someone else can reproduce the issue?

@azeey azeey self-assigned this Jan 15, 2025
@azeey azeey removed this from Core development Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants