alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.99k stars 1.11k forks source link

Segmentation fault (core dumped) #100

Closed Iagodel closed 4 years ago

Iagodel commented 4 years ago

I had install all the dependences, I done step by step, but when I try to run with "python3 test_simple.py test.wav" just return "Segmentation fault (core dumped)" and nothing more.

Did I do something wrong? core

nshmyrev commented 4 years ago

I had install all the dependences, I done step by step

What exactly have you done? You need to provide more information. You can also run

 valgrind python3 test_simple.py test.wav

to get more information about the crash.

nshmyrev commented 4 years ago

@Iagodel feel free to reopen if you have additional information on the problem.

Lirein commented 4 years ago

I had this issue too. With help of debug and testing different methods, i resolve that an issue appears primary at virtualized systems with Intel MKL mathematical engine. To resolve this issue, you can rebuild Kaldi and then vosk-api with this compilation flags: ./configure --static --shared --mathlib=OPENBLAS --static-math=yes Otherway, you may start decoding with help of NvidiaCard, but not tested yet on my systems.

AghilasSini commented 3 years ago

Hello,

I am trying to run the vosk-api python wrap, but I got Segmentation fault (core dumped)

error_example_running

So let me give you some information about the machine configuration that I am using for runining this commande:

Here the message that I have when running the command: python3 setup.py install --user --single-version-externally-managed --root=/

vosk_python_v1

vosk_python_install

Thank you

AghilasSini commented 3 years ago

Hello,

I solved the issue by installing python3.8.

Sorry for the inconvenience

Thanks

eatyofood commented 3 years ago

Hello,

I solved the issue by installing python3.8.

Sorry for the inconvenience

Thanks

no thank you! i had the same issue.

russele7 commented 3 years ago

@nshmyrev Dear Nickolay, Thank you very much for wonderfull open source ASR solution. I am trying your examples test_ffmpeg.py / test_simple.py with big Russian model < vosk-model-ru-0.10.zip > and I got error < Segmentation fault (core dumped)> Report with valgrind is in attachment. I am using: • Ubuntu 20.04.1 LTS • Python 3.8.10 • vosk==0.3.31 • CPU - Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz P.S. small Russian model < vosk-model-small-ru-0.15> working succesfully without error. Could you please help and advice with resolving this issue. valgrind.txt Thank you in advance!

nshmyrev commented 3 years ago

I am trying your examples test_ffmpeg.py / test_simple.py with big Russian model < vosk-model-ru-0.10.zip > and I got error < Segmentation fault (core dumped)>

You need to create new issue and provide information about hardware