USB TASCAM US-122L audio interface crashes when system load increases

Bug #1960703 reported by Johan van Zoomeren
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The TASCAM US-122L, in previous versions of Ubuntu worked okay, with an occasional xrun reported by jackd, running with default settings (sample rate: 48000, frames/period: 1024). In Ubuntu 21.10 the device loads without problem, playback is perfect, but when the system load increases, it immediately crashes.

dmesg:
[ 218.607518] xhci_hcd 0000:00:14.0: ERROR unknown event type 37
[ 218.613370] underrun, status=4294967278

jackd (hangs):
ALSA: prepare audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... usb_stream:US122L|usb_stream:US122L|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 24bit little-endian in 3bytes format
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 24bit little-endian in 3bytes format
ALSA: use 2 periods for playback
error for playback on "usb_stream:US122L" (Input/output error)
JackAudioDriver::ProcessAsync: read error, stopping...
Jack: JackPosixThread::ThreadHandler : exit

lsusb:
Bus 001 Device 003: ID 0644:800e TEAC Corp. TASCAM US-122L

$ lsb_release -rd
Description: Ubuntu 21.10
Release: 21.10

Reproduction steps:
1) Start jackd
2) Start OBS with an USB webcam at 1080p
3) OBS monitor out goes to jackd/us-122L system port
4) Start Zoom, Thunderbird etc to generate some load
5) Immediately crashes

Crash occurs even quicker when adding and actively using another 4 channel USB audio device(same sample rate and period size). So the issue seems related to the load on the USB subsystem as well as the CPU load. I've tried just about anything to find out if the issue is hardware related. Changed cables, used different hubs, no-hub, used different USB ports on the laptop, etc, etc, etc. Same result every time. Also normal playback using PulseAudio instead of Jack suffers from the same. Each time a reset of Jack is needed to get the US-122L to work again.

I've tried, besides the default Ubuntu kernel(5.13.0-28-generic) the latest upstream mainline kernel(5.17.0-051700rc3-generic) as well as the low latency kernel (5.13.0-28-lowlatency). Same result.

If more information is needed, please let me know. Any help is much appreciated. Thank you in advance.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: linux-image-5.13.0-28-generic 5.13.0-28.31
ProcVersionSignature: Ubuntu 5.13.0-28.31-generic 5.13.19
Uname: Linux 5.13.0-28-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sat Feb 12 14:22:37 2022
InstallationDate: Installed on 2020-12-13 (425 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
MachineType: LENOVO 20N3S77637
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.13.0-28-generic root=/dev/mapper/ubuntu-root ro quiet splash intel_iommu=on
RelatedPackageVersions:
 linux-restricted-modules-5.13.0-28-generic N/A
 linux-backports-modules-5.13.0-28-generic N/A
 linux-firmware 1.201.1
SourcePackage: linux
UpgradeStatus: Upgraded to impish on 2021-10-31 (103 days ago)
dmi.bios.date: 10/09/2021
dmi.bios.release: 1.75
dmi.bios.vendor: LENOVO
dmi.bios.version: N2IET97W (1.75 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20N3S77637
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.19
dmi.modalias: dmi:bvnLENOVO:bvrN2IET97W(1.75):bd10/09/2021:br1.75:efr1.19:svnLENOVO:pn20N3S77637:pvrThinkPadT490:rvnLENOVO:rn20N3S77637:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20N3_BU_Think_FM_ThinkPadT490:
dmi.product.family: ThinkPad T490
dmi.product.name: 20N3S77637
dmi.product.sku: LENOVO_MT_20N3_BU_Think_FM_ThinkPad T490
dmi.product.version: ThinkPad T490
dmi.sys.vendor: LENOVO
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 21.10
InstallationDate: Installed on 2020-12-13 (425 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Package: alsa-base 1.0.25+dfsg-0ubuntu7
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 5.13.0-28.31-generic 5.13.19
Tags: impish
Uname: Linux 5.13.0-28-generic x86_64
UpgradeStatus: Upgraded to impish on 2021-10-31 (103 days ago)
UserGroups: adm audio cdrom dip docker libvirt lpadmin lxd plugdev sambashare sudo video
_MarkForUpload: True
dmi.bios.date: 10/09/2021
dmi.bios.release: 1.75
dmi.bios.vendor: LENOVO
dmi.bios.version: N2IET97W (1.75 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20N3S77637
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.19
dmi.modalias: dmi:bvnLENOVO:bvrN2IET97W(1.75):bd10/09/2021:br1.75:efr1.19:svnLENOVO:pn20N3S77637:pvrThinkPadT490:rvnLENOVO:rn20N3S77637:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20N3_BU_Think_FM_ThinkPadT490:
dmi.product.family: ThinkPad T490
dmi.product.name: 20N3S77637
dmi.product.sku: LENOVO_MT_20N3_BU_Think_FM_ThinkPad T490
dmi.product.version: ThinkPad T490
dmi.sys.vendor: LENOVO

Revision history for this message
Johan van Zoomeren (amain) wrote :
tags: added: apport-collected
description: updated
Revision history for this message
Johan van Zoomeren (amain) wrote : AlsaInfo.txt

apport information

Revision history for this message
Johan van Zoomeren (amain) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
Johan van Zoomeren (amain) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Johan van Zoomeren (amain) wrote : Dependencies.txt

apport information

Revision history for this message
Johan van Zoomeren (amain) wrote : PaInfo.txt

apport information

Revision history for this message
Johan van Zoomeren (amain) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Johan van Zoomeren (amain) wrote : PulseList.txt

apport information

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Is it possible to bisect the kernel to find the offending commit?

Revision history for this message
Stephen (stephematishun) wrote :

I have experienced the same problem, although I do not need to do as much re: CPU usage. Most of the time, when I go to add the PulseAudio input to OBS, the JACK server will experience the same fault, and the device cuts out.

It may be an issue with OBS itself? I have also logged issues with both JACK and ALSA on Github.

https://github.com/alsa-project/alsa-lib/issues/269
https://github.com/jackaudio/jack1/issues/118

Revision history for this message
Stephen (stephematishun) wrote :

I can confirm this crash occurs, even without JACK. All I need to do is increase the CPU load when running `arecord` as follows:

    arecord --period-size=640 -c2 -fS24_3LE -r44100 -MDusbstream:CARD=US122L > test.wav
    Recording WAVE 'stdin' : Signed 24 bit Little Endian in 3bytes, Rate 44100 Hz, Stereo
    arecord: pcm_read:2221: read error: Input/output error

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.