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

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) #825

Open
thisisALPINE opened this issue Jun 23, 2024 · 0 comments

Comments

@thisisALPINE
Copy link

thisisALPINE commented Jun 23, 2024

I'm trying to run this snippet code from the README with Python3.10:

TOKEN = "xyz"
device = "cpu"
audio_file = "hawk.wav"
batch_size = 10 # reduce if low on GPU mem
compute_type = "int8" # change to "int8" if low on GPU mem (may reduce accuracy)
model = whisperx.load_model("large-v2", device, compute_type=compute_type, language="en")
audio = whisperx.load_audio(audio_file)
result = model.transcribe(audio, batch_size=batch_size, language="en")
print(result["segments"]) # before alignment

model_a, metadata = whisperx.load_align_model(language_code=result["language"], device=device)
result = whisperx.align(result["segments"], model_a, metadata, audio, device, return_char_alignments=False)

print(result["segments"]) # after alignment

diarize_model = whisperx.DiarizationPipeline(use_auth_token=TOKEN, device=device)

diarize_segments = diarize_model(audio)

result = whisperx.assign_word_speakers(diarize_segments, result)
print(diarize_segments)
print(result["segments"]) # segments are now assigned speaker IDs

The execution stops and returns exit code 139. This is the output:

Found Intel OpenMP ('libiomp') and LLVM OpenMP ('libomp') loaded at
the same time. Both libraries are known to be incompatible and this
can cause random crashes or deadlocks on Linux when loaded in the
same Python program.
Using threadpoolctl may cause crashes or deadlocks. For more
information and possible workarounds, please see
    https://github.com/joblib/threadpoolctl/blob/master/multiple_openmp.md

  warnings.warn(msg, RuntimeWarning)
Lightning automatically upgraded your loaded checkpoint from v1.5.4 to v2.3.0. To apply the upgrade to your files permanently, run `python -m pytorch_lightning.utilities.upgrade_checkpoint ../../.cache/torch/whisperx-vad-segmentation.bin`
Model was trained with pyannote.audio 0.0.1, yours is 3.1.1. Bad things might happen unless you revert pyannote.audio to 0.x.
Model was trained with torch 1.10.0+cu102, yours is 2.0.0. Bad things might happen unless you revert torch to 1.x.
[{'text': "Just having a good time", 'start': 0.009, 'end': 12.602}]

[1]    86035 segmentation fault  env/bin/python3 main.py
/usr/local/Cellar/python@3.11/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/resource_tracker.py:224: 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 '

Any idea of what might be wrong here? This is my pip packages configuration.

Package                 Version
----------------------- ------------
aiohttp                 3.9.5
aiosignal               1.3.1
alembic                 1.13.1
antlr4-python3-runtime  4.9.3
asteroid-filterbanks    0.4.0
attrs                   23.2.0
audioread               3.0.1
av                      11.0.0
certifi                 2024.6.2
cffi                    1.16.0
charset-normalizer      3.3.2
click                   8.1.7
coloredlogs             15.0.1
colorlog                6.8.2
contourpy               1.2.1
ctranslate2             4.3.1
cycler                  0.12.1
decorator               5.1.1
docopt                  0.6.2
einops                  0.8.0
faster-whisper          1.0.0
filelock                3.15.4
flatbuffers             24.3.25
fonttools               4.53.0
frozenlist              1.4.1
fsspec                  2024.6.0
greenlet                3.0.3
huggingface-hub         0.23.4
humanfriendly           10.0
HyperPyYAML             1.2.2
idna                    3.7
Jinja2                  3.1.4
joblib                  1.4.2
julius                  0.2.7
kiwisolver              1.4.5
lazy_loader             0.4
librosa                 0.10.2.post1
lightning               2.3.0
lightning-utilities     0.11.2
llvmlite                0.43.0
Mako                    1.3.5
markdown-it-py          3.0.0
MarkupSafe              2.1.5
matplotlib              3.9.0
mdurl                   0.1.2
mpmath                  1.3.0
msgpack                 1.0.8
multidict               6.0.5
networkx                3.3
nltk                    3.8.1
numba                   0.60.0
numpy                   1.26.4
omegaconf               2.3.0
onnxruntime             1.18.0
optuna                  3.6.1
packaging               24.1
pandas                  2.2.2
pillow                  10.3.0
pip                     23.0.1
platformdirs            4.2.2
pooch                   1.8.2
primePy                 1.3
protobuf                5.27.1
pyannote.audio          3.1.1
pyannote.core           5.0.0
pyannote.database       5.1.0
pyannote.metrics        3.2.1
pyannote.pipeline       3.0.1
pycparser               2.22
Pygments                2.18.0
pyparsing               3.1.2
python-dateutil         2.9.0.post0
pytorch-lightning       2.3.0
pytorch-metric-learning 2.5.0
pytz                    2024.1
PyYAML                  6.0.1
regex                   2024.5.15
requests                2.32.3
rich                    13.7.1
ruamel.yaml             0.18.6
ruamel.yaml.clib        0.2.8
safetensors             0.4.3
scikit-learn            1.5.0
scipy                   1.13.1
semver                  3.0.2
sentencepiece           0.2.0
setuptools              67.4.0
shellingham             1.5.4
six                     1.16.0
sortedcontainers        2.4.0
soundfile               0.12.1
soxr                    0.3.7
speechbrain             1.0.0
SQLAlchemy              2.0.31
sympy                   1.12.1
tabulate                0.9.0
tensorboardX            2.6.2.2
threadpoolctl           3.5.0
tokenizers              0.15.2
torch                   2.0.0
torch-audiomentations   0.11.1
torch-pitch-shift       1.2.4
torchaudio              2.0.1
torchmetrics            1.4.0.post0
torchvision             0.15.1
tqdm                    4.66.4
transformers            4.39.3
typer                   0.12.3
typing_extensions       4.12.2
tzdata                  2024.1
urllib3                 2.2.2
wheel                   0.38.4
whisperx                3.1.1
yarl                    1.9.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant