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 model downloader crash on shutdown #155

Merged

Conversation

palana
Copy link
Contributor

@palana palana commented Aug 15, 2024

download_thread and download_worker are automatically being deleted when they were finished, leaving dangling pointers; accessing those pointers from the destructor of ModelDownloader causes OBS to crash for me on shutdown (or alternatively hang on shutdown with no visible windows)

Additionally, ModelDownloader was only being deleted at shutdown; with this it's instead deleted after it's closed

Copy link
Collaborator

@royshil royshil left a comment

Choose a reason for hiding this comment

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

wonderful!

@royshil royshil merged commit 12fa9dc into locaal-ai:master Aug 20, 2024
9 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.

2 participants