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

Bugfix for trigger matching #92

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Bugfix for trigger matching #92

merged 1 commit into from
Nov 19, 2024

Conversation

noeroy
Copy link
Contributor

@noeroy noeroy commented Nov 15, 2024

When 3 trigger streams are used as input, there seem to be a memory issue in the trigger seed.

I assume it's because the seed was updated at each time the trigGroup was updated with only two streams compared to now where we can still have the same seed while the trigGroup is updated.

Joined 2 images before and after the change with a cout to show the trigger seed (or trigGroup.front().second) time + the number of matched triggers.

Before the fix, we had some crazy times for the seed and additional 19 triggers due to that issue that is fixed by that commit. (see attached fix_trigger.pdf )

@noeroy noeroy requested a review from chenel November 15, 2024 21:31
Copy link
Collaborator

@chenel chenel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. This seems to be a problem with the trigSeed reference suddenly not referring to anything and having junk memory in it. I can't see how based on the code; trigGroup gets updated, but only at the back of the dequeue, so the front should still be ok. Oh well, if this works empirically and fixes the memory stomping, then let's do it.

@noeroy noeroy merged commit 2d5b9dd into main Nov 19, 2024
@noeroy noeroy deleted the bugfix/TriggerMatching branch November 19, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants