Robotics StackExchange | Archived questions

gzclient seg faults before gui appears with no error message

Hello there,

I am receiving a segmentation fault when I try to run gzclient:

$ gzclient --verbose

Gazebo multi-robot simulator, version 11.10.2
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://192.168.0.20:11345
[Msg] Publicized address: 192.168.0.20
Segmentation fault (core dumped)

$ cat ~/.gazebo/client-11345/default.log

Gazebo multi-robot simulator, version 11.10.2
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org


(1663121389 542961751) [Msg] Waiting for master.
(1663121389 552815735) [Msg] Connected to gazebo master @ http://192.168.0.20:11345
(1663121389 552850738) [Msg] Publicized address: 192.168.0.20
(1663121389 552987571) Loaded .ini file from: "/home/campbell/.gazebo/gui.ini"


$ tail ~/.gazebo/ogre.log 

19:09:49: Creating resources for group Schemes
19:09:49: All done
19:09:49: Parsing scripts for resource group SkyX
19:09:49: Parsing script SkyX.material
19:09:49: Finished parsing scripts for resource group SkyX
19:09:49: Creating resources for group SkyX
19:09:49: All done
19:09:49: Added resource location '/usr/share/gazebo-11/media/rtshaderlib/' of type 'FileSystem' to resource group 'General'
19:09:49: Creating resource group ShaderGeneratorResourceGroup
19:09:49: Added resource location '/tmp/gazebo-campbell-rtshaderlibcache/' of type 'FileSystem' to resource group 'ShaderGeneratorResourceGroup'

I have installed gazebo per these instructions: https://classic.gazebosim.org/tutorials?tut=ros2_installing&cat=connect_ros (replacing "foxy" with "humble") I first tried via apt with no issue until I ran gazebo. Then uninstalled and built from source and had the same issue.

$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

$ echo $ROS_DISTRO

humble

$ nvidia-smi

Tue Sep 13 19:20:26 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7     |
...

$ qtdiag

Qt 5.15.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.3.0) on "xcb" 
OS: Ubuntu 22.04.1 LTS [linux version 5.15.0-47-generic]

Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2
...
LibGL Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
Version: 4.6.0 NVIDIA 515.65.01
Shading language: 4.60 NVIDIA
Format: Version: 4.6 Profile: 2 Swap behavior: 0 Buffer size (RGB): 8,8,8 Depth buffer: 24
Profile: None (QOpenGLFunctions_4_6)

It must be some kind of issue with the GUI portion because I can run gzclient on my Mac and connect to gzserver running on my Ubuntu box. But I would love to be able to run both on my Ubuntu machine. Any ideas on how I can debug this further? Any help is greatly appreciated!

Asked by ck2050 on 2022-09-13 21:31:15 UTC

Comments

Answers