Skip to content

Conversation

@kaichie
Copy link
Contributor

@kaichie kaichie commented Sep 25, 2025

Description

RViz2 crashes with segmentation fault when reloading robot description (can be reproduce with rapidly toggling the RobotModel display on/off). The crash occurs in PropertyTreeWidget::propertyHiddenChanged()

This PR implements a two-part fix:

  1. Change from QueueConnection to DirectConnection as suggested in call propertyHiddenChanged synchronously #1033
  2. Add safety check for Property validity to avoid accessing destroyed object

Is this user-facing behavior change?

Did you use Generative AI?

No

Additional Information

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

Do you mind to retarget this to rolling? then I can use mergify to backport this to other distros

@kaichie kaichie changed the base branch from kilted to rolling September 25, 2025 15:11
@kaichie kaichie force-pushed the fix-crash-in-property-hidden-change branch from 335b038 to c625d3f Compare September 25, 2025 15:14
@kaichie
Copy link
Contributor Author

kaichie commented Sep 25, 2025

Do you mind to retarget this to rolling? then I can use mergify to backport this to other distros

done

@ahcorde
Copy link
Contributor

ahcorde commented Sep 25, 2025

Pulls: #1587
Gist: https://gist.githubusercontent.com/ahcorde/d06bb94232e62c154a55a0e60491f3d6/raw/a4938f149541f0dd383a06b0c2af883d57cd8ff2/ros2.repos
BUILD args: --packages-above-and-dependencies rviz_common
TEST args: --packages-above rviz_common
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/17052

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit 9fc8054 into ros2:rolling Sep 26, 2025
2 checks passed
@ahcorde
Copy link
Contributor

ahcorde commented Sep 26, 2025

https://github.com/Mergifyio backport kilted jazzy humble

@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2025

backport kilted jazzy humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 26, 2025
(cherry picked from commit 9fc8054)
mergify bot pushed a commit that referenced this pull request Sep 26, 2025
(cherry picked from commit 9fc8054)
mergify bot pushed a commit that referenced this pull request Sep 26, 2025
(cherry picked from commit 9fc8054)

# Conflicts:
#	rviz_common/src/rviz_common/properties/property_tree_widget.cpp
ahcorde pushed a commit that referenced this pull request Sep 26, 2025
(cherry picked from commit 9fc8054)

Co-authored-by: nelson <kaichie.lee@gmail.com>
ahcorde pushed a commit that referenced this pull request Sep 26, 2025
(cherry picked from commit 9fc8054)

Co-authored-by: nelson <kaichie.lee@gmail.com>
ahcorde added a commit that referenced this pull request Sep 26, 2025
… (#1590)

* fix crash (#1587)

(cherry picked from commit 9fc8054)
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Co-authored-by: nelson <kaichie.lee@gmail.com>
Co-authored-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants