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 to render window flash problem after resizing (in python environment only) #1048

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

KKSTB
Copy link

@KKSTB KKSTB commented Aug 23, 2023

This fix is a prelude of VisualizationFrame python API (#640)

The code related to render_window expose event was dated back near the beginning of rviz2:

  1. Introduction of exposeEvent() (2ca8c2c)
  2. Introduce resize event but with isExposed() condition (07054d1)
  3. Further add impl_->resize() inside exposeEvent(), thus causing this issue although python API was not yet introduced (f0bee03)
  4. Another call to impl_->resize(0, 0) that seems could be removed (847a552) (because of the isExposed() condition, impl_->resize() is not called at the start (as observed in Python API #640 (comment)). Therefore OGRE window does not have size information to start the rendering, and therefore crashes on macOS due to assertion failure in OgreOSXCocoaWindow.mm, line 410 stated in the comment (https://github.com/ros2/rviz/blob/847a5529e2effc96f77843bbe4a33dc7ceea8168/rviz_common/include/rviz_common/render_panel.hpp#L102C54-L102C54). But maybe better leave it here for a while first until there is a chance to test it in macOS)

@KKSTB KKSTB requested a review from ahcorde as a code owner August 23, 2023 03:28
@KKSTB KKSTB force-pushed the rolling branch 2 times, most recently from b657b3e to 22951a2 Compare August 29, 2023 06:30
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