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

[melodic] RViz panels don't always show at startup #1348

Merged
merged 1 commit into from Feb 20, 2019
Merged

[melodic] RViz panels don't always show at startup #1348

merged 1 commit into from Feb 20, 2019

Conversation

seanyen
Copy link
Contributor

@seanyen seanyen commented Feb 20, 2019

Problem

Sometimes, after RViz starts up, some panels are not showing, even when I toggle through menu > panels > xyz. On Windows, the repro rate is high, like once out of 5 ~ 10 runs. On Ubuntu, we also observe the same symptom (but with a much lower reproduce rate).

The workaround is to enter\exit fullscreen to refresh the visibility states.

This is also reported on https://answers.ros.org/question/315664/ros-not-running-well-on-windows-10/.

Analysis & Solution

After live debugging, I noticed sometimes forced_hidden_ are not zero at start up. And it turned out forced_hidden_ was not zero-initialized in constructor and it could be anything left from the memory, so it messed up with the later visibility logic.

The solution is to simply initialize it.

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

Thank you very much for tracking down this annoying bug.

@rhaschke rhaschke merged commit d133e6c into ros-visualization:melodic-devel Feb 20, 2019
@seanyen seanyen deleted the panels_no_show_randomly branch April 12, 2019 20:52
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.

None yet

2 participants