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

Check empty world name in Scene3d #662

Merged
merged 3 commits into from
Mar 5, 2021
Merged

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Mar 3, 2021

Signed-off-by: Ian Chen [email protected]

🦟 Bug fix

Summary

When loading a world with large complex meshes, I get a spam of the following msg:

[GUI] [Dbg] [Scene3D.cc:2745] RenderEngineGuiPlugin component not found, render engine won't be set from the ECM

This happens because the server takes a while to load while the gui is already up and running and it keeps checking for the RenderEngineGuiPlugin component on every update (and stops checking only when the it gets the world entity form the sever). In simple worlds, this does not happen because the server is usually loaded quite fast and have the world entity ready for gui on initalization.

This PR adds a check on the Scene3d plugin side so that it does not attempt to find the world's RenderEngineGuiPlugin component if the world entity is not ready yet.

To test

run ign gazebo with a complex world, e.g.

ign gazebo -v tunnel.sdf

You should see a few RenderEngineGuiPlugin component not found msgs printed in the console.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Ian Chen <[email protected]>
@iche033 iche033 requested a review from chapulina as a code owner March 3, 2021 03:39
@github-actions github-actions bot added the 🔮 dome Ignition Dome label Mar 3, 2021
@codecov
Copy link

codecov bot commented Mar 3, 2021

Codecov Report

Merging #662 (fd050bc) into ign-gazebo4 (86e6ad9) will decrease coverage by 0.02%.
The diff coverage is 12.50%.

Impacted file tree graph

@@               Coverage Diff               @@
##           ign-gazebo4     #662      +/-   ##
===============================================
- Coverage        65.03%   65.00%   -0.03%     
===============================================
  Files              232      232              
  Lines            16640    16640              
===============================================
- Hits             10821    10817       -4     
- Misses            5819     5823       +4     
Impacted Files Coverage Δ
src/gui/plugins/scene3d/Scene3D.cc 9.44% <12.50%> (-0.59%) ⬇️
src/Server.cc 82.80% <0.00%> (-0.64%) ⬇️
src/SimulationRunner.cc 93.95% <0.00%> (+1.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86e6ad9...feb354a. Read the comment docs.

@chapulina chapulina added the GUI Gazebo's graphical interface (not pure Ignition GUI) label Mar 3, 2021
src/gui/plugins/scene3d/Scene3D.cc Outdated Show resolved Hide resolved
@chapulina chapulina merged commit 1b9ad9a into ign-gazebo4 Mar 5, 2021
@chapulina chapulina deleted the iche033/scene3d_world_name branch March 5, 2021 02:49
adlarkin pushed a commit that referenced this pull request Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 dome Ignition Dome GUI Gazebo's graphical interface (not pure Ignition GUI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants