You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the code should be checked for other instances of this pattern. Also, DefaultProject should perhaps cache resource managers rather than creating them anew on each request.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
The following code in
FileResourceManager
leaves an open connection to the directory:It was expected that the
collect
terminal operation would close the connection... it it seems it does not.This causes real-world problems when running scripts for many images, e.g. see https://forum.image.sc/t/error-too-many-open-files/41628
To Reproduce
Steps to reproduce the behavior:
loadPixelClassifier('Anything')
Activity monitor
orlsof
Each time the script is called, the directory containing the pixel classifiers is left open.
Expected behavior
Directories aren't left open unnecessarily.
Desktop (please complete the following information):
Additional context
The error can be easily fixed by using the following code instead:
However, the code should be checked for other instances of this pattern. Also,
DefaultProject
should perhaps cache resource managers rather than creating them anew on each request.The text was updated successfully, but these errors were encountered: