tlecomte / friture

Real-time audio visualizations (spectrum, spectrogram, etc.)
http://friture.org
GNU General Public License v3.0
937 stars 161 forks source link

Linux/PortAudio: Segmentation fault with PipeWire distributions #200

Closed safronov-nikolai closed 2 years ago

safronov-nikolai commented 3 years ago

Got from command line: ./friture-0.48-20210929.AppImage Segmentation fault (core dumped)

Ubuntu 21.10 PulseAudio (on PipeWire 0.3.39)

Program did work before [upgrading to Ubuntu 21.10 (from 20.04) + installing Pipewire]

borderomm commented 3 years ago

Have the same issue in debian and also since i moved to pipewire

$./friture-0.48-20210929.AppImage
[1]    213474 segmentation fault  ./friture-0.48-20210929.AppImage

dmesg dump:

[ 5853.326307] [UFW BLOCK] IN=enp0s31f6 OUT= MAC=ff:ff:ff:ff:ff:ff:7c:2e:bd:3d:36:d7:08:00 SRC=192.168.1.114 DST=255.255.255.255 LEN=57 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=9999 DPT=9999 LEN=37 
[ 5878.793310] [UFW BLOCK] IN=enp0s31f6 OUT= MAC=ff:ff:ff:ff:ff:ff:68:d7:9a:3b:32:bb:08:00 SRC=192.168.1.2 DST=255.255.255.255 LEN=32 TOS=0x00 PREC=0x00 TTL=64 ID=5582 DF PROTO=UDP SPT=10001 DPT=10001 LEN=12 
[ 5889.816933] snd_hda_codec_realtek ehdaudio0D0: didn't find PCM for DAI Digital Codec DAI
[ 5889.817742] snd_hda_codec_realtek ehdaudio0D0: ASoC: error at snd_soc_dai_startup on Digital Codec DAI: -22
[ 5889.818672]  Digital Playback and Capture: ASoC: BE open failed -22
[ 5889.819279]  HDA Digital: ASoC: failed to start some BEs -22
[ 5889.820124] snd_hda_codec_realtek ehdaudio0D0: didn't find PCM for DAI Digital Codec DAI
[ 5889.820902] snd_hda_codec_realtek ehdaudio0D0: ASoC: error at snd_soc_dai_startup on Digital Codec DAI: -22
[ 5889.821856]  Digital Playback and Capture: ASoC: BE open failed -22
[ 5889.822484]  HDA Digital: ASoC: failed to start some BEs -22
[ 5890.632742] friture[216085]: segfault at 6caa0b8 ip 00007fe2463931d5 sp 00007ffd34dd3940 error 4 in libxkbcommon-x11.so.0.0.0[7fe246390000+4000]
[ 5890.632748] Code: 84 ca 00 00 00 49 83 c5 01 4c 39 6c 24 10 0f 84 3c 02 00 00 48 8b 44 24 08 4c 21 e8 74 e7 49 8b 14 24 4c 8d 0c 85 00 00 00 00 <8b> 1c 82 85 db 75 ac 80 7c 24 1c 00 0f 84 93 00 00 00 41 8b 5c 24
tlecomte commented 3 years ago

Looks like this is fixed with a newer version of portaudio: https://github.com/PortAudio/portaudio/pull/504 I guess we'll need to rebuild the appImage with a build of portaudio from the tip of their master branch

Man-with-Arrow commented 2 years ago

Any progress on this? Sadly I can no longer use Friture, since Fedora uses Pipewire by default.

tlecomte commented 2 years ago

Let me sum up:

As far as I can tell, 2 things need to happen to fix this:

  1. find out how to build portaudio 19.7.0 in the build action (apt-get install libportaudio2 installs version 19.6.0, this is not enough)
  2. find out how python-sounddevice can be forced to load the portaudio lib included in the appImage (currently, even though we include the library in the image, sounddevice does not find it)
tlecomte commented 2 years ago

Dear all, I believe this is now fixed with #219, and the latest 0.49 release contains these changes. Your feedback will be appreciated!

tlecomte commented 2 years ago

I'm closing, but feel free to reopen if you believe it's not fixed. Thanks!