-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fix crash on material switcher when there are points #586
Conversation
Signed-off-by: Louise Poubel <[email protected]>
Hi! Your fix should revert code to the old behavior thus any "unintended consequence" is basically just the same as before my PR. What I would be interested is in knowing how to repro, to identify & understand why it is happening in the first place. |
Codecov Report
@@ Coverage Diff @@
## main #586 +/- ##
=======================================
Coverage 53.54% 53.55%
=======================================
Files 214 214
Lines 21304 21304
=======================================
+ Hits 11408 11409 +1
+ Misses 9896 9895 -1
Continue to review full report at Codecov.
|
I think I was able to reproduce this in the camera integration test. I updated the The shader used for point rendering is this one here: |
I don't understand why that would be the case. All this PR checks is for a null pointer access. My guess is that we're trying to get the material for the points but there's none. If one thing, I think this PR means that points aren't handled properly on sensor passes, but it shouldn't affect any other items which do have materials. So the current choice is either not to handle points well on sensors, or a crash. I'd like to get this PR in ASAP to fix the crash. Thanks for the reproduction steps, @iche033 . |
The problem is that the point cloud low level material is manually created here https://github.com/ignitionrobotics/ign-rendering/blob/ign-rendering6/ogre2/src/Ogre2LidarVisual.cc#L171 and so does not have a I'll get this PR in first to fix the crash. |
oh just saw #593. I'll take a look at that PR |
Superseded by #593 |
🦟 Bug fix
Summary
Since #578, simulations where we use point markers are crashing when the user clicks on the scene. I traced it back to a null pointer access. This fixes the issue for me, but I don't know if there are unintended consequences.
CC @darksylinc
Checklist
codecheck
passed (See contributing)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.🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸