alsa-util.c: Function snd_pcm_avail() returns a value that is extraordinarily large: 370196 bytes (2098 мс).

Bug #1817912 reported by svarog on 2019-02-27
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Undecided
Unassigned
alsa-utils (Ubuntu)
Undecided
Unassigned
linux (Ubuntu)
Undecided
Unassigned
pulseaudio (Ubuntu)
Undecided
Unassigned

Bug Description

An old issue with ALSA is still present in Ubuntu 16.04.6.
The system became extraordinarily slow and hangs at total in around a minute while playing a music (around a few hours in my case).

[15:38:51]
[root@ThinkPad/var/log]#grep "alsa-sink-CX20751/2 Analog" syslog
Feb 27 14:58:50 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: Function snd_pcm_avail() returns a value that is extraordinarily large: 370196 bytes (2098 мс).
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: Most likely this is a bug in the ALSA driver «snd_hda_intel». Please report this issue to the ALSA developers.
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: snd_pcm_dump():
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: Soft volume PCM
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: Control: PCM Playback Volume
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: min_dB: -51
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: max_dB: 0
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: resolution: 256
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: Its setup is:
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: stream : PLAYBACK
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: access : MMAP_INTERLEAVED
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: format : S16_LE
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: subformat : STD
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: channels : 2
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: rate : 44100
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: exact rate : 44100 (44100/1)
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: msbits : 16
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: buffer_size : 16384
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: period_size : 8192
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: period_time : 185759
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: tstamp_mode : ENABLE
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: tstamp_type : MONOTONIC
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: period_step : 1
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: avail_min : 15680
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: period_event : 0
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: start_threshold : -1
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: stop_threshold : 4611686018427387904
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: silence_threshold: 0
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: silence_size : 0
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: boundary : 4611686018427387904
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: Slave: Hardware PCM card 1 'HDA Intel PCH' device 0 subdevice 0
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: Its setup is:
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: stream : PLAYBACK
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: access : MMAP_INTERLEAVED
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: format : S16_LE
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: subformat : STD
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: channels : 2
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: rate : 44100
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: exact rate : 44100 (44100/1)
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: msbits : 16
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: buffer_size : 16384
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: period_size : 8192
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: period_time : 185759
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: tstamp_mode : ENABLE
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: tstamp_type : MONOTONIC
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: period_step : 1
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: avail_min : 15680
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: period_event : 0
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: start_threshold : -1
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: stop_threshold : 4611686018427387904
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: silence_threshold: 0
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: silence_size : 0
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: boundary : 4611686018427387904
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: appl_ptr : 709483539
Feb 27 14:58:51 ThinkPad pulseaudio[9613]: [alsa-sink-CX20751/2 Analog] alsa-util.c: hw_ptr : 709559704

[15:39:03]
[root@ThinkPad/var/log]#uname -a
Linux ThinkPad 4.15.0-45-generic #48~16.04.1-Ubuntu SMP Tue Jan 29 18:03:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

[15:40:01]
[root@ThinkPad/var/log]#cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version k4.15.0-45-generic.
---
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: vitalii 21570 F.... pulseaudio
 /dev/snd/controlC0: vitalii 21570 F.... pulseaudio
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2018-08-14 (197 days ago)
InstallationMedia: Ubuntu 16.04.5 LTS "Xenial Xerus" - Release amd64 (20180731)
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
Package: linux
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 4.15.0-45.48~16.04.1-generic 4.15.18
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
Tags: xenial xenial
Uname: Linux 4.15.0-45-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 11/27/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: J9ET37WW (1.16 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20C6A03200
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrJ9ET37WW(1.16):bd11/27/2013:svnLENOVO:pn20C6A03200:pvrThinkPadEdgeE540:rvnLENOVO:rn20C6A03200:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.family: ThinkPad Edge E540
dmi.product.name: 20C6A03200
dmi.product.version: ThinkPad Edge E540
dmi.sys.vendor: LENOVO

svarog (varrkan82) on 2019-02-27
description: updated

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1817912

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: bionic

apport information

tags: added: apport-collected xenial
description: updated

apport information

apport information

apport information

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in alsa-utils (Ubuntu):
status: New → Confirmed
Changed in alsa-driver (Ubuntu):
status: New → Confirmed
description: updated
Changed in pulseaudio (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers