FS#64699 - [alsa-lib] 1.2.1.2-1 kernel 5.4 Hardcrash

Attached to Project: Arch Linux
Opened by Kimmo (Dehir) - Sunday, 01 December 2019, 12:15 GMT
Last edited by David Runge (dvzrv) - Monday, 22 June 2020, 10:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

After upgrading alsa-lib 1.2.1.1-1 -> 1.2.1.2-1
And kernel 5.4.arch1-1

System seems to be getting hard crashing mouse and screne locking etc.

Tried to figure out if it would be GPU related cause my AMDGPU aco has been somewhat buggy and unstable. But dont think its the case this time

Thou latest recovered message from journalctl i can get before crash is following:

joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: snd_pcm_avail() returned a value that is exceptionally large: 229236 bytes (795 ms).
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: Most likely this is a bug in the ALSA driver 'snd_usb_audio'. Please report this issue to the ALSA developers.
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: snd_pcm_dump():
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: Hardware PCM card 0 'USB2.0 High-Speed True HD Audio' device 0 subdevice 0
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: Its setup is:
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: stream : PLAYBACK
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: access : MMAP_INTERLEAVED
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: format : S24_3LE
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: subformat : STD
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: channels : 2
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: rate : 48000
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: exact rate : 48000 (48000/1)
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: msbits : 24
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: buffer_size : 4800
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: period_size : 1200
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: period_time : 25000
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: tstamp_mode : ENABLE
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: tstamp_type : MONOTONIC
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: period_step : 1
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: avail_min : 1200
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: period_event : 1
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: start_threshold : -1
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: stop_threshold : 5404319552844595200
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: silence_threshold: 0
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: silence_size : 0
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: boundary : 5404319552844595200
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: appl_ptr : 232738845
joulu 01 13:23:01 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: hw_ptr : 232774801
joulu 01 13:23:37 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: snd_pcm_delay() returned a value that is exceptionally large: -5109192 bytes (-17740 ms).
joulu 01 13:24:21 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: Most likely this is a bug in the ALSA driver 'snd_usb_audio'. Please report this issue to the ALSA developers.
joulu 01 13:24:21 Hostname pulseaudio[1293]: E: [alsa-sink-USB Audio] alsa-util.c: snd_pcm_dump():

Reported USB soundcard/DAC is following:

0d8c:0004 C-Media Electronics, Inc. USB2.0 High-Speed True HD Audio


Additional info:

alsa-lib 1.2.1.2-1
lib32-alsa-lib 1.2.1.2-1
linux 5.4.arch1-1 and 5.4.1.arch1-1

Downgraded alsa-lib to version 1.2.1.1-1 for staters to see if its related to that. Thou if its kernel driver bug prob doing that makes no difference.

Havent loaded this yet any upstream.


Steps to reproduce:

Upgrade system
This task depends upon

Closed by  David Runge (dvzrv)
Monday, 22 June 2020, 10:05 GMT
Reason for closing:  Upstream
Additional comments about closing:  The issue seems to be related to certain hardware drivers with ALSA.
Reports about hardware quirks need to be reported upstream.
Comment by Stephan Kast (skast) - Sunday, 08 December 2019, 23:44 GMT
I can also reproduce this issue. Took me a while to figure out that it was a failure between sound and kernel.
Running on a Lenovo X1 Gen7
Comment by Kimmo (Dehir) - Monday, 09 December 2019, 12:57 GMT
Running atm 5.4.2-arch1-1 kernel and system has been somewhat more stable for me. No crashes so far. Thou took my pc apart few days ago to upgrade my pch chipset cooling. Which technically should not have affected it but my soundcard is run from usb-port that controlled by PCH so you never know for sure.

Need to wait and see if the crashing still happens. Most often crash/lockup happens to me while i have firefox open with multiple instances of youtube in different tabs.
Comment by Erik Koleszar (zaladix) - Wednesday, 08 January 2020, 19:54 GMT
Same problem in my HP Pavilion 8615, just while listening Spotify music in Chromium (Version 79.0.3945.88) Arch Linux (64-bit)
alsa-lib 1.2.1.2-1
linux 5.4.7-arch1-1

Comment by Kimmo (Dehir) - Friday, 17 January 2020, 15:47 GMT
Seems that the bug is still appearing for me. Sometimes crashing whole system sometimes system can recover from error without crashing/hanging.

Log has latest error message from journalctl.

Atm following versions of software:

kernel: 5.4.11-arch1-1
alsa-lib: alsa-lib 1.2.1.2-2
C-media DAC/Soundcard: 0d8c:0004 C-Media Electronics, Inc. USB2.0 High-Speed True HD Audio

Dont think GPU has anything to do with it anymore.

Also pointing out that propably happening more often with firefox/waterfox.
Version: aur/waterfox-current-bin 2020.01-1 from. Makes thou no difference if its firefox from official repo.
   bug.log (6.3 KiB)
Comment by Kimmo (Dehir) - Tuesday, 21 January 2020, 13:40 GMT
Ok switched back to motherboards integrated audio and still getting these errors with integrated hardware. So this might not either hardware specific. This happens most often still youtube tab open on waterfox(firefox)

[alsa-sink-ALC1220 Digital] alsa-util.c: snd_pcm_delay() returned a value that is exceptionally large: -665720 bytes (-1733 ms).
tammi 21 15:35:24 Hostname pulseaudio[1292]: E: [alsa-sink-ALC1220 Digital] alsa-util.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
tammi 21 15:35:24 Hostname pulseaudio[1292]: E: [alsa-sink-ALC1220 Digital] alsa-util.c: snd_pcm_dump():
tammi 21 15:35:24 Hostname pulseaudio[1292]: E: [alsa-sink-ALC1220 Digital] alsa-util.c: Hooks PCM
Comment by Stephan Kast (skast) - Monday, 17 February 2020, 09:42 GMT
This error happened to me again.

Notebook:
Lenovo X1 Carbon Gen 7.

alsa-lib 1.2.1.2-3
alsa-plugins 1.2.1-4
alsa-topology-conf 1.2.1-1
alsa-ucm-conf 1.2.1.2-1
alsa-utils 1.2.1-2
pulseaudio-alsa 2-5

linux 5.5.2.arch1-1

Is there any fix to this?
Comment by Vic Luo (htfy96) - Friday, 20 March 2020, 13:18 GMT
Not sure if it's the same issue, but my Lenovo Thinkpad E585 also has this problem, but without crashing. Only mic is broken.


extra/alsa-lib 1.2.2-1 [installed]
extra/alsa-plugins 1.2.2-1 [installed]
extra/alsa-topology-conf 1.2.2-2 [installed]
extra/alsa-ucm-conf 1.2.2-1 [installed]
extra/alsa-utils 1.2.2-1 [installed]
extra/pulseaudio-alsa 2-5 [installed]
extra/zita-alsa-pcmi 0.3.2-2 [installed]
multilib/lib32-alsa-lib 1.2.2-1 [installed]
multilib/lib32-alsa-plugins 1.2.2-1 [installed]
core/linux 5.5.10.arch1-1 [installed]
core/linux-api-headers 5.4.17-1 [installed]
core/linux-firmware 20200224.efcfa03-1 [installed
   log.log (5.3 KiB)
Comment by David Runge (dvzrv) - Wednesday, 01 April 2020, 16:23 GMT
@Dehir: Thanks for the report.

As this is a hardware related issue and I can't reproduce it, please report the problem upstream:
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Comment by David Runge (dvzrv) - Thursday, 23 April 2020, 18:26 GMT
@Dehir: Is this still happening on the current kernel (e.g. 5.6.6.arch1)?
Comment by Kimmo (Dehir) - Thursday, 23 April 2020, 20:01 GMT
@dvzrv Not that i havent noticed but have changed back to my ALC1220 onboard audio which feels stable rocking so far.

Moved the c-media usb card to my storage so havent been able to test it. I think its ok to close this. If it starts happen and or someone reports reopen.

Currently running 5.4.34-1-lts
Comment by David Runge (dvzrv) - Monday, 22 June 2020, 10:04 GMT
I will close this ticket, as I can not reproduce it.
If you still experience issues with the current version of the kernel and the alsa packages please re-open and report this upstream.

Loading...