huggingface / neuralcoref

✨Fast Coreference Resolution in spaCy with Neural Networks
https://huggingface.co/coref/
MIT License
2.84k stars 474 forks source link

UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d ' #303

Closed brucewlee closed 3 years ago

brucewlee commented 3 years ago

I keep on getting 1 leaked semaphore objects error.

Full error message (faulthandler enabled):

Fatal Python error: Segmentation fault

Thread 0x000070000e902000 (most recent call first):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 306 in wait
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 558 in wait
  File "/Users/bruce/Research&Project/NLP/LingFeat/venv/lib/python3.8/site-packages/tqdm/_monitor.py", line 60 in run
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 890 in _bootstrap

Current thread 0x000000011e2d1e00 (most recent call first):
  File "/Users/.../venv/lib/python3.8/site-packages/spacy/language.py", line 445 in __call__
  File "/Users/...", line 56 in __init__
  File "test.py", line 9 in extract_features
  File "test.py", line 18 in iterator
  File "test.py", line 38 in <module>
[1]    32955 segmentation fault  python test.py
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown          
  warnings.warn('resource_tracker: There appear to be %d '

To reproduce the issue:

  1. install NeuralCoref from repo
  2. delete
  3. install NeuralCoref through pip

I'm running:

  1. Python 3.8.3
  2. spaCy 2.3.5 (with en_core_web_md)
  3. torch 1.8.0
  4. neuralcoref 4.0

What I've tried:

  1. uninstall spacy & neuralcoref and install again
  2. delete venv and install everything again
c00lcoder commented 2 years ago

I see this is closed - did you ever find a solution?

SQTang8669 commented 1 year ago

same issue here

meiling-fdu commented 1 year ago

same issue here