Skip to content

Conversation

XINJIANGMO
Copy link
Contributor

🦟 Bug fix

Fixes #3058

Summary

When attempting to set the debug visualization mode, the code now checks if giis enabled. If gi is disabled, it logs an error and always sets the debug visualization mode to None to avoid a crash.
Setting a debug visualization mode while gi is disabled can cause a crash due to invalid or released resources. This change ensures safety by forcing the mode to None when gi is not active.

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

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

thanks for the fix!

@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Sep 4, 2025
@iche033 iche033 merged commit 019e38c into gazebosim:main Sep 5, 2025
12 of 13 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Core development Sep 5, 2025
@iche033
Copy link
Contributor

iche033 commented Sep 5, 2025

@Mergifyio backport gz-sim10 gz-sim9 gz-sim8

Copy link
Contributor

mergify bot commented Sep 5, 2025

backport gz-sim10 gz-sim9 gz-sim8

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 5, 2025
mergify bot pushed a commit that referenced this pull request Sep 5, 2025
mergify bot pushed a commit that referenced this pull request Sep 5, 2025
iche033 added a commit that referenced this pull request Sep 5, 2025
@XINJIANGMO XINJIANGMO deleted the fixbug-3058 branch September 6, 2025 00:43
iche033 added a commit that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants