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

Reduce pipeline use-after-free errors #1447

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

Juniormunk
Copy link
Contributor

Always check to see if the pipeline has changed while we were grabbing the frame and if it was, skip the pipeline run.

@Juniormunk Juniormunk requested a review from a team as a code owner October 6, 2024 22:13
@mcm001
Copy link
Contributor

mcm001 commented Oct 7, 2024

Really we need to nuke all this use after free cruft I added and replace it with a proper thread model and queue for incoming messages. That said, probably doesn't hurt to send this.

Copy link
Contributor

@Alextopher Alextopher left a comment

Choose a reason for hiding this comment

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

This isn't fixing the underlying race condition, just making it more unlikely to occur? I approve!

@Juniormunk
Copy link
Contributor Author

Correct. I talked with Matt and will attempt to fix the issue at its root. It may take a while so why not just push this... Yolo. Basically, the UI adds to a list then the camera applies the changes in said list when it gets around to it.

@Alextopher Alextopher merged commit c4b273e into PhotonVision:master Oct 7, 2024
31 checks passed
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.

3 participants