-
Notifications
You must be signed in to change notification settings - Fork 58
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
Always close thread-specific SQLite connections #1222
Always close thread-specific SQLite connections #1222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mrvisscher,
that's fantastic work! Really happy that you found such an elegant solution for it.
I suggest to also include 3.10
for the tests and the install canary:
activity-browser/.github/workflows/main.yaml
Lines 32 to 36 in ebbc322
strategy: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] python-version: ['3.8', '3.9', '3.11'] activity-browser/.github/workflows/install-canary.yaml
Lines 14 to 18 in ebbc322
strategy: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] python-version: ['3.8', '3.9', '3.11']
Other than that LGTM 👍
Thanks for your comments and review @haasad, happy you're happy! 😄 |
Fixes an issue where thread-specific SQLite database connections persisted even after said thread was finished, resulting in undeletable projects and segmentation faults. Now, by using
run_safely()
instead ofrun()
within a reimplemented ABThread, all connections are closed after a thread finishes work.Probably interesting to you @haasad , as this relates to #1124 and enables us to use Python 3.10 as well.
Update the CopyDatabaseThread as well
closes AB crashes upon bw2package import #1078
Checklist
bug
,feature
,ui
,change
,documentation
,breaking
,ci
as they show up in the changelog.