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

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

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 26 (15 by maintainers)

Most upvoted comments

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.

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>