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

Running gz sim -s or gz sim -g fails #6

Closed
1 task done
traversaro opened this issue Nov 8, 2022 · 4 comments
Closed
1 task done

Running gz sim -s or gz sim -g fails #6

traversaro opened this issue Nov 8, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@traversaro
Copy link
Contributor

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

(gz-sim7) traversaro@IITICUBLAP257:~$ gz sim -s
[Err] [ServerConfig.cc:992] Failed to copy installed config [/home/traversaro/mambaforge/envs/gz-sim7/share/gz/gz-sim7] to default config [/home/traversaro/.gz/sim/7/server.config].
^C(gz-sim7) traversaro@IITICUBLAP257:~$ gz sim -g
[Err] [Gui.cc:98] Failed to copy installed config [/home/traversaro/mambaforge/envs/gz-sim7/share/gz/gz-sim7/gui] to default config [/home/traversaro/.gz/sim/7/gui.config].
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
Stack trace (most recent call last):
#26   Object "/home/traversaro/mambaforge/envs/gz-sim7/bin/ruby", at 0x55fbcafda0e4, in _start
#25   Source "../csu/libc-start.c", line 392, in __libc_start_main_impl [0x7f0997239e3f]
#24   Source "../sysdeps/nptl/libc_start_call_main.h", line 58, in __libc_start_call_main [0x7f0997239d8f]
#23   Object "/home/traversaro/mambaforge/envs/gz-sim7/bin/ruby", at 0x55fbcafda0a0, in main
#22   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libruby.so.3.1.2", at 0x7f0997701db7, in ruby_run_node
#21   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libruby.so.3.1.2", at 0x7f09976fd770, in rb_ec_exec_node
#20   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libruby.so.3.1.2", at 0x7f099789c52e, in rb_vm_exec
#19   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libruby.so.3.1.2", at 0x7f0997897478, in vm_exec_core
#18   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libruby.so.3.1.2", at 0x7f099789470d, in vm_sendish
#17   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libruby.so.3.1.2", at 0x7f099788a196, in vm_call_cfunc_with_frame
#16   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/ruby/3.1.0/x86_64-linux/fiddle.so", at 0x7f099359b8f4, in function_call
#15   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libruby.so.3.1.2", at 0x7f099785d834, in rb_nogvl
#14   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/ruby/3.1.0/x86_64-linux/fiddle.so", at 0x7f099359b278, in nogvl_ffi_call
#13   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libffi.so.8.1.0", at 0x7f099358efe9, in ffi_call_int
#12   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libffi.so.8.1.0", at 0x7f099358fa49, in ffi_call_unix64
#11   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libgz-sim7-gz.so.7.0.0", at 0x7f099299699c, in runGui
#10   Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libgz-sim7-gui.so.7.0.0", at 0x7f09927a23ee, in gz::sim::v7::gui::runGui(int&, char**, char const*, char const*, int, char const*)
#9    Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libgz-sim7-gui.so.7.0.0", at 0x7f099279e4da, in gz::sim::v7::gui::createGui(int&, char**, char const*, char const*, bool, char const*, int, char const*)
#8    Object "/home/traversaro/mambaforge/envs/gz-sim7/lib/libgz-sim7-gui.so.7.0.0", at 0x7f0992799b52, in gz::sim::v7::gui::defaultGuiConfigFile[abi:cxx11](bool, char const*)
#7    Source "../../../../../libstdc++-v3/src/c++11/functexcept.cc", line 70, in __throw_logic_error [0x7f09933c508c]
#6    Source "../../../../libstdc++-v3/libsupc++/eh_throw.cc", line 98, in __cxa_throw [0x7f09933c8757]
#5    Source "../../../../libstdc++-v3/libsupc++/eh_terminate.cc", line 58, in terminate [0x7f09933c8565]
#4    Source "../../../../libstdc++-v3/libsupc++/eh_terminate.cc", line 48, in __terminate [0x7f09933c8513]
#3    Source "../../../../libstdc++-v3/libsupc++/vterminate.cc", line 95, in __verbose_terminate_handler [0x7f09933ca025]
#2    Source "./stdlib/abort.c", line 79, in abort [0x7f09972387f2]
#1    Source "../sysdeps/posix/raise.c", line 26, in raise [0x7f0997252475]
#0  | Source "./nptl/pthread_kill.c", line 89, in __pthread_kill_internal
    | Source "./nptl/pthread_kill.c", line 78, in __pthread_kill_implementation
      Source "./nptl/pthread_kill.c", line 44, in __pthread_kill [0x7f09972a6a7c]
Aborted (Signal sent by tkill() 1260 1000)
Aborted

Installed packages

(gz-sim7) traversaro@IITICUBLAP257:~$ conda list
# packages in environment at /home/traversaro/mambaforge/envs/gz-sim7:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
alsa-lib                  1.2.8                h166bdaf_0    conda-forge
aom                       3.5.0                h27087fc_0    conda-forge
assimp                    5.2.5                hf40c2ba_0    conda-forge
attr                      2.5.1                h166bdaf_1    conda-forge
blosc                     1.21.1               h83bc5f7_3    conda-forge
boost-cpp                 1.78.0               h75c5d50_1    conda-forge
bullet-cpp                3.21                 h8b32b4d_4    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
c-ares                    1.18.1               h7f98852_0    conda-forge
ca-certificates           2022.9.24            ha878542_0    conda-forge
cairo                     1.16.0            ha61ee94_1014    conda-forge
cfitsio                   4.1.0                hd9d235c_0    conda-forge
cli11                     2.3.1                h27087fc_0    conda-forge
console_bridge            1.0.2                h924138e_1    conda-forge
cppzmq                    4.8.1                hf7cf922_0    conda-forge
curl                      7.86.0               h7bff187_1    conda-forge
dartsim                   6.12.2               h0a4c592_3    conda-forge
dbus                      1.13.6               h5008d03_3    conda-forge
eigen                     3.4.0                h4bd325d_0    conda-forge
elfutils                  0.188                hbb17bd0_0    conda-forge
expat                     2.5.0                h27087fc_0    conda-forge
fcl                       0.7.0                hdebe893_2    conda-forge
ffmpeg                    5.1.2           gpl_hc51e5dc_103    conda-forge
fftw                      3.3.10          nompi_hf0379b8_105    conda-forge
flann                     1.9.1             he05ef13_1011    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.14.1               hc2a2eb6_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freeimage                 3.18.0              h530e30e_10    conda-forge
freetype                  2.12.1               hca18f0e_0    conda-forge
freexl                    1.0.6                h166bdaf_1    conda-forge
gdbm                      1.18                 h0a1914f_2    conda-forge
geos                      3.11.0               h27087fc_0    conda-forge
geotiff                   1.7.1                ha76d385_4    conda-forge
gettext                   0.21.1               h27087fc_0    conda-forge
giflib                    5.2.1                h36c2ea0_2    conda-forge
glib                      2.74.1               h6239696_1    conda-forge
glib-tools                2.74.1               h6239696_1    conda-forge
gmp                       6.2.1                h58526e2_0    conda-forge
gnutls                    3.7.8                hf3e180e_0    conda-forge
gst-plugins-base          1.21.1               h3e40eee_1    conda-forge
gstreamer                 1.21.1               hd4edc92_1    conda-forge
gts                       0.7.6                h64030ff_2    conda-forge
gz-sim7                   7.0.0                ha770c72_4    conda-forge
gz-sim7-python            7.0.0           py311hc6c49d4_4    conda-forge
hdf4                      4.2.15               h9772cbc_5    conda-forge
hdf5                      1.12.2          nompi_h2386368_100    conda-forge
icu                       70.1                 h27087fc_0    conda-forge
imath                     3.1.6                h6239696_0    conda-forge
jack                      1.9.21               he978b8e_1    conda-forge
jpeg                      9e                   h166bdaf_2    conda-forge
json-c                    0.16                 hc379101_0    conda-forge
jsoncpp                   1.9.5                h4bd325d_1    conda-forge
jxrlib                    1.1                  h7f98852_2    conda-forge
kealib                    1.4.15               ha7026e8_1    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.19.3               h3790be6_0    conda-forge
lame                      3.100             h166bdaf_1003    conda-forge
lcms2                     2.12                 hddcbb42_0    conda-forge
ld_impl_linux-64          2.39                 hc81fddc_0    conda-forge
lerc                      4.0.0                h27087fc_0    conda-forge
libarchive                3.5.2                hb890918_3    conda-forge
libblas                   3.9.0           16_linux64_openblas    conda-forge
libcap                    2.66                 ha37c62d_0    conda-forge
libcblas                  3.9.0           16_linux64_openblas    conda-forge
libccd-double             2.1                  h27087fc_3    conda-forge
libclang                  15.0.4          default_h2e3cab8_0    conda-forge
libclang13                15.0.4          default_h3a83d3e_0    conda-forge
libcups                   2.3.3                h3e49a29_2    conda-forge
libcurl                   7.86.0               h7bff187_1    conda-forge
libdap4                   3.20.6               hd7c4107_2    conda-forge
libdb                     6.2.32               h9c3ff4c_0    conda-forge
libdeflate                1.14                 h166bdaf_0    conda-forge
libdrm                    2.4.114              h166bdaf_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libevent                  2.1.10               h9b69904_4    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libflac                   1.4.2                h27087fc_0    conda-forge
libgcc-ng                 12.2.0              h65d4601_19    conda-forge
libgdal                   3.5.3                hf663712_0    conda-forge
libgfortran-ng            12.2.0              h69a702a_19    conda-forge
libgfortran5              12.2.0              h337968e_19    conda-forge
libglib                   2.74.1               h606061b_1    conda-forge
libglu                    9.0.0             he1b5a44_1001    conda-forge
libgomp                   12.2.0              h65d4601_19    conda-forge
libgz-cmake3              3.0.0                h27087fc_1    conda-forge
libgz-common5             5.0.0                h2393d9e_3    conda-forge
libgz-fuel-tools8         8.0.0                h08d22d4_1    conda-forge
libgz-gui7                7.0.0                hcb1a778_2    conda-forge
libgz-math7               7.0.2                h27087fc_3    conda-forge
libgz-msgs9               9.0.0                h07fcb4f_1    conda-forge
libgz-physics6            6.0.0                h5e73547_2    conda-forge
libgz-plugin2             2.0.0                h27087fc_0    conda-forge
libgz-rendering7          7.0.0                hbfd296a_0    conda-forge
libgz-sensors7            7.0.0                h425f889_1    conda-forge
libgz-sim7                7.0.0                h8739608_4    conda-forge
libgz-tools2              2.0.0                he20d936_2    conda-forge
libgz-transport12         12.0.0               h034a4ee_1    conda-forge
libgz-utils2              2.0.0                h27087fc_1    conda-forge
libiconv                  1.17                 h166bdaf_0    conda-forge
libidn2                   2.3.4                h166bdaf_0    conda-forge
libkml                    1.3.0             h37653c0_1015    conda-forge
liblapack                 3.9.0           16_linux64_openblas    conda-forge
libllvm15                 15.0.4               h63197d8_0    conda-forge
libmicrohttpd             0.9.75               h2603550_1    conda-forge
libnetcdf                 4.8.1           nompi_h261ec11_106    conda-forge
libnghttp2                1.47.0               hdcd2b5c_1    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libode                    0.16.2              ha362b79_11    conda-forge
libogg                    1.3.4                h7f98852_1    conda-forge
libopenblas               0.3.21          pthreads_h78a6416_3    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libpciaccess              0.17                 h166bdaf_0    conda-forge
libpng                    1.6.38               h753d276_0    conda-forge
libpq                     14.5                 hd77ab85_1    conda-forge
libprotobuf               3.21.9               h6239696_0    conda-forge
libraw                    0.20.2               h10796ff_1    conda-forge
librttopo                 1.1.0               hf730bdb_11    conda-forge
libsdformat13             13.2.0               h6c458b0_2    conda-forge
libsndfile                1.1.0                h27087fc_0    conda-forge
libsodium                 1.0.18               h36c2ea0_1    conda-forge
libspatialite             5.0.1               hfbd986c_21    conda-forge
libsqlite                 3.39.4               h753d276_0    conda-forge
libssh2                   1.10.0               haa6b8db_3    conda-forge
libstdcxx-ng              12.2.0              h46fd767_19    conda-forge
libtasn1                  4.19.0               h166bdaf_0    conda-forge
libtiff                   4.4.0                h55922b4_4    conda-forge
libtool                   2.4.6             h9c3ff4c_1008    conda-forge
libudev1                  252                  h166bdaf_0    conda-forge
libunistring              0.9.10               h7f98852_0    conda-forge
libuuid                   2.32.1            h7f98852_1000    conda-forge
libva                     2.16.0               h166bdaf_0    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libvpx                    1.11.0               h9c3ff4c_3    conda-forge
libwebp-base              1.2.4                h166bdaf_0    conda-forge
libxcb                    1.13              h7f98852_1004    conda-forge
libxkbcommon              1.0.3                he3ba5ed_0    conda-forge
libxml2                   2.10.3               h7463322_0    conda-forge
libxslt                   1.1.37               h873f0b0_0    conda-forge
libzip                    1.9.2                hc869a4a_1    conda-forge
libzlib                   1.2.13               h166bdaf_4    conda-forge
lxml                      4.9.1           py311hc4dbab1_1    conda-forge
lz4-c                     1.9.3                h9c3ff4c_1    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
mpg123                    1.30.2               h27087fc_1    conda-forge
mysql-common              8.0.31               haf5c9bc_0    conda-forge
mysql-libs                8.0.31               h28c427c_0    conda-forge
ncurses                   6.3                  h27087fc_1    conda-forge
nettle                    3.8.1                hc379101_1    conda-forge
nspr                      4.32                 h9c3ff4c_1    conda-forge
nss                       3.78                 h2350873_0    conda-forge
numpy                     1.23.4          py311h7d28db0_1    conda-forge
octomap                   1.9.7                h4bd325d_0    conda-forge
ogre                      1.12.13              h4f9a257_3    conda-forge
ogre-next                 2.3.1                hd9d6a18_3    conda-forge
openexr                   3.1.5                he0ac6c6_0    conda-forge
openh264                  2.3.1                h27087fc_1    conda-forge
openjpeg                  2.5.0                h7d73246_1    conda-forge
openssl                   1.1.1s               h166bdaf_0    conda-forge
p11-kit                   0.24.1               hc5aa10d_0    conda-forge
pcre                      8.45                 h9c3ff4c_0    conda-forge
pcre2                     10.40                hc3806b6_0    conda-forge
pip                       22.3.1             pyhd8ed1ab_0    conda-forge
pixman                    0.40.0               h36c2ea0_0    conda-forge
poppler                   22.10.0              h92391eb_0    conda-forge
poppler-data              0.4.11               hd8ed1ab_0    conda-forge
postgresql                14.5                 hdeef612_1    conda-forge
proj                      9.1.0                h93bde94_0    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
pugixml                   1.11.4               h9c3ff4c_0    conda-forge
pulseaudio                14.0                h0d2025b_11    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
python                    3.11.0          h582c2e5_0_cpython    conda-forge
python_abi                3.11                    2_cp311    conda-forge
qt-main                   5.15.6               hd477bba_1    conda-forge
readline                  8.1.2                h0f457ee_0    conda-forge
ruby                      3.1.2                h22ca3a2_0    conda-forge
sdl2                      2.0.22               h55ee7ae_2    conda-forge
setuptools                65.5.1             pyhd8ed1ab_0    conda-forge
snappy                    1.1.9                hbd366e4_2    conda-forge
sqlite                    3.39.4               h4ff8645_0    conda-forge
svt-av1                   1.3.0                h27087fc_0    conda-forge
swig                      4.1.0                h5d7ef5f_4    conda-forge
tiledb                    2.11.3               h1e4a385_1    conda-forge
tinyxml                   2.6.2                h4bd325d_2    conda-forge
tinyxml2                  9.0.0                h9c3ff4c_2    conda-forge
tk                        8.6.12               h27826a3_0    conda-forge
tzcode                    2022f                h166bdaf_0    conda-forge
tzdata                    2022f                h191b570_0    conda-forge
urdfdom                   3.1.0                h068d047_1    conda-forge
urdfdom_headers           1.1.0                h924138e_0    conda-forge
wheel                     0.38.2             pyhd8ed1ab_0    conda-forge
x264                      1!164.3095           h166bdaf_2    conda-forge
x265                      3.5                  h924138e_3    conda-forge
xcb-util                  0.4.0                h166bdaf_0    conda-forge
xcb-util-image            0.4.0                h166bdaf_0    conda-forge
xcb-util-keysyms          0.4.0                h166bdaf_0    conda-forge
xcb-util-renderutil       0.3.9                h166bdaf_0    conda-forge
xcb-util-wm               0.4.1                h166bdaf_0    conda-forge
xerces-c                  3.2.4                h55805fa_1    conda-forge
xorg-fixesproto           5.0               h7f98852_1002    conda-forge
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libice               1.0.10               h7f98852_0    conda-forge
xorg-libsm                1.2.3             hd9c2040_1000    conda-forge
xorg-libx11               1.7.2                h7f98852_0    conda-forge
xorg-libxau               1.0.9                h7f98852_0    conda-forge
xorg-libxaw               1.0.14               h7f98852_1    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xorg-libxext              1.3.4                h7f98852_1    conda-forge
xorg-libxfixes            5.0.3             h7f98852_1004    conda-forge
xorg-libxmu               1.1.3                h7f98852_0    conda-forge
xorg-libxpm               3.5.13               h7f98852_0    conda-forge
xorg-libxrandr            1.5.2                h7f98852_1    conda-forge
xorg-libxrender           0.9.10            h7f98852_1003    conda-forge
xorg-libxt                1.2.1                h7f98852_2    conda-forge
xorg-randrproto           1.5.0             h7f98852_1001    conda-forge
xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
xorg-xextproto            7.3.0             h7f98852_1002    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
zeromq                    4.3.4                h9c3ff4c_1    conda-forge
zlib                      1.2.13               h166bdaf_4    conda-forge
zstd                      1.5.2                h6239696_4    conda-forge
zziplib                   0.13.69              h27826a3_1    conda-forge

Environment info

(gz-sim7) traversaro@IITICUBLAP257:~$ conda info

     active environment : gz-sim7
    active env location : /home/traversaro/mambaforge/envs/gz-sim7
            shell level : 1
       user config file : /home/traversaro/.condarc
 populated config files : /home/traversaro/mambaforge/.condarc
                          /home/traversaro/.condarc
          conda version : 4.12.0
    conda-build version : not installed
         python version : 3.10.6.final.0
       virtual packages : __linux=5.15.68.1=0
                          __glibc=2.35=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/traversaro/mambaforge  (writable)
      conda av data dir : /home/traversaro/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/traversaro/mambaforge/pkgs
                          /home/traversaro/.conda/pkgs
       envs directories : /home/traversaro/mambaforge/envs
                          /home/traversaro/.conda/envs
               platform : linux-64
             user-agent : conda/4.12.0 requests/2.28.1 CPython/3.10.6 Linux/5.15.68.1-microsoft-standard-WSL2 ubuntu/22.04.1 glibc/2.35
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
@traversaro traversaro added the bug Something isn't working label Nov 8, 2022
@traversaro
Copy link
Contributor Author

See gazebosim/gz-sim#168 (comment) for a related issue.

@traversaro
Copy link
Contributor Author

traversaro commented Feb 5, 2023

I forgot to update the issue. Basically, the problem is:

[Err] [Gui.cc:98] Failed to copy installed config [/home/traversaro/mambaforge/envs/gz-sim7/share/gz/gz-sim7/gui] to default config [/home/traversaro/.gz/sim/7/gui.config].

The bug is in https://github.com/gazebosim/gz-sim/blob/b7a08cd70147f6713f2a90a57000781864b7414e/src/gui/Gui.cc#L95, basically there is an error in joining the two strings /home/traversaro/mambaforge/envs/gz-sim7/share/gz/gz-sim7/gui (i.e. GZ_SIM_GUI_CONFIG_PATH) and gui.config (i.e. defaultGuiConfigName). The issue is probably something similar to conda-forge/libignition-gazebo-feedstock#4 and fixed in conda-forge/libignition-common-feedstock#36 . Anyhow, I was kind of tired of fragile workarounds (that would not anyhow work on Windows), so I try to fix the underlying issues once and for all, this is ongoing work in gazebosim/gz-cmake#334 .

@traversaro
Copy link
Contributor Author

traversaro commented Jun 20, 2023

I just tested, this was fixed by #19 (i.e. gz-sim7=7.5.0=*_6) .

@Tobias-Fischer
Copy link
Contributor

Nice one

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