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

resource_tracker UserWarning on crunch executable processing with multi-file requests (parallel execution) #100

Open
chrissimpkins opened this issue Jun 17, 2022 · 3 comments · May be fixed by #102

Comments

@chrissimpkins
Copy link
Owner

chrissimpkins commented Jun 17, 2022

Describe the bug

Python raises a multiprocessing std library UserWarning warning in std error that states something along the lines of:

"...UserWarning: resource_tracker: There appear to be 16 leaked shared_memory objects to clean up at shutdown..."

This is a known issue in Py3.8+ versions of Python multiprocessing and does not appear to be an actual error in downstream shared memory object source.

https://bugs.python.org/issue39959
https://bugs.python.org/issue38119

Possible fix in:

python/cpython#30617

To Reproduce
Install the crunch dependencies and executable on macOS, run the crunch executable with multiple png files simultaneously so that parallel processing is triggered.

Expected behavior
No warning message if this is not an issue that we can address in downstream source.

@chrissimpkins
Copy link
Owner Author

chrissimpkins commented Jun 17, 2022

I think that we just ignore the user warning until this is addressed in the standard library. See below

@chrissimpkins
Copy link
Owner Author

This appears that it may have been fixed in python/cpython#30617

@chrissimpkins
Copy link
Owner Author

We can address it in the Python source here with the approach described in https://stackoverflow.com/a/25558333/2848172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant