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

Fix deadlocks when exporting #7449

Closed
wants to merge 3 commits into from
Closed

Conversation

sakertooth
Copy link
Contributor

Should fix some bugs with export.

  • Fixes the "export bomb" bug, where when exporting an empty project, the bug makes it so that the ProjectRenderer thread keeps rendering silence as fast as possible, eliminating the space on the hard drive in seconds.

  • Should fix an export deadlock when exporting an empty project when it reaches 100%

These classes probably need more thorough refactoring though.

@sakertooth sakertooth changed the title Fix export Fix few bugs when exporting Aug 12, 2024
@sakertooth sakertooth marked this pull request as draft August 12, 2024 16:15
@sakertooth sakertooth changed the title Fix few bugs when exporting Fix deadlocks when exporting Aug 12, 2024
A potential infinite wait can happen when closing the FIFO thread if m_stopped is set to true and the device thread never reads the null buffer that signals that the FIFO thread is closing.
@sakertooth sakertooth marked this pull request as ready for review August 12, 2024 19:27
@sakertooth
Copy link
Contributor Author

Probably will separate this PR because some of the export fixes may require some larger refactoring.

@sakertooth sakertooth closed this Aug 17, 2024
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.

1 participant