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

PortAudio segmentation fault #1

Open
SaneBow opened this issue Jun 6, 2021 · 0 comments
Open

PortAudio segmentation fault #1

SaneBow opened this issue Jun 6, 2021 · 0 comments

Comments

@SaneBow
Copy link
Owner

SaneBow commented Jun 6, 2021

Hardware:
Respeaker 2mic Pi Hat, with settings:

defaults.pcm.aec.playback_hw.rate 48000
defaults.pcm.aec.capture_hw.rate 16000

Steps to reproduce:

  1. run NS: python3 ns.py -o aec_internal (PiDTLN)
  2. run KWS: python3 mic_streaming.py -i aec -m ../g-kws/my_quant.tflite (tflite-kws)
  3. NS script segmentation fault

After this any re-run of 1 will directly result in segmentation fault. If I set loopback_out device to dmix with a different period_size 1 can run normally again.

If replace step 2 with arecord -D aec then no problem.

There are a number of strange crashes that are likely to be caused by PortAudio (see 2c59e8a), so maybe drop PortAudio (sounddevice) and use ALSA API directly. I've played with pyalsaaudio before and it's not hard to use.

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