Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #991459

Bug#948658: qemu: Qemu 4.2 hangs/freezes completely due to audio backend changes [regression][bisected]

From Matti Hämäläinen <ccr@tnsp.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#948658: qemu: Qemu 4.2 hangs/freezes completely due to audio backend changes [regression][bisected]
Date 2020-01-15 16:50 +0100
Message-ID <zoT5D-4aq-1@gated-at.bofh.it> (permalink)
References <znn7Q-5LF-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello!

After some more digging, I've tracked the problem to the audio input /
capture-side of the code. If I leave out the QEMU_ALSA_ADC_DEV="null" 
environment variable, the freeze does not happen, but Qemu spews
hundreds of errors, following lines repeat many times:

--
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `adc'
--

I also tried disabling the capture in the code, with this patch against
v4.2.0 git. (You also have to pass --disable-werror to configure.)

diff --git a/audio/audio.c b/audio/audio.c
index 56fae55047..82476a41de 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1352,8 +1352,10 @@ static void audio_run_capture (AudioState *s)
  void audio_run(AudioState *s, const char *msg)
  {
      audio_run_out(s);
+#if 0
      audio_run_in(s);
      audio_run_capture(s);
+#endif

  #ifdef DEBUG_POLL
      {

.. and with the patch it worked perfectly. No hangs/freeze. But obviously 
it is not a solution for other people as it disables audio capture/recording. 
Personally I don't need it, of course, which is why I have that 
QEMU_ALSA_ADC_DEV="null" set.

Hope this helps.

-- 
] ccr/TNSP ^ pWp  ::  ccr@tnsp.org  ::  https://tnsp.org/~ccr/
] https://tnsp.org/hg/ -- https://www.openhub.net/accounts/ccr
] PGP key: 7BED 62DE 898D D1A4 FC4A  F392 B705 E735 307B AAE3

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bug#948658: qemu: Qemu 4.2 hangs/freezes completely due to audio backend changes [regression][bisected] Matti Hamalainen <ccr+debian@tnsp.org> - 2020-01-11 12:30 +0100
  Bug#948658: qemu: Qemu 4.2 hangs/freezes completely due to audio backend changes [regression][bisected] Michael Tokarev <mjt@tls.msk.ru> - 2020-01-14 23:30 +0100
    Bug#948658: qemu: Qemu 4.2 hangs/freezes completely due to audio backend changes [regression][bisected] Matti Hämäläinen <ccr@tnsp.org> - 2020-01-15 00:40 +0100
  Bug#948658: qemu: Qemu 4.2 hangs/freezes completely due to audio backend changes [regression][bisected] Matti Hämäläinen <ccr@tnsp.org> - 2020-01-15 01:30 +0100
  Bug#948658: qemu: Qemu 4.2 hangs/freezes completely due to audio backend changes [regression][bisected] Matti Hämäläinen <ccr@tnsp.org> - 2020-01-15 10:40 +0100
  Bug#948658: qemu: Qemu 4.2 hangs/freezes completely due to audio backend changes [regression][bisected] Matti Hämäläinen <ccr@tnsp.org> - 2020-01-15 16:50 +0100

csiph-web