Skip to content

Conversation

@arjo129
Copy link
Contributor

@arjo129 arjo129 commented May 16, 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 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>
@arjo129 arjo129 requested a review from mjcarroll as a code owner May 16, 2025 06:28
@github-actions github-actions bot added the 🪵 jetty Gazebo Jetty label May 16, 2025
@arjo129 arjo129 linked an issue May 16, 2025 that may be closed by this pull request
Copy link
Contributor

@sauk2 sauk2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried running the test described in #2903.

Shows the following error without segfaulting 🎉

[error] [LiftDrag.cc:153] The LiftDrag system should be attached to a model entity. Failed to initialize.

@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development May 16, 2025
@arjo129 arjo129 enabled auto-merge (squash) May 16, 2025 08:27
@arjo129 arjo129 merged commit 049c19e into main May 16, 2025
8 of 9 checks passed
@arjo129 arjo129 deleted the arjo/fix/issue2903 branch May 16, 2025 14:58
@github-project-automation github-project-automation bot moved this from In review to Done in Core development May 16, 2025
@arjo129
Copy link
Contributor Author

arjo129 commented May 19, 2025

@Mergifyio backport gz-sim8 gz-sim9 ign-gz6

@mergify
Copy link
Contributor

mergify bot commented May 19, 2025

backport gz-sim8 gz-sim9 ign-gz6

❌ No backport have been created

GitHub error: Branch not found

mergify bot pushed a commit that referenced this pull request May 19, 2025
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 mentioned this pull request May 19, 2025
8 tasks
mergify bot pushed a commit that referenced this pull request May 19, 2025
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 mentioned this pull request May 19, 2025
8 tasks
@arjo129
Copy link
Contributor Author

arjo129 commented May 19, 2025

https://github.com/Mergifyio backport ign-gazebo6

@mergify
Copy link
Contributor

mergify bot commented May 19, 2025

backport ign-gazebo6

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 19, 2025
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)

# Conflicts:
#	src/systems/lift_drag/LiftDrag.cc
@mergify mergify bot mentioned this pull request May 19, 2025
8 tasks
arjo129 added a commit that referenced this pull request May 19, 2025
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.


(cherry picked from commit 049c19e)

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
Co-authored-by: Arjo Chakravarty <arjoc@intrinsic.ai>
arjo129 added a commit that referenced this pull request May 19, 2025
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.


(cherry picked from commit 049c19e)

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
Co-authored-by: Arjo Chakravarty <arjoc@intrinsic.ai>
arjo129 added a commit that referenced this pull request May 26, 2025
Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
ahcorde pushed a commit that referenced this pull request May 26, 2025
Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
mergify bot pushed a commit that referenced this pull request May 26, 2025
Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
(cherry picked from commit 4fa756b)
mergify bot pushed a commit that referenced this pull request May 26, 2025
Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
(cherry picked from commit 4fa756b)
arjo129 added a commit that referenced this pull request May 27, 2025
(cherry picked from commit 4fa756b)

Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
Co-authored-by: Arjo Chakravarty <arjoc@intrinsic.ai>
iche033 pushed a commit that referenced this pull request May 27, 2025
Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
(cherry picked from commit 4fa756b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪵 jetty Gazebo Jetty

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Crashed when add liftDrag plugin without designating specific entity

4 participants