-
Notifications
You must be signed in to change notification settings - Fork 293
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
Problems using "gz sim" command in MacOS terminal app #1990
Comments
From the error message, it looks like you have both from-source and binary installations of gz-sim 7.4.0 and they appear to be conflicting. Specifically, I'm noticing the following files that appear to be in conflict:
For a quick test, you can try unlinking the binary package with You should also take care with which |
Thank you for your reply! Anyway, I had noticed the conflict and I proceeded uninstalling both gazebo and gazebo garden and reinstalling only gazebo garden, following the binary installation guide for MacOS on Gazebo Garden Docs website. After the installation, the command
The same type of issue appears when I use in a second terminal the command |
This is an issue with the If you have disabled SIP using Run the server: DYLD_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_LIBRARY_PATH gz sim -v4 -s -r shapes.sdf Run the GUI DYLD_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_LIBRARY_PATH gz sim -v4 -g Tested on macOS Ventura, Xcode and CommandLineTools 14.3.1. MacBookPro M1. |
Thank you for your reply! Following your instructions, the server works, while the GUI (that seems to open correctly initially) crashes, showing this messages on the terminal:
I think that it could be a problem with the heap memory but I have no idea to solve this issue. How can I solve it? |
@FedeCata - the GUI issue is #1987 - the work-around fix is to comment out the component inspector plug-in in |
@scpeters a fix for this that doesn't require disabling SIP is to update the brew formula for the various - cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath}"
+ cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath};/opt/homebrew/lib" I reinstalled Some discussion here: Homebrew/brew#13481 (comment) |
I have just comment out the component inspector plug-in in |
In my experience, the SIP issues could be worked around by using a non-system version of Ruby, as suggested in the following troubleshooting section: Though the actual path suggested is not generic enough; I've proposed a fix in gazebosim/docs#361 There may still be an issue with the |
In my testing I found using the brew version of ruby was not enough. The plugins failed to load on M1 machines because When using the brew version of ruby, without the RPATH change, I still needed to prefix the Adding |
@srmainwaring Disabling the SIP and prefixing the |
This is the Qt scene graph issue. You should not see this with a minimal <?xml version="1.0"?>
<window>
<width>1200</width>
<height>800</height>
<style
material_theme="Light"
material_primary="#9e9e9e"
material_accent="#03a9f4"
toolbar_color_light="#f3f3f3"
toolbar_text_color_light="#111111"
toolbar_color_dark="#414141"
toolbar_text_color_dark="#f3f3f3"
plugin_toolbar_color_light=""
plugin_toolbar_text_color_light=""
plugin_toolbar_color_dark=""
plugin_toolbar_text_color_dark=""
/>
<menus>
<drawer default="false">
</drawer>
</menus>
</window>
<plugin filename="MinimalScene" name="3D View">
<gz-gui>
<title>3D View</title>
<property type="bool" key="showTitleBar">false</property>
<property type="string" key="state">docked</property>
</gz-gui>
<engine>ogre2</engine>
<scene>scene</scene>
<ambient_light>0.4 0.4 0.4</ambient_light>
<background_color>0.8 0.8 0.8</background_color>
<camera_pose>-6 0 6 0 0.5 0</camera_pose>
</plugin>
<plugin filename="GzSceneManager" name="Scene Manager">
<gz-gui>
<property key="resizable" type="bool">false</property>
<property key="width" type="double">5</property>
<property key="height" type="double">5</property>
<property key="state" type="string">floating</property>
<property key="showTitleBar" type="bool">false</property>
</gz-gui>
</plugin>
<plugin filename="EntityTree" name="Entity tree">
<gz-gui>
<property type="bool" key="showTitleBar">true</property>
<property type="string" key="state">docked</property>
</gz-gui>
</plugin> As you add back gui plugins you'll eventually get a conflict between QtQuick Controls 1.4 and 2.2. The SpinBox causes issues, there may be others.
This is unrelated to the Qt heap corruption issue. On an intel mac brew installs to |
I made a bunch of RPATH fixes in homebrew formulae for harmonic, garden and fortress (though the gz-sim gui doesn't yet work on fortress on macOS) recently, and I think the Library errors should be fixed. See osrf/homebrew-simulation#2413 for an example |
After I followed the source installation guide for macOS Monterey step by step, I have a problem using the command "gz sim" in the terminal app. It appears the following error message:
I tried the suggested workarounds but the problem persists. How can I solve it?
The text was updated successfully, but these errors were encountered: