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

Gazebo-Garden Vanilla installation both from binary as well as source ,GUI is crashing with segmentation fault in MAcOS BigSur #1987

Open
3 of 19 tasks
bhagathkumar opened this issue May 9, 2023 · 26 comments
Assignees
Labels
bug Something isn't working

Comments

@bhagathkumar
Copy link

Environment

  • OS Version: MacOS Bigsur 11.7.1
  • Source or binary build?
    Tried both binary as well as source build as mentioned in the below links

https://gazebosim.org/docs/garden/install_osx
https://gazebosim.org/docs/garden/install_osx_src

  • If this is a GUI or sensor rendering bug, describe your GPU and rendering system. Otherwise delete this section.

    • Rendering plugin: [ogre | ogre2].
      • Sensor rendering error.
      • GUI rendering error.
    • EGL headless mode:
      • 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:
      ─ system_profiler SPDisplaysDataType ─╯
      Graphics/Displays:

    Intel UHD Graphics 630:

    Chipset Model: Intel UHD Graphics 630
    Type: GPU
    Bus: Built-In
    VRAM (Dynamic, Max): 1536 MB
    Vendor: Intel
    Device ID: 0x3e9b
    Revision ID: 0x0000
    Automatic Graphics Switching: Supported
    gMux Version: 5.0.0
    Metal Family: Supported, Metal GPUFamily macOS 2
    Displays:
      Color LCD:
        Display Type: Built-In Retina LCD
        Resolution: 3072 x 1920 Retina
        Framebuffer Depth: 24-Bit Color (ARGB8888)
        Main Display: Yes
        Mirror: Off
        Online: Yes
        Automatically Adjust Brightness: Yes
        Connection Type: Internal
    

    AMD Radeon Pro 5300M:

    Chipset Model: AMD Radeon Pro 5300M
    Type: GPU
    Bus: PCIe
    PCIe Lane Width: x8
    VRAM (Total): 4 GB
    Vendor: AMD (0x1002)
    Device ID: 0x7340
    Revision ID: 0x0043
    ROM Revision: 113-D3220E-190
    VBIOS Version: 113-D32207P1-020
    Option ROM Version: 113-D32207P1-020
    EFI Driver Version: 01.A1.190
    Automatic Graphics Switching: Supported
    gMux Version: 5.0.0
    Metal Family: Supported, Metal GPUFamily macOS 2
    
    • Please, attach the ogre.log or ogre2.log file from ~/.gz/rendering

╰─ cat auto_default.log ─╯
(2023-05-09T21:28:03.314201000) (2023-05-09T21:28:03.314235000) [Msg] Gazebo Sim GUI v7.4.0
(2023-05-09T21:28:03.428487000) (2023-05-09T21:28:03.428508000) [Dbg] [Application.cc:96] Initializing application.
(2023-05-09T21:28:03.428593000) (2023-05-09T21:28:03.428607000) [Dbg] [Application.cc:110] Qt using Metal graphics interface
(2023-05-09T21:28:03.432056000) (2023-05-09T21:28:03.432076000) [GUI] [Dbg] [Application.cc:607] Create main window
(2023-05-09T21:28:03.850167000) (2023-05-09T21:28:03.850185000) [GUI] [Wrn] [Application.cc:859] [QT] Populating font family aliases took 247 ms. Replace uses of missing font family "Roboto" with one that exists to avoid this cost.
(2023-05-09T21:28:05.714736000) (2023-05-09T21:28:05.714755000) [GUI] [Dbg] [PathManager.cc:67] Requesting resource paths through [/gazebo/resource_paths/get]
(2023-05-09T21:28:05.752924000) (2023-05-09T21:28:05.752946000) [GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
(2023-05-09T21:28:05.816313000) (2023-05-09T21:28:05.816334000) [GUI] [Dbg] [PathManager.cc:56] Received resource paths.
(2023-05-09T21:28:05.816607000) (2023-05-09T21:28:05.816622000) [GUI] [Dbg] [Gui.cc:398] Requesting GUI from [/world/shapes/gui/info]...
(2023-05-09T21:28:05.817101000) (2023-05-09T21:28:05.817119000) [GUI] [Dbg] [GuiRunner.cc:149] Requesting initial state from [/world/shapes/state]...
(2023-05-09T21:28:05.822374000) (2023-05-09T21:28:05.822393000) [GUI] [Msg] Loading config [/Users/bhagathkumar/.gz/sim/7/gui.config]
(2023-05-09T21:28:05.822467000) (2023-05-09T21:28:05.822482000) [GUI] [Dbg] [Application.cc:459] Loading plugin [MinimalScene]
(2023-05-09T21:28:05.830907000) (2023-05-09T21:28:05.830925000) [GUI] [Dbg] [MinimalScene.cc:657] Creating gz-rendering interface for OpenGL
(2023-05-09T21:28:05.830980000) (2023-05-09T21:28:05.830994000) [GUI] [Dbg] [MinimalScene.cc:657] Creating gz-rendering interface for OpenGL
(2023-05-09T21:28:05.831030000) (2023-05-09T21:28:05.831043000) [GUI] [Dbg] [MinimalScene.cc:813] Creating render thread interface for OpenGL
(2023-05-09T21:28:06.60688000) (2023-05-09T21:28:06.60708000) [GUI] [Msg] Added plugin [3D View] to main window
(2023-05-09T21:28:06.60986000) (2023-05-09T21:28:06.61001000) [GUI] [Msg] Loaded plugin [MinimalScene] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-gui-7/plugins/libMinimalScene.dylib]
(2023-05-09T21:28:06.61076000) (2023-05-09T21:28:06.61089000) [GUI] [Dbg] [Application.cc:459] Loading plugin [EntityContextMenuPlugin]
(2023-05-09T21:28:06.104936000) (2023-05-09T21:28:06.104959000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.105040000) (2023-05-09T21:28:06.105055000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:67:3: QML EntityContextMenu: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.123991000) (2023-05-09T21:28:06.124014000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.124103000) (2023-05-09T21:28:06.124117000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:67:3: QML EntityContextMenu: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.124752000) (2023-05-09T21:28:06.124770000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.124854000) (2023-05-09T21:28:06.124869000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:67:3: QML EntityContextMenu: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.132156000) (2023-05-09T21:28:06.132178000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.132254000) (2023-05-09T21:28:06.132269000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:67:3: QML EntityContextMenu: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.133056000) (2023-05-09T21:28:06.133075000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.133140000) (2023-05-09T21:28:06.133154000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:67:3: QML EntityContextMenu: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.133850000) (2023-05-09T21:28:06.133869000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.133932000) (2023-05-09T21:28:06.133947000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:67:3: QML EntityContextMenu: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.137176000) (2023-05-09T21:28:06.137196000) [GUI] [Msg] Added plugin [Entity Context Menu] to main window
(2023-05-09T21:28:06.137280000) (2023-05-09T21:28:06.137295000) [GUI] [Msg] Loaded plugin [EntityContextMenuPlugin] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libEntityContextMenuPlugin.dylib]
(2023-05-09T21:28:06.137378000) (2023-05-09T21:28:06.137392000) [GUI] [Dbg] [Application.cc:459] Loading plugin [GzSceneManager]
(2023-05-09T21:28:06.166384000) (2023-05-09T21:28:06.166407000) [GUI] [Msg] Added plugin [Scene Manager] to main window
(2023-05-09T21:28:06.166515000) (2023-05-09T21:28:06.166531000) [GUI] [Msg] Loaded plugin [GzSceneManager] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libGzSceneManager.dylib]
(2023-05-09T21:28:06.166610000) (2023-05-09T21:28:06.166624000) [GUI] [Dbg] [Application.cc:459] Loading plugin [InteractiveViewControl]
(2023-05-09T21:28:06.173542000) (2023-05-09T21:28:06.173562000) [GUI] [Msg] Camera view controller topic advertised on [/gui/camera/view_control]
(2023-05-09T21:28:06.173683000) (2023-05-09T21:28:06.173700000) [GUI] [Msg] Camera reference visual topic advertised on [/gui/camera/view_control/reference_visual]
(2023-05-09T21:28:06.173828000) (2023-05-09T21:28:06.173844000) [GUI] [Msg] Camera view control sensitivity advertised on [/gui/camera/view_control/sensitivity]
(2023-05-09T21:28:06.196583000) (2023-05-09T21:28:06.196606000) [GUI] [Msg] Added plugin [Interactive view control] to main window
(2023-05-09T21:28:06.196689000) (2023-05-09T21:28:06.196704000) [GUI] [Msg] Loaded plugin [InteractiveViewControl] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-gui-7/plugins/libInteractiveViewControl.dylib]
(2023-05-09T21:28:06.196782000) (2023-05-09T21:28:06.196796000) [GUI] [Dbg] [Application.cc:459] Loading plugin [CameraTracking]
(2023-05-09T21:28:06.229246000) (2023-05-09T21:28:06.229289000) [GUI] [Msg] Added plugin [Camera tracking] to main window
(2023-05-09T21:28:06.229378000) (2023-05-09T21:28:06.230032000) [GUI] [Msg] Loaded plugin [CameraTracking] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-gui-7/plugins/libCameraTracking.dylib]
(2023-05-09T21:28:06.230123000) (2023-05-09T21:28:06.230138000) [GUI] [Dbg] [Application.cc:459] Loading plugin [MarkerManager]
(2023-05-09T21:28:06.238181000) (2023-05-09T21:28:06.238208000) [GUI] [Msg] Listening to stats on [/world/shapes/stats]
(2023-05-09T21:28:06.259795000) (2023-05-09T21:28:06.259818000) [GUI] [Msg] Added plugin [Marker Manager] to main window
(2023-05-09T21:28:06.259900000) (2023-05-09T21:28:06.259915000) [GUI] [Msg] Loaded plugin [MarkerManager] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-gui-7/plugins/libMarkerManager.dylib]
(2023-05-09T21:28:06.259996000) (2023-05-09T21:28:06.260011000) [GUI] [Dbg] [Application.cc:459] Loading plugin [SelectEntities]
(2023-05-09T21:28:06.285295000) (2023-05-09T21:28:06.285319000) [GUI] [Msg] Added plugin [Select entities] to main window
(2023-05-09T21:28:06.285437000) (2023-05-09T21:28:06.285455000) [GUI] [Msg] Loaded plugin [SelectEntities] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libSelectEntities.dylib]
(2023-05-09T21:28:06.285532000) (2023-05-09T21:28:06.285546000) [GUI] [Dbg] [Application.cc:459] Loading plugin [Spawn]
(2023-05-09T21:28:06.312839000) (2023-05-09T21:28:06.312862000) [GUI] [Msg] Added plugin [Spawn] to main window
(2023-05-09T21:28:06.312942000) (2023-05-09T21:28:06.312957000) [GUI] [Msg] Loaded plugin [Spawn] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libSpawn.dylib]
(2023-05-09T21:28:06.313047000) (2023-05-09T21:28:06.313061000) [GUI] [Dbg] [Application.cc:459] Loading plugin [VisualizationCapabilities]
(2023-05-09T21:28:06.327744000) (2023-05-09T21:28:06.327790000) [GUI] [Msg] View as transparent service on [/gui/view/transparent]
(2023-05-09T21:28:06.327915000) (2023-05-09T21:28:06.327938000) [GUI] [Msg] View as wireframes service on [/gui/view/wireframes]
(2023-05-09T21:28:06.328028000) (2023-05-09T21:28:06.328042000) [GUI] [Msg] View center of mass service on [/gui/view/com]
(2023-05-09T21:28:06.328122000) (2023-05-09T21:28:06.328135000) [GUI] [Msg] View inertia service on [/gui/view/inertia]
(2023-05-09T21:28:06.328209000) (2023-05-09T21:28:06.328222000) [GUI] [Msg] View collisions service on [/gui/view/collisions]
(2023-05-09T21:28:06.328311000) (2023-05-09T21:28:06.328323000) [GUI] [Msg] View joints service on [/gui/view/joints]
(2023-05-09T21:28:06.328395000) (2023-05-09T21:28:06.328408000) [GUI] [Msg] View frames service on [/gui/view/frames]
(2023-05-09T21:28:06.351853000) (2023-05-09T21:28:06.351875000) [GUI] [Msg] Added plugin [Visualization capabilities] to main window
(2023-05-09T21:28:06.351954000) (2023-05-09T21:28:06.351968000) [GUI] [Msg] Loaded plugin [VisualizationCapabilities] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libVisualizationCapabilities.dylib]
(2023-05-09T21:28:06.352041000) (2023-05-09T21:28:06.352054000) [GUI] [Dbg] [Application.cc:459] Loading plugin [WorldControl]
(2023-05-09T21:28:06.365646000) (2023-05-09T21:28:06.365668000) [GUI] [Msg] Using world control service [/world/shapes/control]
(2023-05-09T21:28:06.366141000) (2023-05-09T21:28:06.366160000) [GUI] [Msg] Listening to stats on [/world/shapes/stats]
(2023-05-09T21:28:06.366226000) (2023-05-09T21:28:06.366240000) [GUI] [Dbg] [WorldControl.cc:250] Using an event to share WorldControl msgs with the server
(2023-05-09T21:28:06.387798000) (2023-05-09T21:28:06.387821000) [GUI] [Msg] Added plugin [World control] to main window
(2023-05-09T21:28:06.387905000) (2023-05-09T21:28:06.387920000) [GUI] [Msg] Loaded plugin [WorldControl] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-gui-7/plugins/libWorldControl.dylib]
(2023-05-09T21:28:06.387999000) (2023-05-09T21:28:06.388013000) [GUI] [Dbg] [Application.cc:459] Loading plugin [WorldStats]
(2023-05-09T21:28:06.396955000) (2023-05-09T21:28:06.396977000) [GUI] [Msg] Listening to stats on [/world/shapes/stats]
(2023-05-09T21:28:06.418700000) (2023-05-09T21:28:06.418724000) [GUI] [Msg] Added plugin [World stats] to main window
(2023-05-09T21:28:06.418804000) (2023-05-09T21:28:06.418819000) [GUI] [Msg] Loaded plugin [WorldStats] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-gui-7/plugins/libWorldStats.dylib]
(2023-05-09T21:28:06.418896000) (2023-05-09T21:28:06.418910000) [GUI] [Dbg] [Application.cc:459] Loading plugin [Shapes]
(2023-05-09T21:28:06.446441000) (2023-05-09T21:28:06.446463000) [GUI] [Msg] Added plugin [Shapes] to main window
(2023-05-09T21:28:06.446542000) (2023-05-09T21:28:06.446557000) [GUI] [Msg] Loaded plugin [Shapes] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libShapes.dylib]
(2023-05-09T21:28:06.446634000) (2023-05-09T21:28:06.446649000) [GUI] [Dbg] [Application.cc:459] Loading plugin [Lights]
(2023-05-09T21:28:06.472193000) (2023-05-09T21:28:06.472215000) [GUI] [Msg] Added plugin [Lights] to main window
(2023-05-09T21:28:06.472294000) (2023-05-09T21:28:06.472309000) [GUI] [Msg] Loaded plugin [Lights] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libLights.dylib]
(2023-05-09T21:28:06.472383000) (2023-05-09T21:28:06.472397000) [GUI] [Dbg] [Application.cc:459] Loading plugin [TransformControl]
(2023-05-09T21:28:06.524460000) (2023-05-09T21:28:06.524480000) [GUI] [Msg] Added plugin [Transform control] to main window
(2023-05-09T21:28:06.524549000) (2023-05-09T21:28:06.524562000) [GUI] [Msg] Loaded plugin [TransformControl] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libTransformControl.dylib]
(2023-05-09T21:28:06.524632000) (2023-05-09T21:28:06.524644000) [GUI] [Dbg] [Application.cc:459] Loading plugin [Screenshot]
(2023-05-09T21:28:06.562185000) (2023-05-09T21:28:06.562209000) [GUI] [Msg] Screenshot service on [/gui/screenshot]
(2023-05-09T21:28:06.584074000) (2023-05-09T21:28:06.584099000) [GUI] [Msg] Added plugin [Screenshot] to main window
(2023-05-09T21:28:06.584182000) (2023-05-09T21:28:06.584197000) [GUI] [Msg] Loaded plugin [Screenshot] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-gui-7/plugins/libScreenshot.dylib]
(2023-05-09T21:28:06.584277000) (2023-05-09T21:28:06.584292000) [GUI] [Dbg] [Application.cc:459] Loading plugin [CopyPaste]
(2023-05-09T21:28:06.612113000) (2023-05-09T21:28:06.612136000) [GUI] [Msg] Added plugin [Copy/Paste] to main window
(2023-05-09T21:28:06.612219000) (2023-05-09T21:28:06.612234000) [GUI] [Msg] Loaded plugin [CopyPaste] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libCopyPaste.dylib]
(2023-05-09T21:28:06.612316000) (2023-05-09T21:28:06.612331000) [GUI] [Dbg] [Application.cc:459] Loading plugin [ComponentInspector]
(2023-05-09T21:28:06.732059000) (2023-05-09T21:28:06.732083000) [GUI] [Msg] Added plugin [Component inspector] to main window
(2023-05-09T21:28:06.732175000) (2023-05-09T21:28:06.732190000) [GUI] [Msg] Loaded plugin [ComponentInspector] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libComponentInspector.dylib]
(2023-05-09T21:28:06.732267000) (2023-05-09T21:28:06.732281000) [GUI] [Dbg] [Application.cc:459] Loading plugin [EntityTree]
(2023-05-09T21:28:06.787233000) (2023-05-09T21:28:06.787255000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityTree/EntityTree.qml:148:7: QML ToolButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:06.809164000) (2023-05-09T21:28:06.809185000) [GUI] [Msg] Added plugin [Entity tree] to main window
(2023-05-09T21:28:06.809259000) (2023-05-09T21:28:06.809273000) [GUI] [Msg] Loaded plugin [EntityTree] from path [/Users/bhagathkumar/software/gz_garden/install/lib/gz-sim-7/plugins/gui/libEntityTree.dylib]
(2023-05-09T21:28:06.809345000) (2023-05-09T21:28:06.809359000) [GUI] [Dbg] [Application.cc:329] Loading window config
(2023-05-09T21:28:06.809456000) (2023-05-09T21:28:06.809470000) [GUI] [Msg] Using server control service [/server_control]
(2023-05-09T21:28:06.809520000) (2023-05-09T21:28:06.809533000) [GUI] [Dbg] [Application.cc:621] Applying config
(2023-05-09T21:28:06.910412000) (2023-05-09T21:28:06.910431000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:06.952664000) (2023-05-09T21:28:06.952684000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:06.958660000) (2023-05-09T21:28:06.958676000) [GUI] [Wrn] [Component.hh:189] Trying to deserialize component with data type [N3sdf3v135WorldE], which doesn't have operator>>. Component will not be deserialized.
(2023-05-09T21:28:06.992345000) (2023-05-09T21:28:06.992364000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:07.39659000) (2023-05-09T21:28:07.39679000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:07.89596000) (2023-05-09T21:28:07.89617000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:07.187378000) (2023-05-09T21:28:07.187398000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:07.227730000) (2023-05-09T21:28:07.227750000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:07.269350000) (2023-05-09T21:28:07.269369000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:07.309945000) (2023-05-09T21:28:07.309964000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:07.350514000) (2023-05-09T21:28:07.350533000) [GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
(2023-05-09T21:28:07.418588000) (2023-05-09T21:28:07.418605000) [GUI] [Wrn] [Application.cc:859] [QT] file::/WorldStats/WorldStats.qml:53:3: QML RowLayout: Binding loop detected for property "x"
(2023-05-09T21:28:07.420530000) (2023-05-09T21:28:07.420546000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:07.420620000) (2023-05-09T21:28:07.420632000) [GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:67:3: QML EntityContextMenu: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
(2023-05-09T21:28:07.420971000) (2023-05-09T21:28:07.420984000) [GUI] [Wrn] [Application.cc:859] [QT] qUncompress: Z_DATA_ERROR: Input data is corrupted
(2023-05-09T21:28:07.421044000) (2023-05-09T21:28:07.421057000) [GUI] [Wrn] [Application.cc:859] [QT] Attempted to deserialize QShader with unknown version 0.
(2023-05-09T21:28:07.421103000) (2023-05-09T21:28:07.421115000) [GUI] [Wrn] [Application.cc:859] [QT] ShaderEffect: Failed to deserialize QShader from :/qt-project.org/imports/QtGraphicalEffects/shaders/gammaadjust.frag
(2023-05-09T21:28:07.421155000) (2023-05-09T21:28:07.421166000) [GUI] [Wrn] [Application.cc:859] [QT] ShaderEffect: shader preparation failed for qrc:/qt-project.org/imports/QtGraphicalEffects/shaders/gammaadjust.frag

(2023-05-09T21:28:07.446890000) (2023-05-09T21:28:07.446910000) [GUI] [Dbg] [MinimalScene.cc:664] Creating gz-renderering interface for Metal
(2023-05-09T21:28:07.446957000) (2023-05-09T21:28:07.446969000) [GUI] [Dbg] [MinimalScene.cc:819] Creating render thread interface for Metal

Description

  • Expected behavior:
    Ran 'gz sim -v 4 shapes.sdf -s' in one terminal ,No errors
    Ran gz sim -v 4 -g in another terminal

  • Actual behavior:
    Gui Crashed with segmentation fault

[GUI] [Dbg] [Application.cc:621] Applying config
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Component.hh:189] Trying to deserialize component with data type [N3sdf3v135WorldE], which doesn't have operator>>. Component will not be deserialized.
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Application.cc:859] [QT] file::/WorldStats/WorldStats.qml:53:3: QML RowLayout: Binding loop detected for property "x"
[GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:52:3: QML RenderWindowOverlay: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
[GUI] [Wrn] [Application.cc:859] [QT] file::/EntityContextMenuPlugin/EntityContextMenuPlugin.qml:67:3: QML EntityContextMenu: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
[GUI] [Wrn] [Application.cc:859] [QT] qUncompress: Z_DATA_ERROR: Input data is corrupted
[GUI] [Wrn] [Application.cc:859] [QT] Attempted to deserialize QShader with unknown version 0.
[GUI] [Wrn] [Application.cc:859] [QT] ShaderEffect: Failed to deserialize QShader from :/qt-project.org/imports/QtGraphicalEffects/shaders/gammaadjust.frag
[GUI] [Wrn] [Application.cc:859] [QT] ShaderEffect: shader preparation failed for qrc:/qt-project.org/imports/QtGraphicalEffects/shaders/gammaadjust.frag

[GUI] [Dbg] [MinimalScene.cc:664] Creating gz-renderering interface for Metal
[GUI] [Dbg] [MinimalScene.cc:819] Creating render thread interface for Metal
Stack trace (most recent call last) in thread 123145455476736:
#15 Object "libsystem_pthread.dylib", at 0x7fff2078d8fc, in _pthread_start + 224
#14 Object "QtCore", at 0x10e570da0, in QThread::qt_metacall(QMetaObject::Call, int, void**) + 1168
#13 Object "QtQuick", at 0x10c38a17f, in QSGOpenGLLayer::qt_metacall(QMetaObject::Call, int, void**) + 21951
#12 Object "QtQuick", at 0x10c388f3c, in QSGOpenGLLayer::qt_metacall(QMetaObject::Call, int, void**) + 17276
#11 Object "QtQuick", at 0x10c3e1a8a, in QQuickWindowPrivate::renderSceneGraph(QSize const&, QSize const&) + 954
#10 Object "QtQuick", at 0x10c319d7a, in QSGRenderer::renderScene(unsigned int) + 58
#9 Object "QtQuick", at 0x10c319fab, in QSGRenderer::renderScene(QSGBindable const&) + 539
#8 Object "QtQuick", at 0x10c332fd6, in QSGBatchRenderer::Renderer::render() + 1958
#7 Object "QtQuick", at 0x10c330c65, in QSGBatchRenderer::Renderer::renderBatches() + 1125
#6 Object "QtQuick", at 0x10c32e444, in QSGBatchRenderer::Renderer::prepareRenderMergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) + 1076
#5 Object "QtQuick", at 0x10c32d80a, in QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialRhiShader::RenderState&, QSGMaterial*, QVarLengthArray<QRhiShaderResourceBinding, 8>, QSGBatchRenderer::Batch const, int, int) + 122
#4 Object "QtQuick", at 0x10c36fa0f, in QSGRenderLoop::metaObject() const + 16815
#3 Object "QtQuick", at 0x10c36f870, in QSGRenderLoop::metaObject() const + 16400
#2 Object "libsystem_platform.dylib", at 0x7fff207d2d7c, in _sigtramp + 28
#1 Object "libgz-tools2-backward.dylib", at 0x109ab5fad, in backward::SignalHandling::sig_handler(int, __siginfo*, void*) + 13
#0 Object "libgz-tools2-backward.dylib", at 0x109ab6016, in backward::SignalHandling::handleSignal(int, __siginfo*, void*) + 70
[1] 26969 segmentation fault

Steps to reproduce

Output

@bhagathkumar bhagathkumar added the bug Something isn't working label May 9, 2023
@azeey azeey changed the title Gazebo-Garden Vanilla installation both from biary as well as source ,GUI is crashing with segmentation fault in MAcOS BigSur Gazebo-Garden Vanilla installation both from binary as well as source ,GUI is crashing with segmentation fault in MAcOS BigSur May 15, 2023
@azeey azeey self-assigned this May 15, 2023
@fenil1608
Copy link

Hi, I'm also facing similar issue when trying to use gz-garden in MACOS Monterey Version 12.3, Apple M1 pro silicon.

After installation via binaries, I'm facing below errors & the simulation won't run.
MicrosoftTeams-image (1)

And after installation via building from source, I'm getting similar segmentation fault.

MicrosoftTeams-image (3)

@srmainwaring
Copy link
Contributor

srmainwaring commented May 17, 2023

Hi, I'm also facing similar issue when trying to use gz-garden in MACOS Monterey Version 12.3, Apple M1 pro silicon.

@fenil1608 Gazebo built from source will run on a M1 MacBook Pro using macOS Monterey (I run on Monterey 12.6.2 but the earlier version should also be ok).

The problem you are seeing is different to the OP, and seems to be an issue with resolving library paths. Some suggestions if you build from source:

  1. Ensure you have uninstalled all the brew binaries for Gazebo including sdformat.
  2. You need to build with RPATH disabled. I also enable a couple of other flags so I don't need to disable SIP.
colcon build --symlink-install --merge-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_MACOSX_RPATH=FALSE -DCMAKE_INSTALL_NAME_DIR=$(pwd)/install/lib -DGZ_PYTHON_VERSION=3.10 --event-handlers=desktop_notification- --packages-up-to gz-sim7
  • --merge-install as otherwise the libs will not be found event though ./install/setup.zsh does point to the correct places. This is all because of the DYLD_LIBRARY_PATH sanitisation enforced by macOS when spawning child shells.
  • -DCMAKE_MACOSX_RPATH is needed to ensure absolute install paths
  • -DCMAKE_INSTALL_NAME_DIR=$(pwd)/install/lib to force the install location
  • -DGZ_PYTHON_VERSION=3.10 because brew installs multiple version of Python and you want to be sure which version you're going to get
  • --event-handlers=desktop_notification- is to suppress warnings from colcon

@bhagathkumar
Copy link
Author

Hi @srmainwaring ,

wether above solution will fix my initial problem statement? Bigsur with i7 config? Though the error output is different for me

@srmainwaring
Copy link
Contributor

srmainwaring commented May 17, 2023

wether above solution will fix my initial problem statement? Bigsur with i7 config? Though the error output is different for me

Hi @bhagathkumar, maybe not. Your problem appears to not be so much with library resolution but with the rendering set up and possible the interaction with Qt.

Which model of mac are you using? I have previously built and run gz-sim on a 2013 MacBook Pro, macOS Big Sur 11.6.1 with an Intel Iris 1536MB GPU and Retina display. I haven't tried building on this machine since gz-sim updated to used ogre2.3, so there may be some changes causing issue on older machines.

@azeey
Copy link
Contributor

azeey commented May 17, 2023

@srmainwaring Have you had any luck running Gazebo installed through homebrew?

@srmainwaring
Copy link
Contributor

srmainwaring commented May 17, 2023

@srmainwaring Have you had any luck running Gazebo installed through homebrew?

I haven't tried recently as I am always using from source builds for dev and updating brew tends to wreck my ROS Humble stack every time. Could try my M1 machine as I am planning to pilot Ventura on that soon.

Edit

I've just installed gz-garden using brew on my old 2013 MacBook Pro (details above) and it's running. This machine has SIP disabled (I can check what happens if I run csrutil enable - there may be library path issues - OK that works too, but I need to place the brew installed version of ruby first in the PATH).

gz sim --version
Gazebo Sim, version 7.5.0
...

The shapes.sdf example runs. There is a segmentation fault on exit for the gui processes.

Before installing I ran brew update then brew upgrade and ensured brew doctor reported no warnings/errors.

@bhagathkumar
Copy link
Author

@srmainwaring I have macbook pro 2019 edition with I7 processor .current version BigSur 11.7.1 .Gpu Iris 1536 MB and Radeon 5300M 4GB.

Hope ogre2.3 have compatibility issues with the version.

i tried with --render-engine ogre .. Still it didn't work.

@srmainwaring
Copy link
Contributor

srmainwaring commented May 22, 2023

I am seeing a crash in Qt after updating and upgrading brew then rebuilding from source:

  • /usr/local/Cellar/dartsim/6.13.0_3 (1,079 files, 47.9MB)
  • /usr/local/Cellar/qt@5/5.15.8_3 (10,761 files, 342.9MB)

Nominally I was looking into a separate issue concerning dartsim, which is giving a segmentation fault when the server exits. However, the GUI is also crashing with the updated version of Qt:

gz sim -v4 -g
...
[GUI] [Dbg] [MinimalScene.cc:664] Creating gz-renderering interface for Metal
[GUI] [Dbg] [MinimalScene.cc:819] Creating render thread interface for Metal
ruby(92714,0x700007c4e000) malloc: Heap corruption detected, free list is damaged at 0x60000717cb80
*** Incorrect guard value: 1065353216
ruby(92714,0x700007c4e000) malloc: *** set a breakpoint in malloc_error_break to debug
Stack trace (most recent call last) in thread 123145432653824:
#25   Object "libsystem_pthread.dylib", at 0x7ff80abf14e1, in _pthread_start + 125
#24   Object "QtCore", at 0x10dda9f60, in QThread::qt_metacall(QMetaObject::Call, int, void**) + 1168
#23   Object "QtQuick", at 0x10c4bba7f, in QSGOpenGLLayer::qt_metacall(QMetaObject::Call, int, void**) + 21999
#22   Object "QtQuick", at 0x10c4ba841, in QSGOpenGLLayer::qt_metacall(QMetaObject::Call, int, void**) + 17329
#21   Object "QtQuick", at 0x10c5135e0, in QQuickWindowPrivate::renderSceneGraph(QSize const&, QSize const&) + 928
#20   Object "QtQuick", at 0x10c44b0ca, in QSGRenderer::renderScene(unsigned int) + 58
#19   Object "QtQuick", at 0x10c44b2fb, in QSGRenderer::renderScene(QSGBindable const&) + 539
#18   Object "QtQuick", at 0x10c464056, in QSGBatchRenderer::Renderer::render() + 1846
#17   Object "QtQuick", at 0x10c461d35, in QSGBatchRenderer::Renderer::renderBatches() + 1109
#16   Object "QtQuick", at 0x10c45f5a0, in QSGBatchRenderer::Renderer::prepareRenderMergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) + 1056
#15   Object "QtQuick", at 0x10c45e9b5, in QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialRhiShader::RenderState&, QSGMaterial*, QVarLengthArray<QRhiShaderResourceBinding, 8>*, QSGBatchRenderer::Batch const*, int, int) + 181
#14   Object "QtGui", at 0x10e73758e, in QRhiResourceUpdateBatch::updateDynamicBuffer(QRhiBuffer*, int, int, void const*) + 46
#13   Object "QtCore", at 0x10de10653, in QByteArray::QByteArray(char const*, int) + 51
#12   Object "QtCore", at 0x10ddb7461, in QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>) + 145
#11   Object "libsystem_malloc.dylib", at 0x7ff80aa28abb, in _malloc_zone_malloc + 125
#10   Object "libsystem_malloc.dylib", at 0x7ff80aa0c5a4, in nanov2_malloc + 56
#9    Object "libsystem_malloc.dylib", at 0x7ff80aa0c677, in nanov2_allocate + 130
#8    Object "libsystem_malloc.dylib", at 0x7ff80aa0d0e8, in nanov2_allocate_from_block + 582
#7    Object "libsystem_malloc.dylib", at 0x7ff80aa2e308, in malloc_zone_error + 178
#6    Object "libsystem_malloc.dylib", at 0x7ff80aa1a357, in has_default_zone0 + 0
#5    Object "libsystem_c.dylib", at 0x7ff80ab3cd24, in abort + 123
#4    Object "libsystem_pthread.dylib", at 0x7ff80abf11ff, in pthread_kill + 263
#3    Object "libsystem_kernel.dylib", at 0x7ff80abbb00f, in __pthread_kill + 11
#2    Object "libsystem_platform.dylib", at 0x7ff80ac06dfc, in _sigtramp + 28
#1    Object "libgz-tools2-backward.dylib", at 0x10662321d, in backward::SignalHandling::sig_handler(int, __siginfo*, void*) + 13
#0    Object "libgz-tools2-backward.dylib", at 0x106623286, in backward::SignalHandling::handleSignal(int, __siginfo*, void*) + 70

This appears to be coming from the ComponentInspector plugin. If you comment out:

<plugin filename="ComponentInspector" name="Component inspector">
  <gz-gui>
    <property type="bool" key="showTitleBar">false</property>
    <property type="string" key="state">docked</property>
  </gz-gui>
</plugin>

in ~/.gz/sim7/gui.config there is no crash when running shapes.sdf (the other plugins in the default gui.config appear to be ok). The gui will crash if ComponentInspector is the only plugin loaded.

In the meanwhile @bhagathkumar and @fenil1608 it may be worth trying to load a minimal set of gui plugins to see whether you have similar behaviour. The bare minimum gui.config to render a 3D scene is:

<?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>
  <dialog_on_exit>true</dialog_on_exit>
</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>

@bhagathkumar
Copy link
Author

Hi @srmainwaring

Did reset the homebrew. Reinstalled the dependencies. dartsim 6.13.0_3 and qt 5.15.8_3.
Did the Source build

Gazebo Sim Server v7.5.0
Gazebo Sim GUI v7.5.0

with default gui.config ,It crashed as in Original issue description.

  1. After removing component inspector plugin . It worked as expected .with shapes.sdf

when quitting
it exited with below message
[GUI] [Wrn] [Application.cc:859] [QT] file::qml/GzCard.qml:139: TypeError: Cannot read property 'pluginToolBarTextColorLight' of null
Stack trace (most recent call last) in thread 123145422659584:
#2 Object "libsystem_platform.dylib", at 0x7fff2089ed7c, in _sigtramp + 28
#1 Object "libgz-tools2-backward.dylib", at 0x106605fad, in backward::SignalHandling::sig_handler(int, __siginfo*, void*) + 13
#0 Object "libgz-tools2-backward.dylib", at 0x106606016, in backward::SignalHandling::handleSignal(int, __siginfo*, void*) + 70
[1] 31737 segmentation fault gz sim -v 4 -g

2.When using minimal gui.config .It works as expected with shapes.sdf

So yea it might be a problem with component Inspector plugin

@srmainwaring
Copy link
Contributor

srmainwaring commented May 24, 2023

So yea it might be a problem with component Inspector plugin

Great - thanks for confirming that you can reproduce.

  • Issue doesn't appear in qt@5 5.15.6 but does in 5.15.8_3.
  • Issue occurs in macOS Big Sur and macOS Monterey.
  • Possible thread race issue when using QtStandardItemModel and QStandardItem?

@srmainwaring
Copy link
Contributor

srmainwaring commented May 25, 2023

@azeey is there a Qt/QML expert who might take a look at this issue or be available to discuss? I don't think this is a threading error after all as the objects are all on the UI thread and this problem happens even when the MinimalScene is unloaded - so no Gz render thread conflicts.

I suspect there is something going on with the QML - specifically where Loader is used to dynamically load the GzSpinBox into Items. I've narrowed the fault down to a couple of QML documents in the ComponentInspector: Light.qml, Physics.qml, Pose3d.qml all where they directly or indirectly attempt to load GzSpinBox.

The heap corruption error is occurring in the QSG render thread (entirely managed by Qt), and at first I thought that there might be an issue because different Qt control libraries are in use: QtQuick.Controls 1.4 and QtQuick.Controls 2.2 are both in the global namespace in many QML files. After scoping the QtQuick.Controls 1.4 using import as and updating the relevant files the issue persists, so that may not be the entire problem (although scoping the imports is probably a good idea in any case).

While the app will run if the ComponentInspector is not loaded, at present macOS users running gz-sim 7.5.0 and brew latest (qt 5.15.8_3) may experience a hard seg fault when starting the GUI using the defaults - whether from source or binary.

Update:

The issue is using the QtQuick.Controls 1.4 SpinBox with QtQuick.Controls 2.2. A minimal example that demonstrates the issue is a QML doc such as:

import QtQuick 2.9
import QtQuick.Controls 1.4 as QQC1
import QtQuick.Controls 2.2
import QtQuick.Controls.Styles 1.4

Rectangle {
  id: demo

  Component {
      id: willCrash
      QQC1.SpinBox {
        id: spinbox
      }
  }

  Rectangle {
    Loader {
      id: willCrashLoader
      sourceComponent: willCrash
    }
  }
}

This will crash the Qt scene graph... and this won't:

import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Controls.Styles 1.4

Rectangle {
  id: demo

  Component {
      id: wontCrash
      SpinBox {
        id: spinbox
      }
  }

  Rectangle {
    Loader {
      id: wontCrashLoader
      sourceComponent: wontCrash
    }
  }
}

@azeey
Copy link
Contributor

azeey commented May 25, 2023

Wow, great job investigating this! https://doc.qt.io/qt-5/qtquickcontrols1-index.html says QtQuick Controls 1 is deprecated as of qt 5.12, so we should just update these to use version 2 anyways.

@NDevDrone
Copy link

NDevDrone commented May 26, 2023

So yea it might be a problem with component Inspector plugin

Hey @srmainwaring , thank you for everything you do. Hard to understate how valuable you are. I reproduced this as well.

I recently tried to install garden from binary (brew) like you suggested a while back and I encounter the same issue as @fenil1608 , and I ensured that SIP was turned off ahead of time. Very stuck. #1990 . I am on Ventura.

Any tips to resolve would be killer.

@srmainwaring
Copy link
Contributor

srmainwaring commented May 31, 2023

so we should just update these to use version 2 anyways

This is not straight forward. The version of SpinBox in in QtQuick.Controls 2.2 is for ints rather than doubles. The suggested adaptation in https://doc.qt.io/qt-5/qml-qtquick-controls2-spinbox.html#validator-prop for dealing with floating point numbers is not a practical solution as it overflows / underflows for the full range of doubles / decimals points currently used.

Some further discussion here: https://stackoverflow.com/questions/43406830/how-to-use-float-in-a-qml-spinbox in the second comment.

A custom control is probably required. Will raise a separate issue.

@srmainwaring
Copy link
Contributor

srmainwaring commented Jun 2, 2023

Very stuck. #1990 . I am on Ventura.

@NDevDrone - have just upgraded to Ventura 13.4, Xcode and CommandLineTools 14.3.1, updated brew and rebuilt gz-sim7 - all working ok (except the Qt issue mentioned above). Will see if I can get the binary install to run.

gz-sim7-ventura

@NDevDrone
Copy link

NDevDrone commented Sep 5, 2023

Hi Rhys, @srmainwaring

Thanks for reviewing it. Some new work has come up involving simulation, which has lead me to try once again. Building from source on Ventura with updated tools yields the following:

image

@srmainwaring
Copy link
Contributor

Building from source on Ventura with updated tools yields the following:

The colcon notifier message is not the main problem, although should be fixed by updating brew and Python packages.

For some reason gz-msgs9 is not building, but the log for that is missing. Can you paste the full log as text (easier to read than screen shots).

@NDevDrone
Copy link

NDevDrone commented Sep 5, 2023

Sorry about that, here is the full logs:

First, running graph gives:

gz-cmake3       +***************
gz-tools2        +              
gz-utils2         +**.*******.**
gz-math7           +*****.******
gz-common5          +  ** ******
gz-msgs9             + * *  ****
sdformat13            +   *  **.
gz-fuel_tools8         +      *.
gz-plugin2              + ***.**
gz-transport12           +  ****
gz-physics6               +   *.
gz-rendering7              +***.
gz-gui7                     + **
gz-sensors7                  +*.
gz-sim7                       +*
gz-launch6                     +

I then use either of the colcon build commands, the first one OR the one that has arguments for apple sillicon macs. Running the second yields the following:

USERNAME@USERNAME-MacBook-Pro-2 workspace % colcon build --cmake-args -DCMAKE_MACOSX_RPATH=FALSE -DCMAKE_INSTALL_NAME_DIR=$(pwd)/install/lib --merge-install
Starting >>> gz-cmake3
--- stderr: gz-cmake3                               
warning: Tag 'OUTPUT_TEXT_DIRECTION' at line 102 of file '/Users/USERNAME/workspace/build/gz-cmake3/api_tagfile.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'CLANG_ASSISTED_PARSING' at line 1072 of file '/Users/USERNAME/workspace/build/gz-cmake3/api_tagfile.dox' belongs to an option that was not enabled at compile time.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u", or recompile doxygen with this feature enabled.

warning: Tag 'DOT_TRANSPARENT' at line 2494 of file '/Users/USERNAME/workspace/build/gz-cmake3/api.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
---
Finished <<< gz-cmake3 [0.63s]
Starting >>> gz-utils2
Starting >>> gz-tools2
--- stderr: gz-tools2                                                                         
warning: Tag 'OUTPUT_TEXT_DIRECTION' at line 102 of file '/Users/USERNAME/workspace/build/gz-tools2/api_tagfile.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"

---
Finished <<< gz-tools2 [0.91s]
--- stderr: gz-utils2                            
warning: Tag 'OUTPUT_TEXT_DIRECTION' at line 102 of file '/Users/USERNAME/workspace/build/gz-utils2/api_tagfile.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'CLANG_ASSISTED_PARSING' at line 1073 of file '/Users/USERNAME/workspace/build/gz-utils2/api_tagfile.dox' belongs to an option that was not enabled at compile time.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u", or recompile doxygen with this feature enabled.
warning: Tag 'CLANG_OPTIONS' at line 1081 of file '/Users/USERNAME/workspace/build/gz-utils2/api_tagfile.dox' belongs to an option that was not enabled at compile time.

         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'DOT_FONTSIZE' at line 2269 of file '/Users/USERNAME/workspace/build/gz-utils2/api.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'DOT_TRANSPARENT' at line 2495 of file '/Users/USERNAME/workspace/build/gz-utils2/api.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
---
Finished <<< gz-utils2 [0.97s]
Starting >>> gz-math7
--- stderr: gz-math7                                 
CMake Warning (dev) at CMakeLists.txt:103 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at /Users/USERNAME/workspace/install/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:68 (message):
   CONFIGURATION WARNINGS:
   -- Swig is missing: Language interfaces are disabled.
Call Stack (most recent call first):
  CMakeLists.txt:130 (gz_configure_build)


warning: Tag 'OUTPUT_TEXT_DIRECTION' at line 102 of file '/Users/USERNAME/workspace/build/gz-math7/api_tagfile.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"

warning: Tag 'DOT_TRANSPARENT' at line 2495 of file '/Users/USERNAME/workspace/build/gz-math7/api.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
---
Finished <<< gz-math7 [13.2s]
Starting >>> gz-common5
Starting >>> gz-msgs9
Starting >>> sdformat13
--- stderr: gz-common5                                                                                                        
CMake Warning (dev) at /Users/USERNAME/workspace/install/share/cmake/gz-cmake3/cmake3/GzFindPackage.cmake:456 (message):
   -- THIS MESSAGE IS INTENDED FOR GZ-COMMON AUTHORS --
      (IF YOU SEE THIS, PLEASE REPORT IT)

  Could not find pkg-config information for UUID.  It was not provided by the
  find-module for the package, nor was it explicitly passed into the call to
  gz_find_package(~).  This is most likely an error in this project's use of
  gz-cmake.
Call Stack (most recent call first):
  CMakeLists.txt:81 (gz_find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

warning: Tag 'OUTPUT_TEXT_DIRECTION' at line 102 of file '/Users/USERNAME/workspace/build/gz-common5/api_tagfile.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"

         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'DOT_FONTSIZE' at line 2276 of file '/Users/USERNAME/workspace/build/gz-common5/api.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'DOT_TRANSPARENT' at line 2502 of file '/Users/USERNAME/workspace/build/gz-common5/api.dox' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
make[2]: *** No rule to make target `/opt/homebrew/Cellar/gts/0.7.6_2/lib/libgts.dylib', needed by `lib/libgz-common5-graphics.5.4.1.dylib'.  Stop.
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [graphics/src/CMakeFiles/gz-common5-graphics.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 10 jobserver tokens available; should be 8!
---
Failed   <<< gz-common5 [20.4s, exited with code 2]
Aborted  <<< sdformat13 [2min 4s]                                                                                         
Aborted  <<< gz-msgs9 [2min 23s]                                          

Summary: 4 packages finished [2min 38s]
  1 package failed: gz-common5
  2 packages aborted: gz-msgs9 sdformat13
  7 packages had stderr output: gz-cmake3 gz-common5 gz-math7 gz-msgs9 gz-tools2 gz-utils2 sdformat13
  9 packages not processed
[158.328s] ERROR:colcon.colcon_notification.desktop_notification.terminal_notifier:Could not find the colcon-terminal-notifier.app in the install prefix '/opt/homebrew'

@srmainwaring
Copy link
Contributor

Looks like you may be missing / need to upgrade some deps:

brew update
brew upgrade
brew install gts swscale uuid

There may be others.

Also check you're Python packages are up to date

python3 -m pip list --outdated 

and fix as necessary.

It's worth patching gz-cmake3 and a couple of other repos to suppress the doxygen warnings that obscure what is going on. Search for DOT_TRANSPARENT etc and remove from the doxygen config files. It will save pages of screen space.

My intel mac workstation is current with brew latests and Python as of the beginning of this week, and gz garden is building and running. My M1 MacBook has not been updated for a few months, so there may be inconsistencies...

@NDevDrone
Copy link

NDevDrone commented Sep 5, 2023

brew update
brew upgrade
brew install gts swscale uuid

Hey Rhys @srmainwaring ,

Checked all this to be sure, still no luck. All packages are up to date.

I am not sure how to go about patching gz-cmake3 on my own, this is beyond me in terms of level of developer skill. I would love to be helpful and try to fix it so I can develop with MacOS, so if you have any patience left for it we could work together to get source install functioning on apple silicon.

Also sorry for the massive wall of text in prior messages, I will delete a bunch of them now and reformat them to fix this issue's comment section to retain its readability.

@srmainwaring
Copy link
Contributor

@NDevDrone - ok, next step will be for me to carry out the same upgrade to a M1 machine as applied to the intel one to verify the build is good.

Are all your branches of gz-* current? To replicate I'll need the branch and hash for each of the gz-* libraries. Could you run the following from your workspace and upload the files.

vcs export ./src > gz-garden.yaml
vcs export --exact ./src > gz-garden-exact.yaml

@NDevDrone
Copy link

NDevDrone commented Sep 5, 2023

Oh my, somehow I've managed to get it to build from source!!! @srmainwaring

In my frustration and considering my possible inability to follow instructions, I decided to uninstall (wipe) homebrew entirely. This time around, I first set the export dependencies for ogre in advance within my system shell, then I ran YOUR suggested colcon build command, i.e.

colcon build --symlink-install --merge-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_MACOSX_RPATH=FALSE -DCMAKE_INSTALL_NAME_DIR=$(pwd)/install/lib -DGZ_PYTHON_VERSION=3.10 --event-handlers=desktop_notification- --packages-up-to gz-sim7

This then appeared TO BUILD EVERYTHING PROPERLY (!)

After that, I tried to then run the main build command as is to see if it would fail like before, colcon build --merge-install

And it built again properly!

I have no idea why your suggested colcon build arguments set was required to fix it, but it did.

@NDevDrone
Copy link

NDevDrone commented Sep 5, 2023

Could you run the following from your workspace and upload the files.

Attached are the requested files AFTER I managed to get it to work thanks to your help :)

RequestedYaml.zip

image

I also noticed a few other quirks with the MacOS build from source instructions that we ought to update:

  1. wget isn't installed by default w/ hombrew, have to add a step for this.
  2. the Xquarts install is a bit different, it should be brew install --cask xquartz
  3. There is something funky about the colcon build commands on a Apple Silicoin that needs to be identified, but your suggested arguments did the fix so I figure you may see it, and we could update the instructions to reflect this sage information.
  4. Perhaps setting up dependencies in bash script for the likes of Ogre may need to be done in advance of the set up to set up paths correctly?

@NDevDrone
Copy link

@srmainwaring I'll send you a message on ArduPlane community forums, I'm now going to work to finalize the aircraft model I've been working on so I can contribute it to your project, thanks to all this!

@srmainwaring
Copy link
Contributor

Some background on the flags:

  • -DBUILD_TESTING=ON, not required but useful when developing
  • -DCMAKE_BUILD_TYPE=RelWithDebInfo, not required but essential if you want to step through the code in lldb
  • -DCMAKE_CXX_STANDARD=17, should be default for most gz libs, but force
  • --merge-install, -DCMAKE_MACOSX_RPATH=FALSE -DCMAKE_INSTALL_NAME_DIR=$(pwd)/install/lib, get round issues with macOS SIP - this force copies the install/lib location into plugins etc so the run time lib loader can find things
  • -DGZ_PYTHON_VERSION=3.10, not needed, floating round because of a python project I have in the workspace
  • --event-handlers=desktop_notification-, suppress an annoying message which seems to have been resolved with recent versions of brew, python, colcon and other deps.

@srmainwaring
Copy link
Contributor

@srmainwaring I'll send you a message on ArduPlane community forums, I'm now going to work to finalize the aircraft model I've been working on so I can contribute it to your project, thanks to all this!

Super! Look forward to seeing that.

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
Status: In progress
Development

No branches or pull requests

5 participants