Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 19, 2025

🦟 Bug fix

Fixes #2903

Summary

This PR fixes issue #2903 and prevents the server from segfaulting if the plugin fails to load correctly. It prints an error that the plugin was misconfigured and continues executing ahead.

At some point we should revisit our plugin loading interface. A lot of work is placed in the developers hands to understand internals of gazebo's lifecycle. For starters, we should try to call Configure after the entities are created. It'd also be nice to be able to return an error during Configure and just not care about executing the plugin in the future. I'll open a ticket outlining how we can go about doing this with minimal interruptions to out currently existing codebase.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸


This is an automatic backport of pull request #2907 done by [Mergify](https://mergify.com).

This PR fixes issue #2903 and prevents the server from segfaulting if
the plugin fails to load correctly. It prints an error that the plugin
was misconfigured and continues executing ahead.

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
(cherry picked from commit 049c19e)
@mergify mergify bot requested a review from mjcarroll as a code owner May 19, 2025 04:13
@mergify mergify bot mentioned this pull request May 19, 2025
8 tasks
@github-actions github-actions bot added the 🏛️ ionic Gazebo Ionic label May 19, 2025
@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development May 19, 2025
@arjo129 arjo129 enabled auto-merge (squash) May 19, 2025 04:26
@arjo129 arjo129 merged commit 1964c21 into gz-sim9 May 19, 2025
10 of 11 checks passed
@arjo129 arjo129 deleted the mergify/bp/gz-sim9/pr-2907 branch May 19, 2025 05:40
@github-project-automation github-project-automation bot moved this from In review to Done in Core development May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏛️ ionic Gazebo Ionic

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Crashed when add liftDrag plugin without designating specific entity

1 participant