Skip to content

fix: add patch to fix rviz stuck in initializing on osx platform#9

Merged
Tobias-Fischer merged 1 commit intomainfrom
fix-rviz-rendering-osx
May 5, 2026
Merged

fix: add patch to fix rviz stuck in initializing on osx platform#9
Tobias-Fischer merged 1 commit intomainfrom
fix-rviz-rendering-osx

Conversation

@wep21
Copy link
Copy Markdown
Collaborator

@wep21 wep21 commented May 5, 2026

  • I've tested launching rviz locally on M5 MBA.

Signed-off-by: Daisuke Nishimatsu <daisuke@DaisukenoMacBook-Air.local>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 627f00525d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +23 to +25
+ if (w != last_resize_width_ || h != last_resize_height_) {
+ last_resize_width_ = w;
+ last_resize_height_ = h;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Guard resize cache against sentinel 0x0 calls

This dedup check keys off the width/height arguments, but rviz_rendering::RenderWindow::windowMovedOrResized() intentionally calls impl_->resize(0, 0) as a sentinel (the same path used from RenderPanel::resizeEvent). With this change, those sentinel calls either become permanent no-ops (when the cache is already 0,0) or force a transient resize to 0,0 before the next real resize, so move/resize notifications are no longer propagated reliably. In practice this can break viewport updates after panel resizes or window moves because windowMovedOrResized() is now filtered by synthetic dimensions rather than the actual window size.

Useful? React with 👍 / 👎.

@traversaro
Copy link
Copy Markdown
Member

FYI @idesign0 that could be interested in this patch as well

@Tobias-Fischer Tobias-Fischer merged commit 7b70ced into main May 5, 2026
5 checks passed
@Tobias-Fischer Tobias-Fischer deleted the fix-rviz-rendering-osx branch May 5, 2026 19:13
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.

3 participants