ALSA crashes during jack session

Hi,

I’m not sure if anyone will be able to help me here but it’s still worth giving a try.

I use a guitar amp as a sound card for practicing and quickly recording some ideas using jack (with pulseaudio). Shortly after the latest stable update, alsa regularly crashes shortly after I launch a jack session and I can’t reset my jack session without rebooting my machine after that, in fact, my sound card disapears from /proc/asound/cards. I tried switching kernel (went from 5.15 to 5.4, then installed 6.2), 6.2 seemed to have solved the issue, but actually didn’t, it just takes longer for alsa to crash.

Here is my jack log :

Fri Feb 10 23:05:42 2023: Starting jack server...
Fri Feb 10 23:05:42 2023: JACK server starting in realtime mode with priority 70
Fri Feb 10 23:05:42 2023: self-connect-mode is "Don't restrict self connect requests"
Fri Feb 10 23:05:42 2023: Acquired audio card Audio2
Fri Feb 10 23:05:42 2023: creating alsa driver ... hw:KATANA,0|hw:KATANA,0|1024|2|48000|0|0|nomon|swmeter|-|32bit
Fri Feb 10 23:05:42 2023: configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
Fri Feb 10 23:05:42 2023: ALSA: final selected sample format for capture: 32bit integer little-endian
Fri Feb 10 23:05:42 2023: ALSA: use 2 periods for capture
Fri Feb 10 23:05:42 2023: ALSA: final selected sample format for playback: 32bit integer little-endian
Fri Feb 10 23:05:42 2023: ALSA: use 2 periods for playback
Fri Feb 10 23:05:42 2023: graph reorder: new port 'system:capture_1'
Fri Feb 10 23:05:42 2023: New client 'system' with PID 0
Fri Feb 10 23:05:42 2023: graph reorder: new port 'system:capture_2'
Fri Feb 10 23:05:42 2023: graph reorder: new port 'system:capture_3'
Fri Feb 10 23:05:42 2023: graph reorder: new port 'system:capture_4'
Fri Feb 10 23:05:42 2023: graph reorder: new port 'system:playback_1'
Fri Feb 10 23:05:42 2023: graph reorder: new port 'system:playback_2'
Fri Feb 10 23:05:42 2023: graph reorder: new port 'system:playback_3'
Fri Feb 10 23:05:42 2023: graph reorder: new port 'system:playback_4'
Fri Feb 10 23:05:42 2023: New client 'PulseAudio JACK Sink' with PID 1278
Fri Feb 10 23:05:42 2023: Connecting 'PulseAudio JACK Sink:front-left' to 'system:playback_1'
Fri Feb 10 23:05:42 2023: Connecting 'PulseAudio JACK Sink:front-right' to 'system:playback_2'
Fri Feb 10 23:05:42 2023: New client 'PulseAudio JACK Source' with PID 1278
Fri Feb 10 23:05:42 2023: Connecting 'system:capture_1' to 'PulseAudio JACK Source:front-left'
Fri Feb 10 23:05:42 2023: Connecting 'system:capture_2' to 'PulseAudio JACK Source:front-right'
Fri Feb 10 23:05:43 2023: Saving settings to "/home/oguere/.config/jack/conf.xml" ...
Fri Feb 10 23:09:19 2023: ERROR: ALSA: poll time out, polled for 34827979 usecs, Retrying with a recovery, retry cnt = 1
Fri Feb 10 23:09:22 2023: ERROR: ALSA: prepare error for playback on "hw:KATANA,0" (Broken pipe)
Fri Feb 10 23:09:22 2023: ERROR: ALSA: poll time out, recovery failed with status = -1
Fri Feb 10 23:09:22 2023: ERROR: JackAudioDriver::ProcessAsync: read error, stopping...
Fri Feb 10 23:11:37 2023: Stopping jack server...

I copied paste the errors in a search engine but couldn’t find anything helpful

Also, I launch jack via this shell script that I got from the arch wiki (the variables come from a config file):

jack_control start
	jack_control ds alsa
	jack_control dps device $d
	jack_control dps capture $d2
	jack_control dps playback $d2
	jack_control dps rate $r
	jack_control dps period $p
	jack_control dps nperiods $n

Anyone has an idea how to fix this ? I thought about downgrading an alsa package but there are quite a lot installed and don’t know which one to downgrade.

Thanks