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

[mini] fix bug if next state was outside #323

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

SeverinDiederichs
Copy link
Collaborator

If a step was recorded at the edge of the world such that the NextState would be "outside" the reconstruction algorithm would try to access a outside volume that doesn't exist in the lookup table. This would lead to a segfault.

This PR adds a safeguard against that case. The scenario is unrealistic in a real setup, but should be avoided for stability (and the error was observed in some small tests)

@SeverinDiederichs SeverinDiederichs added the bug Type: Something isn't working label Dec 5, 2024
@phsft-bot
Copy link

Can one of the admins verify this patch?

@agheata agheata merged commit 1f11a00 into apt-sim:master Dec 6, 2024
2 checks passed
@SeverinDiederichs SeverinDiederichs deleted the reconstruction_outside branch December 6, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants