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

Fix crash in OpticalTactilePlugin by checking for valid visualize pointer #2674

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Nov 11, 2024

🦟 Bug fix

Fixes #2543

Summary

See steps in #2543 to reproduce the crash.

Calling the service to disable the plugin (when it has never been enabled before) will cause a crash because the optical tactile visualization marker pointer is null (not created yet). This PR adds a check to make sure the optical tactile visualization marker pointer is not null before attempting to remove the visualization markers.

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.

Signed-off-by: Ian Chen <ichen@openrobotics.org>
@ahcorde ahcorde merged commit 57599fb into gz-sim9 Nov 12, 2024
9 of 10 checks passed
@ahcorde ahcorde deleted the fix_optical_tactile_crash branch November 12, 2024 11:29
@ahcorde
Copy link
Contributor

ahcorde commented Nov 12, 2024

https://github.com/Mergifyio backport ign-gazebo6 gz-sim8 gz-sim7

Copy link
Contributor

mergify bot commented Nov 12, 2024

backport ign-gazebo6 gz-sim8 gz-sim7

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Nov 12, 2024
Signed-off-by: Ian Chen <ichen@openrobotics.org>
(cherry picked from commit 57599fb)
mergify bot pushed a commit that referenced this pull request Nov 12, 2024
Signed-off-by: Ian Chen <ichen@openrobotics.org>
(cherry picked from commit 57599fb)
mergify bot pushed a commit that referenced this pull request Nov 12, 2024
Signed-off-by: Ian Chen <ichen@openrobotics.org>
(cherry picked from commit 57599fb)
ahcorde pushed a commit that referenced this pull request Nov 12, 2024
Signed-off-by: Ian Chen <ichen@openrobotics.org>
(cherry picked from commit 57599fb)

Co-authored-by: Ian Chen <ichen@openrobotics.org>
iche033 added a commit that referenced this pull request Nov 12, 2024
Signed-off-by: Ian Chen <ichen@openrobotics.org>
(cherry picked from commit 57599fb)
iche033 added a commit that referenced this pull request Nov 12, 2024
Signed-off-by: Ian Chen <ichen@openrobotics.org>
(cherry picked from commit 57599fb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Crash after calling /optical_tactile_sensor/enable over OpticalTactilePlugin
2 participants