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 bioformats keeping file handles open #1492

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

manthey
Copy link
Member

@manthey manthey commented Apr 1, 2024

When bioformats tries to open a zip file, it opens the file once per internal file. If it fails to find a file that can be opened within the zip, it throws an error and leaves all of the file handles open. By dividing the reader into more steps, we can ask to open an empty file, which somehow releases the file handles. This happens with non-zip files, though it is less problematic.

When bioformats tries to open a zip file, it opens the file once per
internal file.  If it fails to find a file that can be opened within the
zip, it throws an error and leaves all of the file handles open.  By
dividing the reader into more steps, we can ask to open an empty file,
which somehow releases the file handles.
@manthey manthey force-pushed the bioformats-handle-release branch from feb9a9f to 15b938e Compare April 1, 2024 14:37
@manthey manthey merged commit 1b7bb4c into master Apr 1, 2024
16 checks passed
@manthey manthey deleted the bioformats-handle-release branch April 1, 2024 15:03
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