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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera ShaderSelection: avoid seg-fault #720

Merged
merged 4 commits into from
Sep 14, 2022

Conversation

scpeters
Copy link
Member

馃 Bug fix

Improves error reporting for failing test

Summary

A test was re-enabled for macOS in #703, but it seems to still fail on certain machines (see comments below #703 (comment)).

The test currently seg-faults after an EXPECT_* statement is used to check for a nullptr and the pointer is later dereferenced. Wrap the subsequent check in an if statement to allow the rest of the test to continue instead of using ASSERT_*. This doesn't fix the underlying issue but it should allow the test to proceed a bit farther and provide more useful failure reporting.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • 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.

The test currently seg-faults after an EXPECT_*
statement is used to check for a nullptr and
the pointer is later dereferenced. Wrap the
subsequent check in an if statement to allow
the rest of the test to continue instead of
using ASSERT_*.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@osrf-triage osrf-triage added this to Inbox in Core development Sep 13, 2022
@github-actions github-actions bot added the 馃尡 garden Ignition Garden label Sep 13, 2022
@codecov
Copy link

codecov bot commented Sep 13, 2022

Codecov Report

Merging #720 (46b576e) into gz-rendering7 (c8dddd6) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff               @@
##           gz-rendering7     #720   +/-   ##
==============================================
  Coverage          74.14%   74.14%           
==============================================
  Files                164      164           
  Lines              14351    14351           
==============================================
  Hits               10641    10641           
  Misses              3710     3710           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@scpeters
Copy link
Member Author

should we re-disable the test on macOS CI?

@iche033
Copy link
Contributor

iche033 commented Sep 13, 2022

should we re-disable the test on macOS CI?

+1 to disabling the test for now.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters scpeters marked this pull request as ready for review September 13, 2022 22:21
@scpeters
Copy link
Member Author

should we re-disable the test on macOS CI?

+1 to disabling the test for now.

62fd722

Core development automation moved this from Inbox to In review Sep 14, 2022
@ahcorde ahcorde merged commit ff5d75e into gz-rendering7 Sep 14, 2022
Core development automation moved this from In review to Done Sep 14, 2022
@ahcorde ahcorde deleted the scpeters/metal_avoid_segfault branch September 14, 2022 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃尡 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants