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

state_agg interpolation hits an error if the interpolated first state doesn't already exist in the agg #464

Closed
WireBaron opened this issue Jul 8, 2022 · 0 comments · Fixed by #465
Assignees
Labels
bug Something isn't working

Comments

@WireBaron
Copy link
Contributor

Describe the bug
When creating an interpolated state, we will add a new duration object to handle the initial state if one doesn't already exist. Unfortunately there's an off by one error in the object we create, where it's computing the state_end value. This results in the duration object dropping the last character, which causes it to fail to match the string for the first state when doing the interpolation.

This shows up as the following error:
ERROR: assertion failed: first_state < durations.len() && last_state < durations.len()
CONTEXT: extension/src/state_aggregate.rs:92:13

@WireBaron WireBaron added the bug Something isn't working label Jul 8, 2022
@WireBaron WireBaron self-assigned this Jul 8, 2022
@bors bors bot closed this as completed in c7a5dd0 Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant