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

Suppress "file already closed" errors #3695

Merged
merged 1 commit into from
Feb 27, 2025
Merged

Conversation

wagoodman
Copy link
Contributor

Description

When scanning a sif image I see many lines showing file already closed

[0419] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/fused_conv/python/ops/_fused_conv2d_bias_activation_op.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0419] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/hadoop/_dataset_ops.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0419] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/ignite/_ignite_ops.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0419] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/image/python/ops/_distort_image_ops.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0419] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/image/python/ops/_image_ops.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0419] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/image/python/ops/_single_image_random_dot_stereograms.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0419] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/input_pipeline/python/ops/_input_pipeline_ops.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0419] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/kafka/_dataset_ops.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0420] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/kinesis/_dataset_ops.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0420] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/layers/python/ops/_sparse_feature_cross_op.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed
[0420] DEBUG unable to close file for location="/usr/local/lib/python3.6/dist-packages/tensorflow_core/contrib/libsvm/python/ops/_libsvm_ops.so": close /var/folders/c0/4y79v5k56bz8v34chcmvq2k80000gp/T/stereoscope-3851921087/-2735928573/sha256:01819dea9081a6007328ed242e79efa451cdca6573359cbf8d52eb83cdf4815b: file already closed

This is noisy and unnecessary information (since with stereoscope it is safe to close files more than once).

Type of change

  • Chore (improve the developer experience, fix a test flake, etc, without changing the visible behavior of Syft)

Checklist:

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

Sorry, something went wrong.

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman changed the title Suppress file already closed errors Suppress "file already closed" errors Feb 27, 2025
@wagoodman wagoodman enabled auto-merge (squash) February 27, 2025 21:44
@wagoodman wagoodman merged commit f6605a3 into main Feb 27, 2025
12 checks passed
@wagoodman wagoodman deleted the fix-file-already-closed branch February 27, 2025 21:52
douglasclarke pushed a commit to douglasclarke/syft that referenced this pull request Mar 3, 2025
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman added the bug Something isn't working label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants