alsa-lib icon indicating copy to clipboard operation
alsa-lib copied to clipboard

hdspm MIDI-in crash

Open aiobofh opened this issue 2 years ago • 3 comments

I've tried to find some insights in a weird problem I have with snd_hdspm. I guess it is an error-report/bug-posting.

I'm using hdspm for my RME RayDAT card. Using every input I can, in my studio :D. Upon ALSA i run jackd for audio, to get use for the awesome application support for studios. However I never used jackd for MIDI. That's pure ALSA in my set-up.

Audio-wise everything is super-duper, so don't worry. However... MIDI only works outbound from the on-board MIDI interface.

Whenever I connect anything to the MIDI-in and start feeding some MIDI-data, it seems ALSA crashes on me. here's a more detailed description:

  • I'm running linux-rt 6.0.5.14.realtime1-3-rt SMP PREEMPT_RT (Arch)

  • When i give it a stream (randomly slam keys on a MIDI keyboard, or a controller) of MIDI data on the MIDI-in while playing some audio that application (e.g. mplayer, live inputs sources directly connected to playback sinks or what not) i see application error messages like:

    ALSA: poll time out, polled for 1999005 usecs, Retrying with a recovery, retry cnt = 1 (2, 3, 4, 5, and so on)

    And ALSA seem stuck in looping the last buffer over and over, until i reboot the machine.

  • Nothing in journal, nothing in dmesg tells anything more about it.

Is this a known problem? How can I provide more information in a good way, if needed - I really can't see anything else in the logging facilities of the system. Just get this behavior.

aiobofh avatar Jan 29 '23 22:01 aiobofh

Did the suggested patch help? https://lore.kernel.org/r/[email protected]

tiwai avatar May 23 '23 14:05 tiwai

It didn't :(

aiobofh avatar Sep 18 '23 10:09 aiobofh

Then try to set up the kdump and get the backtraces of the hanging tasks. It's difficult to diagnose without any logs.

tiwai avatar Sep 18 '23 11:09 tiwai