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 segfaults of PointCloud-like displays during reloading #1754

Merged
merged 3 commits into from
Jul 5, 2022

Conversation

rhaschke
Copy link
Contributor

This should fix #1753 (but is not tested yet). It ensures:

  1. that TimePanel::onTimeSignal validates the sender display
  2. that a Pointcloud-like display unsubscribed before destroying PointCloudCommon

@ysl-design, could you please validate this fixup?

rhaschke added 2 commits June 27, 2022 22:00
Processing the slot onTimeSignal when the original sender() object was
deleted, will cause a crash (ros-visualization#1753).

- Drop Display* argument, but rely on QPointer<Display> that is part of the signal
- Check for valid sender display
@rhaschke
Copy link
Contributor Author

@ysl-design, could you please give this another try?

@rhaschke rhaschke merged commit f114fdc into ros-visualization:melodic-devel Jul 5, 2022
@rhaschke rhaschke deleted the fix-1753 branch July 5, 2022 13:33
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.

1 participant