Skip to content

Fatal Python error: (pygame parachute) Segmentation Fault #2

@zipzit

Description

@zipzit

Seems like pretty impressive work. I've been attempting to get this to function. First tried to run this in PyCharm. No go. Tried again in simple command line interface via terminal. I'm getting the same basic errors in both.

I'm running in a Ubuntu 16.04 virtualbox environment using ALSA for sound. Host = Mac Laptop. I Did some tests via the PyAudio Documentation and Examples to verify functioning of microphone and audio output. I did the Play / Record / Wire examples. Input/output fully functional, albeit with a number of ALSA errors displayed.

My personal quick audio / microphone test works fine:
$ arecord -vv -fcd test.wav
$ aplay test.wav

Here are the errors I'm seeing. Not sure what's going on.

(waves) lbc@lbc-VirtualBox:~/waves$ python3 waves.py
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
Fatal Python error: (pygame parachute) Segmentation Fault

Current thread 0x00007ffa68d4e700 (most recent call first):
  File "/home/lbc/waves/lib/python3.5/site-packages/pyaudio.py", line 441 in __init__
  File "/home/lbc/waves/lib/python3.5/site-packages/pyaudio.py", line 750 in open
  File "/home/lbc/waves/stream.py", line 28 in open
  File "/home/lbc/waves/stream.py", line 17 in __init__
  File "waves.py", line 22 in __init__
  File "waves.py", line 192 in <module>
Aborted (core dumped)

I will say, many thanks to you for posting this repo. My goal is to better understand how Fast Fourier Transforms works... this repo seemed like a good place to start. Appreciate any help you might provide on why this fails for me...

and just for reference here is my PyAudio play.py test.

(waves) lbc@lbc-VirtualBox:~/waves$ python3 play.py test.wav
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:7963:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7963:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7963:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7963:(snd_pcm_recover) underrun occurred


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions