Skip to content

Fix crash when hovering the cursor in heightmap.sdf #536

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

Merged

Conversation

darksylinc
Copy link
Contributor

Summary

Hovering the cursor while in the ign gui when heightmap.sdf is opened
would cause a shader compiler error.

The triggering condition was having a directional light without shadow
nodes.

This error is from upstream
OGRECave/ogre-next@e40bc53

Signed-off-by: Matias N. Goldberg [email protected]

🦟 Bug fix

No ticket was assigned for this bug

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 and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Hovering the cursor while in the ign gui when heightmap.sdf is opened
would cause a shader compiler error.

The triggering condition was having a directional light without shadow
nodes.

This error is from upstream
OGRECave/ogre-next@e40bc53

Signed-off-by: Matias N. Goldberg <[email protected]>
@darksylinc darksylinc requested a review from iche033 as a code owner January 15, 2022 23:35
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Jan 15, 2022
@codecov
Copy link

codecov bot commented Jan 16, 2022

Codecov Report

Merging #536 (01af4ca) into ign-rendering6 (c10c303) will decrease coverage by 0.01%.
The diff coverage is 41.17%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           ign-rendering6     #536      +/-   ##
==================================================
- Coverage           54.38%   54.37%   -0.02%     
==================================================
  Files                 198      198              
  Lines               20087    20096       +9     
==================================================
+ Hits                10925    10927       +2     
- Misses               9162     9169       +7     
Impacted Files Coverage Δ
ogre2/src/Ogre2Material.cc 70.88% <0.00%> (-0.29%) ⬇️
ogre2/src/Ogre2MaterialSwitcher.cc 84.41% <53.84%> (-5.59%) ⬇️

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 73b9fa1...01af4ca. Read the comment docs.

@chapulina chapulina added the bug Something isn't working label Jan 18, 2022
Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

hmm I don't get the shader compile error when I ran heightmap.sdf and hover the mouse over the terrain. Changes look fine though.

@iche033 iche033 enabled auto-merge (squash) January 18, 2022 20:00
@iche033 iche033 merged commit 708a654 into gazebosim:ign-rendering6 Jan 18, 2022
@darksylinc
Copy link
Contributor Author

hmm I don't get the shader compile error when I ran heightmap.sdf and hover the mouse over the terrain

Shortly after I submitted the PR I remembered the terrain shadows on objects aren't working because the listener is being accidentally overriden (we discussed this, has a simple solution for Fortress) so it doesn't crash because it's not working.

A follow up PR can fix that though

@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-03-01-citadel-edifice-fortress/1313/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants