-
Notifications
You must be signed in to change notification settings - Fork 168
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: Return nullptr
if outside tracking geometry in TrackingGeometry::lowestTrackingVolume
#3481
Merged
kodiakhq
merged 27 commits into
acts-project:main
from
andiwand:fix-lowestTrackingVolume-allow-nullptr
Aug 31, 2024
Merged
fix: Return nullptr
if outside tracking geometry in TrackingGeometry::lowestTrackingVolume
#3481
kodiakhq
merged 27 commits into
acts-project:main
from
andiwand:fix-lowestTrackingVolume-allow-nullptr
Aug 31, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ry::lowestTrackingVolume`
this also fails the gx2f unit tests 🙃
I guess we are pushing out of the world volume @AJPfleger |
…ackingVolume-allow-nullptr
github-actions
bot
added
Infrastructure
Changes to build tools, continous integration, ...
Changes Performance
labels
Aug 6, 2024
AJPfleger
reviewed
Aug 6, 2024
AJPfleger
previously approved these changes
Aug 6, 2024
acts-project-service
added
Breaks Athena build
This PR breaks the Athena build
Fails Athena tests
This PR causes a failure in the Athena tests
labels
Aug 6, 2024
Looks like Athena is also relying on the faulty behavior |
…ackingVolume-allow-nullptr
…/acts into fix-lowestTrackingVolume-allow-nullptr
…ackingVolume-allow-nullptr
kodiakhq bot
pushed a commit
that referenced
this pull request
Aug 31, 2024
This does not play nice with #3481 and I think the initial assumption changed. As long as the start surface is not part of the tracking geometry the navigator will decide on the volume by looking up through the tracking geometry. Change of volume would only be a problem if we start on a surface from the tracking geometry outside its bounds.
andiwand
removed
the
Fails Athena tests
This PR causes a failure in the Athena tests
label
Aug 31, 2024
…ndiwand/acts into fix-lowestTrackingVolume-allow-nullptr
acts-project-service
added
the
Fails Athena tests
This PR causes a failure in the Athena tests
label
Aug 31, 2024
AJPfleger
approved these changes
Aug 31, 2024
Quality Gate passedIssues Measures |
kodiakhq bot
pushed a commit
that referenced
this pull request
Sep 1, 2024
…3442) I think this is one of the big navigation pitfalls. If we end up in the wrong volume the navigation is practically lost. This is too expensive to check in production so I opted for an `assert`. Not sure if that is a great solution since users might try to measure performance with non release build by accident. But that was the only way I could think of. blocked by - #3521 - #3481
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Changes Performance
Component - Core
Affects the Core module
Fails Athena tests
This PR causes a failure in the Athena tests
Infrastructure
Changes to build tools, continous integration, ...
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.
Currently
TrackingGeometry::lowestTrackingVolume
will always return at least the world volume even though the given position is not inside the world volume. In this PR I change the behavior to returnnullptr
in case we are outside the tracking geometry.Same is done for
TrackingVolume::lowestTrackingVolume
. The rest are necessary fixes and downstream changes to make this work.blocked by