You are not logged in.

#1 2019-07-01 20:47:26

Mixu
Member
Registered: 2012-12-03
Posts: 21

Pulseaudio crashes after some time

Hello people!

I have been using pulseaudio for quite some time, and now (maybe after an update?) crashes after some time, some times even if no audio is played.

I have changed client.conf, daemon.conf, default.pa files like they were on default, reinstalled pulseaudio several times, and it still keeps crashing.

My setup is the following, I have an NVidia card with an HDMI output, motherboard's audio is disabled, and an USB audio interface where I connect the speakers and my bass for playing using loopback module.

 aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: M20 [MIYO USB Audio 2.0], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Usually the crash is like this one, but when removing pulseaudio's customizations there's no warnings.

$ pulseaudio
W: [pulseaudio] module-equalizer-sink.c: module-equalizer-sink is currently unsupported, and can sometimes cause PulseAudio crashes, increased latency or audible artifacts.
W: [pulseaudio] module-equalizer-sink.c: If you're facing audio problems, try unloading this module as a potential workaround.
W: [pulseaudio] resampler.c: Support for resampler 'src-sinc-best-quality' not compiled in, reverting to 'auto'.
W: [pulseaudio] module-loopback.c: Configured latency of 5.00 ms is smaller than minimum latency, using minimum instead
W: [pulseaudio] module-loopback.c: Cannot set requested sink latency of 2.25 ms, adjusting to 2.50 ms
W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 2.25 ms, adjusting to 2.50 ms
E: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
W: [pulseaudio] module-loopback.c: Sink minimum latency increased to 4.00 ms
W: [pulseaudio] module-loopback.c: Configured latency of 5.00 ms is smaller than minimum latency, using minimum instead
W: [pulseaudio] module-loopback.c: Sink minimum latency increased to 8.00 ms
W: [pulseaudio] module-loopback.c: Configured latency of 5.00 ms is smaller than minimum latency, using minimum instead
W: [pulseaudio] module-loopback.c: Sink minimum latency increased to 16.00 ms
W: [pulseaudio] module-loopback.c: Configured latency of 5.00 ms is smaller than minimum latency, using minimum instead
E: [alsa-sink-USB Audio] speex.c: Assertion 'speex_resampler_set_rate(state, r->i_ss.rate, r->o_ss.rate) == 0' failed at pulsecore/resampler/speex.c:125, function speex_update_rates(). Aborting.
Killed

Now I was trying to configure ALSA and pulseadio at the same time and just got this message:

E: [alsa-sink-USB Audio] alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write.
E: [alsa-sink-USB Audio] alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_usb_audio'. Please report this issue to the ALSA developers.
E: [alsa-sink-USB Audio] alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.

When it crashes, on dmesg's output I can see the following:

[25253.651234] audit: type=1701 audit(1562013585.491:59): auid=1000 uid=1000 gid=100 ses=1 pid=714 comm=616C73612D73696E6B2D5553422041 exe="/usr/bin/pulseaudio" sig=6 res=1
[25253.658058] audit: type=1130 audit(1562013585.498:60): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@1-1512-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[25259.264912] audit: type=1131 audit(1562013591.104:61): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@1-1512-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

If I play music with Spotify or some youtube video on Chromium, it crashes after a minute more or less.

Do you have any advice?
I've been trying lots of things but none is working.

Thanks in advance!

Last edited by Mixu (2019-07-01 20:49:30)

Offline

#2 2019-07-01 21:03:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,729

Re: Pulseaudio crashes after some time

Not sure what 'auto' changes to, but have you tried setting an actually valid resampler like speex-float-5 ? still a crash here is weird, can you post a back trace of these: https://wiki.archlinux.org/index.php/Co … _core_dump

FWIW can you post these configurations and maybe

pacmd list-cards
pacmd list-sinks
pacmd list-sources

FWIW if it's really 'just' an assert in libspeex (which indeed did get an update recently so you might run into an honest regression here) you could check whether e.g. soxr-mq behaves better (or downgrade speexdsp to verify a regression there)

Last edited by V1del (2019-07-01 21:04:45)

Offline

#3 2019-07-01 21:17:56

Mixu
Member
Registered: 2012-12-03
Posts: 21

Re: Pulseaudio crashes after some time

V1del wrote:

Not sure what 'auto' changes to, but have you tried setting an actually valid resampler like speex-float-5 ? still a crash here is weird, can you post a back trace of these: https://wiki.archlinux.org/index.php/Co … _core_dump

FWIW can you post these configurations and maybe

pacmd list-cards
pacmd list-sinks
pacmd list-sources

FWIW if it's really 'just' an assert in libspeex (which indeed did get an update recently so you might run into an honest regression here) you could check whether e.g. soxr-mq behaves better (or downgrade speexdsp to verify a regression there)

Thanks!

Here it is the output of commands:

 pacmd list-cards
2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_01_00.1>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "1"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xf3080000 irq 17"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "10f1"
		device.product.name = "GP106 High Definition Audio Controller"
		device.string = "1"
		device.description = "GP106 High Definition Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.usb-MIYO_MIYO_USB_Audio_2.0-00>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "MIYO USB Audio 2.0"
		alsa.long_card_name = "MIYO MIYO USB Audio 2.0 at usb-0000:00:14.0-10.3.3, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:10.3.3:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb2/2-10/2-10.3/2-10.3.3/2-10.3.3:1.0/sound/card0"
		udev.id = "usb-MIYO_MIYO_USB_Audio_2.0-00"
		device.bus = "usb"
		device.vendor.id = "20b1"
		device.vendor.name = "XMOS Ltd"
		device.product.id = "305f"
		device.product.name = "MIYO USB Audio 2.0"
		device.serial = "MIYO_MIYO_USB_Audio_2.0"
		device.string = "0"
		device.description = "MIYO USB Audio 2.0"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
		input:iec958-stereo: Digital Stereo (IEC958) Input (priority 55, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		output:analog-stereo+input:iec958-stereo: Analog Stereo Output + Digital Stereo (IEC958) Input (priority 6555, available: unknown)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
		output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: unknown)
		output:iec958-stereo+input:iec958-stereo: Digital Stereo Duplex (IEC958) (priority 5555, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.usb-MIYO_MIYO_USB_Audio_2.0-00.analog-stereo/#0: MIYO USB Audio 2.0 Analog Stereo
	sources:
		alsa_output.usb-MIYO_MIYO_USB_Audio_2.0-00.analog-stereo.monitor/#0: Monitor of MIYO USB Audio 2.0 Analog Stereo
		alsa_input.usb-MIYO_MIYO_USB_Audio_2.0-00.analog-stereo/#1: MIYO USB Audio 2.0 Analog Stereo
	ports:
		analog-input: Analog Input (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				
		iec958-stereo-input: Digital Input (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
		analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
			
 pacmd list-sinks
2 sink(s) available.
  * index: 0
	name: <alsa_output.usb-MIYO_MIYO_USB_Audio_2.0-00.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9049
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 14.65 ms
	max request: 24 KiB
	max rewind: 24 KiB
	monitor source: 0
	sample spec: s32le 2ch 192000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 2
	linked by: 2
	configured latency: 16.00 ms; range is 16.00 .. 682.67 ms
	card: 1 <alsa_card.usb-MIYO_MIYO_USB_Audio_2.0-00>
	module: 7
	properties:
		alsa.resolution_bits = "32"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "USB Audio"
		alsa.id = "USB Audio"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "MIYO USB Audio 2.0"
		alsa.long_card_name = "MIYO MIYO USB Audio 2.0 at usb-0000:00:14.0-10.3.3, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:10.3.3:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb2/2-10/2-10.3/2-10.3.3/2-10.3.3:1.0/sound/card0"
		udev.id = "usb-MIYO_MIYO_USB_Audio_2.0-00"
		device.bus = "usb"
		device.vendor.id = "20b1"
		device.vendor.name = "XMOS Ltd"
		device.product.id = "305f"
		device.product.name = "MIYO USB Audio 2.0"
		device.serial = "MIYO_MIYO_USB_Audio_2.0"
		device.string = "front:0"
		device.buffering.buffer_size = "1048576"
		device.buffering.fragment_size = "524288"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "MIYO USB Audio 2.0 Analog Stereo"
		alsa.mixer_name = "USB Mixer"
		alsa.components = "USB20b1:305f"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	ports:
		analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
	active port: <analog-output>
    index: 1
	name: <alsa_output.usb-MIYO_MIYO_USB_Audio_2.0-00.analog-stereo.equalizer>
	driver: <module-equalizer-sink.c>
	flags: HW_MUTE_CTRL LATENCY DYNAMIC_LATENCY
	state: IDLE
	suspend cause: (none)
	priority: 1000
	volume: front-left: 65536 / 100%,   front-right: 65536 / 100%
	        balance 0.00
	base volume: 65536 / 100%
	volume steps: 65537
	muted: no
	current latency: 40.84 ms
	max request: 62 KiB
	max rewind: 24 KiB
	monitor source: 2
	sample spec: float32le 2ch 192000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 682.67 ms; range is 16.00 .. 682.67 ms
	module: 24
	properties:
		device.master_device = "alsa_output.usb-MIYO_MIYO_USB_Audio_2.0-00.analog-stereo"
		device.class = "filter"
		device.description = "FFT based equalizer on MIYO USB Audio 2.0 Analog Stereo"
		device.icon_name = "audio-card"
 pacmd list-sources
3 source(s) available.
    index: 0
	name: <alsa_output.usb-MIYO_MIYO_USB_Audio_2.0-00.analog-stereo.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: IDLE
	suspend cause: (none)
	priority: 1040
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: yes
	current latency: 0.00 ms
	max rewind: 24 KiB
	sample spec: s32le 2ch 192000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 682.67 ms; range is 16.00 .. 682.67 ms
	monitor_of: 0
	card: 1 <alsa_card.usb-MIYO_MIYO_USB_Audio_2.0-00>
	module: 7
	properties:
		device.description = "Monitor of MIYO USB Audio 2.0 Analog Stereo"
		device.class = "monitor"
		alsa.card = "0"
		alsa.card_name = "MIYO USB Audio 2.0"
		alsa.long_card_name = "MIYO MIYO USB Audio 2.0 at usb-0000:00:14.0-10.3.3, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:10.3.3:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb2/2-10/2-10.3/2-10.3.3/2-10.3.3:1.0/sound/card0"
		udev.id = "usb-MIYO_MIYO_USB_Audio_2.0-00"
		device.bus = "usb"
		device.vendor.id = "20b1"
		device.vendor.name = "XMOS Ltd"
		device.product.id = "305f"
		device.product.name = "MIYO USB Audio 2.0"
		device.serial = "MIYO_MIYO_USB_Audio_2.0"
		device.string = "0"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
  * index: 1
	name: <alsa_input.usb-MIYO_MIYO_USB_Audio_2.0-00.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9049
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 0 KiB
	sample spec: s32le 2ch 192000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 2.50 ms; range is 1.00 .. 682.67 ms
	card: 1 <alsa_card.usb-MIYO_MIYO_USB_Audio_2.0-00>
	module: 7
	properties:
		alsa.resolution_bits = "32"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "USB Audio"
		alsa.id = "USB Audio"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "MIYO USB Audio 2.0"
		alsa.long_card_name = "MIYO MIYO USB Audio 2.0 at usb-0000:00:14.0-10.3.3, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:10.3.3:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb2/2-10/2-10.3/2-10.3.3/2-10.3.3:1.0/sound/card0"
		udev.id = "usb-MIYO_MIYO_USB_Audio_2.0-00"
		device.bus = "usb"
		device.vendor.id = "20b1"
		device.vendor.name = "XMOS Ltd"
		device.product.id = "305f"
		device.product.name = "MIYO USB Audio 2.0"
		device.serial = "MIYO_MIYO_USB_Audio_2.0"
		device.string = "front:0"
		device.buffering.buffer_size = "1048576"
		device.buffering.fragment_size = "524288"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "MIYO USB Audio 2.0 Analog Stereo"
		alsa.mixer_name = "USB Mixer"
		alsa.components = "USB20b1:305f"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	ports:
		analog-input: Analog Input (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				
	active port: <analog-input>
    index: 2
	name: <alsa_output.usb-MIYO_MIYO_USB_Audio_2.0-00.analog-stereo.equalizer.monitor>
	driver: <module-equalizer-sink.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 1000
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 24 KiB
	sample spec: float32le 2ch 192000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 16.00 .. 682.67 ms
	monitor_of: 1
	module: 24
	properties:
		device.description = "Monitor of FFT based equalizer on MIYO USB Audio 2.0 Analog Stereo"
		device.class = "monitor"
		device.icon_name = "audio-input-microphone"

After setting the resampler to speex-float-5, it crashed in very few time.

Here are some of the dumps:

           PID: 3745 (pulseaudio)
           UID: 1000 (mixu)
           GID: 100 (users)
        Signal: 6 (ABRT)
     Timestamp: Mon 2019-07-01 23:11:34 CEST (2min 21s ago)
  Command Line: pulseaudio
    Executable: /usr/bin/pulseaudio
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (mixu)
       Boot ID: eb0f4cb97d294f97808a79cc7aebbab5
    Machine ID: da42cf739a564ac8b159b9f67e69ca05
      Hostname: MeowPC
       Storage: /var/lib/systemd/coredump/core.pulseaudio.1000.eb0f4cb97d294f97808a79cc7aebbab5.3745.1562015494000000.lz4
       Message: Process 3745 (pulseaudio) of user 1000 dumped core.
                
                Stack trace of thread 3746:
                #0  0x00007ff1eea0b755 raise (libc.so.6)
                #1  0x00007ff1ee9f6851 abort (libc.so.6)
                #2  0x00007ff1ef2679a4 n/a (libpulsecore-12.2.so)
                #3  0x00007ff1ef237a3f pa_sink_input_process_msg (libpulsecore-12.2.so)
                #4  0x00007ff1ef2273f0 n/a (libpulsecore-12.2.so)
                #5  0x00007ff1ef227d55 pa_rtpoll_run (libpulsecore-12.2.so)
                #6  0x00007ff1e8296911 n/a (libalsa-util.so)
                #7  0x00007ff1eed159fc n/a (libpulsecommon-12.2.so)
                #8  0x00007ff1eeba257f start_thread (libpthread.so.0)
                #9  0x00007ff1eeacd0e3 __clone (libc.so.6)
                
                Stack trace of thread 3747:
                #0  0x00007ff1eeac2756 ppoll (libc.so.6)
                #1  0x00007ff1ef227e10 pa_rtpoll_run (libpulsecore-12.2.so)
                #2  0x00007ff1e829d267 n/a (libalsa-util.so)
                #3  0x00007ff1eed159fc n/a (libpulsecommon-12.2.so)
                #4  0x00007ff1eeba257f start_thread (libpthread.so.0)
                #5  0x00007ff1eeacd0e3 __clone (libc.so.6)
                
                Stack trace of thread 3745:
                #0  0x00007ff1eeac2756 ppoll (libc.so.6)
                #1  0x00007ff1eef67a13 pa_mainloop_poll (libpulse.so.0)
                #2  0x00007ff1eef67fe0 pa_mainloop_iterate (libpulse.so.0)
                #3  0x00007ff1eef68091 pa_mainloop_run (libpulse.so.0)
                #4  0x000055ab642a43b3 main (pulseaudio)
                #5  0x00007ff1ee9f7ee3 __libc_start_main (libc.so.6)
                #6  0x000055ab642a509a _start (pulseaudio)


           PID: 714 (pulseaudio)
           UID: 1000 (mixu)
           GID: 100 (users)
        Signal: 6 (ABRT)
     Timestamp: Mon 2019-07-01 22:39:45 CEST (34min ago)
  Command Line: pulseaudio
    Executable: /usr/bin/pulseaudio
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (mixu)
       Boot ID: eb0f4cb97d294f97808a79cc7aebbab5
    Machine ID: da42cf739a564ac8b159b9f67e69ca05
      Hostname: MeowPC
       Storage: /var/lib/systemd/coredump/core.pulseaudio.1000.eb0f4cb97d294f97808a79cc7aebbab5.714.1562013585000000.lz4
       Message: Process 714 (pulseaudio) of user 1000 dumped core.
                
                Stack trace of thread 1143:
                #0  0x00007f8c90cbc755 raise (libc.so.6)
                #1  0x00007f8c90ca7851 abort (libc.so.6)
                #2  0x00007f8c915189a4 n/a (libpulsecore-12.2.so)
                #3  0x00007f8c914e8a3f pa_sink_input_process_msg (libpulsecore-12.2.so)
                #4  0x00007f8c914d83f0 n/a (libpulsecore-12.2.so)
                #5  0x00007f8c914d8d55 pa_rtpoll_run (libpulsecore-12.2.so)
                #6  0x00007f8c8a547911 n/a (libalsa-util.so)
                #7  0x00007f8c90fc69fc n/a (libpulsecommon-12.2.so)
                #8  0x00007f8c90e5357f start_thread (libpthread.so.0)
                #9  0x00007f8c90d7e0e3 __clone (libc.so.6)
                
                Stack trace of thread 1144:
                #0  0x00007f8c90d73756 ppoll (libc.so.6)
                #1  0x00007f8c914d8e10 pa_rtpoll_run (libpulsecore-12.2.so)
                #2  0x00007f8c8a54e267 n/a (libalsa-util.so)
                #3  0x00007f8c90fc69fc n/a (libpulsecommon-12.2.so)
                #4  0x00007f8c90e5357f start_thread (libpthread.so.0)
                #5  0x00007f8c90d7e0e3 __clone (libc.so.6)
                
                Stack trace of thread 714:
                #0  0x00007f8c90de3c75 __memmove_avx_unaligned_erms (libc.so.6)
                #1  0x00007f8c90fb65d7 pa_srbchannel_write (libpulsecommon-12.2.so)
                #2  0x00007f8c90fb483e n/a (libpulsecommon-12.2.so)
                #3  0x00007f8c90fb58fe n/a (libpulsecommon-12.2.so)
                #4  0x00007f8c91218de0 pa_mainloop_dispatch (libpulse.so.0)
                #5  0x00007f8c91218fef pa_mainloop_iterate (libpulse.so.0)
                #6  0x00007f8c91219091 pa_mainloop_run (libpulse.so.0)
                #7  0x000056174b69b3b3 main (pulseaudio)
                #8  0x00007f8c90ca8ee3 __libc_start_main (libc.so.6)
                #9  0x000056174b69c09a _start (pulseaudio)

           PID: 3036 (pulseaudio)
           UID: 1000 (mixu)
           GID: 100 (users)
        Signal: 6 (ABRT)
     Timestamp: Sat 2019-06-15 11:30:44 CEST (2 weeks 2 days ago)
  Command Line: /usr/bin/pulseaudio --daemonize=no
    Executable: /usr/bin/pulseaudio
 Control Group: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
          Unit: user@1000.service
     User Unit: pulseaudio.service
         Slice: user-1000.slice
     Owner UID: 1000 (mixu)
       Boot ID: af357fb3c11c475ba639d24a8dbcf374
    Machine ID: da42cf739a564ac8b159b9f67e69ca05
      Hostname: MeowPC
       Storage: /var/lib/systemd/coredump/core.pulseaudio.1000.af357fb3c11c475ba639d24a8dbcf374.3036.1560591044000000.lz4 (inaccessible)
       Message: Process 3036 (pulseaudio) of user 1000 dumped core.
                
                Stack trace of thread 3042:
                #0  0x00007f5c966c982f raise (libc.so.6)
                #1  0x00007f5c966b4672 abort (libc.so.6)
                #2  0x00007f5c96f269a4 n/a (libpulsecore-12.2.so)
                #3  0x00007f5c96ef6a3f pa_sink_input_process_msg (libpulsecore-12.2.so)
                #4  0x00007f5c96ee63f0 n/a (libpulsecore-12.2.so)
                #5  0x00007f5c96ee6d55 pa_rtpoll_run (libpulsecore-12.2.so)
                #6  0x00007f5c8ff63911 n/a (libalsa-util.so)
                #7  0x00007f5c969d49fc n/a (libpulsecommon-12.2.so)
                #8  0x00007f5c96863a92 start_thread (libpthread.so.0)
                #9  0x00007f5c9678ccd3 __clone (libc.so.6)
                
                Stack trace of thread 3036:
                #0  0x00007f5c9686c506 do_futex_wait.constprop.1 (libpthread.so.0)
                #1  0x00007f5c9686c608 __new_sem_wait_slow.constprop.0 (libpthread.so.0)
                #2  0x00007f5c969d4c54 pa_semaphore_wait (libpulsecommon-12.2.so)
                #3  0x00007f5c96ec6fea pa_asyncmsgq_send (libpulsecore-12.2.so)
                #4  0x00007f5c96eefde2 pa_sink_input_get_latency (libpulsecore-12.2.so)
                #5  0x00007f5c90dbd54f n/a (libprotocol-native.so)
                #6  0x00007f5c90dc7976 n/a (libprotocol-native.so)
                #7  0x00007f5c969bdf48 pa_pdispatch_run (libpulsecommon-12.2.so)
                #8  0x00007f5c90dcc0d6 n/a (libprotocol-native.so)
                #9  0x00007f5c969c0a9f n/a (libpulsecommon-12.2.so)
                #10 0x00007f5c969c390b n/a (libpulsecommon-12.2.so)
                #11 0x00007f5c969c3cba n/a (libpulsecommon-12.2.so)
                #12 0x00007f5c969c454a n/a (libpulsecommon-12.2.so)
                #13 0x00007f5c96c26d18 pa_mainloop_dispatch (libpulse.so.0)
                #14 0x00007f5c96c26fef pa_mainloop_iterate (libpulse.so.0)
                #15 0x00007f5c96c27091 pa_mainloop_run (libpulse.so.0)
                #16 0x000055c035b543b3 main (pulseaudio)
                #17 0x00007f5c966b5ce3 __libc_start_main (libc.so.6)
                #18 0x000055c035b5509a _start (pulseaudio)
                
                Stack trace of thread 3043:
                #0  0x00007f5c967821c6 ppoll (libc.so.6)
                #1  0x00007f5c96ee6e10 pa_rtpoll_run (libpulsecore-12.2.so)
                #2  0x00007f5c8ff6a267 n/a (libalsa-util.so)
                #3  0x00007f5c969d49fc n/a (libpulsecommon-12.2.so)
                #4  0x00007f5c96863a92 start_thread (libpthread.so.0)
                #5  0x00007f5c9678ccd3 __clone (libc.so.6)

           PID: 3015 (pulseaudio)
           UID: 1000 (mixu)
           GID: 100 (users)
        Signal: 6 (ABRT)
     Timestamp: Sat 2019-06-15 11:30:00 CEST (2 weeks 2 days ago)
  Command Line: /usr/bin/pulseaudio --daemonize=no
    Executable: /usr/bin/pulseaudio
 Control Group: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
          Unit: user@1000.service
     User Unit: pulseaudio.service
         Slice: user-1000.slice
     Owner UID: 1000 (mixu)
       Boot ID: af357fb3c11c475ba639d24a8dbcf374
    Machine ID: da42cf739a564ac8b159b9f67e69ca05
      Hostname: MeowPC
       Storage: /var/lib/systemd/coredump/core.pulseaudio.1000.af357fb3c11c475ba639d24a8dbcf374.3015.1560591000000000.lz4 (inaccessible)
       Message: Process 3015 (pulseaudio) of user 1000 dumped core.
                
                Stack trace of thread 3023:
                #0  0x00007f120a42f82f raise (libc.so.6)
                #1  0x00007f120a41a672 abort (libc.so.6)
                #2  0x00007f120ac8c9a4 n/a (libpulsecore-12.2.so)
                #3  0x00007f120ac5ca3f pa_sink_input_process_msg (libpulsecore-12.2.so)
                #4  0x00007f120ac4c3f0 n/a (libpulsecore-12.2.so)
                #5  0x00007f120ac4cd55 pa_rtpoll_run (libpulsecore-12.2.so)
                #6  0x00007f1203cc9911 n/a (libalsa-util.so)
                #7  0x00007f120a73a9fc n/a (libpulsecommon-12.2.so)
                #8  0x00007f120a5c9a92 start_thread (libpthread.so.0)
                #9  0x00007f120a4f2cd3 __clone (libc.so.6)
                
                Stack trace of thread 3015:
                #0  0x00007f120a5d31f7 __write (libpthread.so.0)
                #1  0x00007f120a70a818 pa_write (libpulsecommon-12.2.so)
                #2  0x00007f120a711d4d pa_fdsem_post (libpulsecommon-12.2.so)
                #3  0x00007f120ac2dbb2 n/a (libpulsecore-12.2.so)
                #4  0x00007f120ac2df97 pa_asyncq_post (libpulsecore-12.2.so)
                #5  0x00007f120ac2ce1b pa_asyncmsgq_post (libpulsecore-12.2.so)
                #6  0x00007f120ac59be8 pa_sink_input_set_rate (libpulsecore-12.2.so)
                #7  0x00007f11fb456d58 n/a (module-loopback.so)
                #8  0x00007f120a98cc89 pa_mainloop_dispatch (libpulse.so.0)
                #9  0x00007f120a98cfef pa_mainloop_iterate (libpulse.so.0)
                #10 0x00007f120a98d091 pa_mainloop_run (libpulse.so.0)
                #11 0x000055c5bd2df3b3 main (pulseaudio)
                #12 0x00007f120a41bce3 __libc_start_main (libc.so.6)
                #13 0x000055c5bd2e009a _start (pulseaudio)
                
                Stack trace of thread 3024:
                #0  0x00007f120a4e81c6 ppoll (libc.so.6)
                #1  0x00007f120ac4ce10 pa_rtpoll_run (libpulsecore-12.2.so)
                #2  0x00007f1203cd0267 n/a (libalsa-util.so)
                #3  0x00007f120a73a9fc n/a (libpulsecommon-12.2.so)
                #4  0x00007f120a5c9a92 start_thread (libpthread.so.0)
                #5  0x00007f120a4f2cd3 __clone (libc.so.6)


           PID: 4207 (pulseaudio)
           UID: 1000 (mixu)
           GID: 100 (users)
        Signal: 6 (ABRT)
     Timestamp: Mon 2019-07-01 23:16:31 CEST (27s ago)
  Command Line: pulseaudio
    Executable: /usr/bin/pulseaudio
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (mixu)
       Boot ID: eb0f4cb97d294f97808a79cc7aebbab5
    Machine ID: da42cf739a564ac8b159b9f67e69ca05
      Hostname: MeowPC
       Storage: /var/lib/systemd/coredump/core.pulseaudio.1000.eb0f4cb97d294f97808a79cc7aebbab5.4207.1562015791000000.lz4
       Message: Process 4207 (pulseaudio) of user 1000 dumped core.
                
                Stack trace of thread 4208:
                #0  0x00007fadee05d755 raise (libc.so.6)
                #1  0x00007fadee048851 abort (libc.so.6)
                #2  0x00007fadee8b99a4 n/a (libpulsecore-12.2.so)
                #3  0x00007fadee889a3f pa_sink_input_process_msg (libpulsecore-12.2.so)
                #4  0x00007fadee8793f0 n/a (libpulsecore-12.2.so)
                #5  0x00007fadee879d55 pa_rtpoll_run (libpulsecore-12.2.so)
                #6  0x00007fade78e8911 n/a (libalsa-util.so)
                #7  0x00007fadee3679fc n/a (libpulsecommon-12.2.so)
                #8  0x00007fadee1f457f start_thread (libpthread.so.0)
                #9  0x00007fadee11f0e3 __clone (libc.so.6)
                
                Stack trace of thread 4209:
                #0  0x00007fadee114756 ppoll (libc.so.6)
                #1  0x00007fadee879e10 pa_rtpoll_run (libpulsecore-12.2.so)
                #2  0x00007fade78ef267 n/a (libalsa-util.so)
                #3  0x00007fadee3679fc n/a (libpulsecommon-12.2.so)
                #4  0x00007fadee1f457f start_thread (libpthread.so.0)
                #5  0x00007fadee11f0e3 __clone (libc.so.6)
                
                Stack trace of thread 4207:
                #0  0x00007fadee114756 ppoll (libc.so.6)
                #1  0x00007fadee5b9a13 pa_mainloop_poll (libpulse.so.0)
                #2  0x00007fadee5b9fe0 pa_mainloop_iterate (libpulse.so.0)
                #3  0x00007fadee5ba091 pa_mainloop_run (libpulse.so.0)
                #4  0x0000557360fe43b3 main (pulseaudio)
                #5  0x00007fadee049ee3 __libc_start_main (libc.so.6)
                #6  0x0000557360fe509a _start (pulseaudio)

Just for testing, now it crashed when playing spotify, changed the song and moved the volume of spotify from the Pulse Audio Volume Controls.

EDIT: Just triend using soxr-mq resample method, and fails the same:

E: [alsa-sink-USB Audio] speex.c: Assertion 'speex_resampler_set_rate(state, r->i_ss.rate, r->o_ss.rate) == 0' failed at pulsecore/resampler/speex.c:125, function speex_update_rates(). Aborting.

           PID: 5041 (pulseaudio)
           UID: 1000 (mixu)
           GID: 100 (users)
        Signal: 6 (ABRT)
     Timestamp: Mon 2019-07-01 23:26:12 CEST (20s ago)
  Command Line: pulseaudio
    Executable: /usr/bin/pulseaudio
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (mixu)
       Boot ID: eb0f4cb97d294f97808a79cc7aebbab5
    Machine ID: da42cf739a564ac8b159b9f67e69ca05
      Hostname: MeowPC
       Storage: /var/lib/systemd/coredump/core.pulseaudio.1000.eb0f4cb97d294f97808a79cc7aebbab5.5041.1562016372000000.lz4
       Message: Process 5041 (pulseaudio) of user 1000 dumped core.
                
                Stack trace of thread 5042:
                #0  0x00007f24f6e81755 raise (libc.so.6)
                #1  0x00007f24f6e6c851 abort (libc.so.6)
                #2  0x00007f24f76dd9a4 n/a (libpulsecore-12.2.so)
                #3  0x00007f24f76ada3f pa_sink_input_process_msg (libpulsecore-12.2.so)
                #4  0x00007f24f769d3f0 n/a (libpulsecore-12.2.so)
                #5  0x00007f24f769dd55 pa_rtpoll_run (libpulsecore-12.2.so)
                #6  0x00007f24f070c911 n/a (libalsa-util.so)
                #7  0x00007f24f718b9fc n/a (libpulsecommon-12.2.so)
                #8  0x00007f24f701857f start_thread (libpthread.so.0)
                #9  0x00007f24f6f430e3 __clone (libc.so.6)
                
                Stack trace of thread 5043:
                #0  0x00007f24f6f38756 ppoll (libc.so.6)
                #1  0x00007f24f769de10 pa_rtpoll_run (libpulsecore-12.2.so)
                #2  0x00007f24f0713267 n/a (libalsa-util.so)
                #3  0x00007f24f718b9fc n/a (libpulsecommon-12.2.so)
                #4  0x00007f24f701857f start_thread (libpthread.so.0)
                #5  0x00007f24f6f430e3 __clone (libc.so.6)
                
                Stack trace of thread 5041:
                #0  0x00007f24f6f38756 ppoll (libc.so.6)
                #1  0x00007f24f73dda13 pa_mainloop_poll (libpulse.so.0)
                #2  0x00007f24f73ddfe0 pa_mainloop_iterate (libpulse.so.0)
                #3  0x00007f24f73de091 pa_mainloop_run (libpulse.so.0)
                #4  0x000055fdc4cb23b3 main (pulseaudio)
                #5  0x00007f24f6e6dee3 __libc_start_main (libc.so.6)
                #6  0x000055fdc4cb309a _start (pulseaudio)

Tomorrow I'll try reverting lib speex.

Last edited by Mixu (2019-07-01 21:28:37)

Offline

#4 2019-07-01 23:19:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,729

Re: Pulseaudio crashes after some time

And what happens if you heed that warning and unload/stop the equalizer module? FWIW I don't have any issues with the newer libspeex.

You are running at a sample spec of 192KHz. Does the assert disappear if you tone that down to 48000 ? Potentially something is biting you here during that extensive of a resampling process.

Offline

#5 2019-07-02 20:27:49

Mixu
Member
Registered: 2012-12-03
Posts: 21

Re: Pulseaudio crashes after some time

V1del wrote:

And what happens if you heed that warning and unload/stop the equalizer module? FWIW I don't have any issues with the newer libspeex.

You are running at a sample spec of 192KHz. Does the assert disappear if you tone that down to 48000 ? Potentially something is biting you here during that extensive of a resampling process.

If I unload the equalizer module, the warning about it is not displayed, but it doesn't make any difference.
But if I force the default-sample-rate to 48000 in daemon.conf, it looks like it doesn't crash! big_smile

Funny thing is if I move the volume up and down quickly, when using 192KHz, it sounds like the audio is accelerated for the amount of time I move the slider. With 48000 it doesn't happen.

I'll keep some music running at 48000, and let's see if it crashes. Using 192KHz it crashes in less than 2 minutes.

Thanks again! smile

Offline

#6 2019-07-02 20:36:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,729

Re: Pulseaudio crashes after some time

Well most music isn't available with that  sampling rate so if you force pulse to open your card with that everything has to be resampled to that, that's an additional and potentially quite expensive process. While that's somewhat of the point of a resampler to convert to relevant rates so you might still have a genuine bug if you always had this set up like that and only ran into the assert now.

Offline

#7 2019-07-02 20:41:01

Mixu
Member
Registered: 2012-12-03
Posts: 21

Re: Pulseaudio crashes after some time

Yes, it's been like more than a year with this setup.
If listening to spotify or youtube I don't care about the sample rate, but using audacious with some flac files... it's a difference. I have to force pulse to use 192KHz because otherwise, it stays at 44100 or 48000.

Offline

Board footer

Powered by FluxBB