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
{{ message }}
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Logically, when a DataLoader is recycled, the _worker_pool should be recycled, and the terminate() of the _worker_pool function should be called immediately. However, it did not ...
Each time I kill a DataLoader, it leaves the worker processes dangling.
I guess it is a bug of python multiprocess.Pool. Anyway, I think we can patch it by explicitly call _worker_pool.terminate()
https://github.com/apache/incubator-mxnet/blob/f2dcd7c7b8676b55d912997fc3f9c62c55915307/python/mxnet/gluon/data/dataloader.py#L532-L533
Logically, when a
DataLoaderis recycled, the_worker_poolshould be recycled, and theterminate()of the_worker_poolfunction should be called immediately. However, it did not ...Each time I kill a
DataLoader, it leaves the worker processes dangling.I guess it is a bug of python
multiprocess.Pool. Anyway, I think we can patch it by explicitly call_worker_pool.terminate()Minimum code to reproduce the errors.
I recorded a video demo for this bug: https://drive.google.com/open?id=1q4CmU_F1vAtxoZ_KUmrIEfVRk3RsQfv8
Environment: today's mxnet from pip, python3.6 on p3