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

🧑‍🌾 Segfaults in macOS Monterey (mac.five.monterey) #847

Open
Crola1702 opened this issue May 15, 2023 · 3 comments
Open

🧑‍🌾 Segfaults in macOS Monterey (mac.five.monterey) #847

Crola1702 opened this issue May 15, 2023 · 3 comments
Labels
bug Something isn't working 🏰 citadel Ignition Citadel 🏯 fortress Ignition Fortress

Comments

@Crola1702
Copy link
Contributor

Crola1702 commented May 15, 2023

Environment

  • OS Version: macOS Monterey
  • Source gz-rendering6 gz-redndering3 homebrew build

Description

  • Expected behavior: All tests should pass
  • Actual behavior: 33 tests fail by segfaulting

Steps to reproduce

  1. Run a build in gz-rendering6-homebrew or ignition_rendering-ci-ign-rendering3-homebrew with mac.five.monterey machine
  2. See 33 test regressions that segfault.

Output

Reference build: https://build.osrfoundation.org/job/ignition_rendering-ci-ign-rendering6-homebrew-amd64/104/

Test regressions:

Fortress:
The following tests FAILED:
	  1 - UNIT_ArrowVisual_TEST (SEGFAULT)
	  3 - UNIT_AxisVisual_TEST (SEGFAULT)
	 11 - UNIT_Camera_TEST (SEGFAULT)
	 13 - UNIT_Capsule_TEST (SEGFAULT)
	 21 - UNIT_Grid_TEST (SEGFAULT)
	 23 - UNIT_Heightmap_TEST (SEGFAULT)
	 27 - UNIT_JointVisual_TEST (SEGFAULT)
	 29 - UNIT_LidarVisual_TEST (SEGFAULT)
	 31 - UNIT_LightVisual_TEST (SEGFAULT)
	 33 - UNIT_Light_TEST (SEGFAULT)
	 35 - UNIT_Marker_TEST (SEGFAULT)
	 37 - UNIT_Material_TEST (SEGFAULT)
	 41 - UNIT_Mesh_TEST (SEGFAULT)
	 43 - UNIT_MoveToHelper_TEST (SEGFAULT)
	 45 - UNIT_Node_TEST (SEGFAULT)
	 47 - UNIT_OrbitViewController_TEST (SEGFAULT)
	 49 - UNIT_OrthoViewController_TEST (SEGFAULT)
	 55 - UNIT_RayQuery_TEST (SEGFAULT)
	 63 - UNIT_RenderTarget_TEST (SEGFAULT)
	 65 - UNIT_RenderingIface_TEST (SEGFAULT)
	 67 - UNIT_Scene_TEST (SEGFAULT)
	 77 - UNIT_Text_TEST (SEGFAULT)
	 79 - UNIT_ThermalCamera_TEST (SEGFAULT)
	 81 - UNIT_TransformController_TEST (SEGFAULT)
	 85 - UNIT_Visual_TEST (SEGFAULT)
	 87 - UNIT_WireBox_TEST (SEGFAULT)
	 89 - INTEGRATION_gpu_rays (SEGFAULT)
	 93 - INTEGRATION_depth_camera (SEGFAULT)
	 95 - INTEGRATION_camera (SEGFAULT)
	 97 - INTEGRATION_render_pass (SEGFAULT)
	 99 - INTEGRATION_shadows (SEGFAULT)
	101 - INTEGRATION_scene (SEGFAULT)
	109 - INTEGRATION_lidar_visual (SEGFAULT)
Citadel:

</details>
@Crola1702 Crola1702 added bug Something isn't working 🏯 fortress Ignition Fortress labels May 15, 2023
@osrf-triage osrf-triage added this to Inbox in Core development May 15, 2023
@azeey azeey moved this from Inbox to To do in Core development May 17, 2023
@Crola1702 Crola1702 changed the title Segfaults in macOS Monterey (mac.five.monterey) 🧑‍🌾 Segfaults in macOS Monterey (mac.five.monterey) Jul 26, 2023
@Crola1702 Crola1702 added the 🏰 citadel Ignition Citadel label Sep 4, 2023
@Blast545
Copy link
Contributor

Blast545 commented Jun 3, 2024

👨‍🌾 This is still affecting our CI. Originally, it only affected builds running in MacOS Monterrey of our older buildfarm. Now it's affecting all of our CI nodes for homebrew on rendering3 and rendering6.

Reference build on rendering3: https://build.osrfoundation.org/job/gz_rendering-ci-ign-rendering3-homebrew-amd64/46/
Reference build on rendering6: https://build.osrfoundation.org/job/gz_rendering-ci-ign-rendering6-homebrew-amd64/51/

The problem manifests itself as the affected tests segfaulting with no extra output or information.

The name of the failing tests makes me think it's related to Ogre configuration on Homebrew, given that all the affected tests include a sort of Testname/ogre in their path. I tried looking to the Ogre configuration, and seems to be configured properly, and found in the CMake build stage.

I'm not particularly familiar with Gazebo configuration, but part of the console output of:
https://build.osrfoundation.org/job/gz_rendering-ci-ign-rendering6-homebrew-amd64/51/consoleFull

41: [Err] [OgreMesh.cc:325] Cannot assign material created by another render-engine
 41/114 Test  #41: UNIT_Mesh_TEST ..........................***Exception: SegFault  0.30 sec
test 42

Makes me think it may that tests are not well configured to run with ogre, and may be used other render engine.

@Blast545
Copy link
Contributor

Blast545 commented Jun 3, 2024

@scpeters Can I ask you help me taking a look to this one? I went as far as my detective skills got me, but I find it odd that Ogre seems to be setup correctly, but all those tests are failing.

@iche033
Copy link
Contributor

iche033 commented Jun 5, 2024

Looked through ign-rendering6 mac failures. Not much info from the logs. The error:

[Err] [OgreMesh.cc:325] Cannot assign material created by another render-engine

is from failing to cast the material to the derived type but I think the cast is not the actual issue. I suspect the material that's being set is already null, which suggests ogre failed to create the material in the first place. So some ogre / rendering operations are failing on the machine. We would probably have to see the ~/.gz/rendering/ogre.log to get more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🏰 citadel Ignition Citadel 🏯 fortress Ignition Fortress
Projects
Status: To do
Development

No branches or pull requests

3 participants