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

sementation fault? #56

Closed
ttjpleizier opened this issue Mar 27, 2021 · 8 comments
Closed

sementation fault? #56

ttjpleizier opened this issue Mar 27, 2021 · 8 comments

Comments

@ttjpleizier
Copy link

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 20.04
  • TensorFlow version: 2.4.1
  • Python version: 3.8.5
  • Running on GPU or CPU: CPU (AMD Ryzen 5 3600)
  • output of command nvidia-smi (if GPU is used)
  • CUDA/cuDNN version (if GPU is used):
  • Using Docker: no

Tried to install both ways: pip install and building from source

Install worked.
ina-speech-segmenter.py help produces the correct help text.

Building from source: python setup.py test failed;
Pip install version: running a .mp3 failed with the same error message:

running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing inaSpeechSegmenter.egg-info/PKG-INFO
writing dependency_links to inaSpeechSegmenter.egg-info/dependency_links.txt
writing requirements to inaSpeechSegmenter.egg-info/requires.txt
writing top-level names to inaSpeechSegmenter.egg-info/top_level.txt
reading manifest file 'inaSpeechSegmenter.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'scripts'
writing manifest file 'inaSpeechSegmenter.egg-info/SOURCES.txt'
running build_ext
2021-03-27 16:26:01.207346: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-03-27 16:26:01.207367: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Segmentation fault (core dumped)

@r-uro
Copy link
Contributor

r-uro commented Mar 29, 2021

Hi,

I have not been able to reproduce this error, but it seems you're using tensorflow-gpu to run on a CPU. It should fall back automatically and work on a CPU, but maybe you can try using tensorflow instead of tensorflow-gpu ?

@ttjpleizier
Copy link
Author

Thanks for the response! I've tried both tensorflow and tensorflow-gpu, resulting in the same warning-message and finally the same 'segmentation fault'. Is it possible that there is a compatibility problem with Python 3.8.5 or with another pip package?

I was able to run the program in the Windows Linux Subsystem, but apparently the 'real' Linux doesn't process the program as it should.

@ttjpleizier
Copy link
Author

ttjpleizier commented Mar 31, 2021 via email

@ttjpleizier
Copy link
Author

Still no solution found. Within the VirtualEnv I tried using gdb with the following command:

gdb --args python inaSpeechEnv/bin/ina_speech_segmenter.py -i testfiles/2020-09-27-09-20-024.mp3 -o testfiles/

It stops running with the message:

Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x000000000000000a in ?? ()

Next, I tried the bt-command within gdb, which resulted in the following:

#201 0x000000000067d6db in PyRun_FileExFlags ()
#202 0x000000000067da6e in PyRun_SimpleFileExFlags ()
#203 0x00000000006b6132 in Py_RunMain ()
#204 0x00000000006b64bd in Py_BytesMain ()
#205 0x00007ffff7de10b3 in __libc_start_main (main=0x4eec80

, argc=6, argv=0x7fffffffdde8, init=, fini=,
rtld_fini=, stack_end=0x7fffffffddd8) at ../csu/libc-start.c:308
#206 0x00000000005f927e in _start ()
(gdb) Quit

I do hope that someone has a suggestion to get inaSpeechSegmenter running on my Ubuntu 20.04, AMD Ryzen 5, 16GB RAM.

@ttjpleizier
Copy link
Author

The issue has been solved.

The virtualenv did not work, a setup by using anaconda however, did.

Further, a new issue emerged: the program aborted after a few seconds and produced an 'Assertion error'.

Since inaSpeech has been updated 2 months ago, I found references to python 3.8 in the code. A new conda environment with 3.8 (and not 3.6) did work. Perhaps someone can look into this and perhaps update the Readme.md that python 3.8 is required?

Thanks for the program!

@DavidDoukhan
Copy link
Member

Dear @ttjpleizier ,

I managed to reproduce your issue at it seems to be related to the update of one of the dependencies of inaSpeechSegmenter.

I did few fixes and managed to make it work again.
It has been tested using python 3.6.9 and python 3.8.5.
It is supposed to work well for any python >= 3.6 .

Could you clone the latest version available on github and let me know if your issue is now solved ?

I'm looking forward to hearing from you before updating the pip repository as well.

Kind regards, Sorry for the inconvenience, and thanks a lot for this feedback !

@ttjpleizier
Copy link
Author

Dear @DavidDoukhan,

Thank you very much for the fix. I cloned the repo and ran python setup.py test. 14 tests in 22.572s. A test mp3 (1 hour of audio) was processed between 17:19:31.22 and 17:20:12.40. The fix was succesful!

Best, Theo

@DavidDoukhan
Copy link
Member

Thanks for this fast feedback !
Kind regards,

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

3 participants