[melodic] RViz panels don't always show at startup #1348
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 outforced_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.