FS#62755 - [mumble] No more sound when application start with pulseaudio input/output

Attached to Project: Community Packages
Opened by David RICQ (Inglebard) - Monday, 27 May 2019, 15:19 GMT
Last edited by David Runge (dvzrv) - Tuesday, 10 March 2020, 19:54 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When mumble is launched, there is no more sound input/output in the system.
It's seems to be related to input/output Mumble preferences and Pulseaudio.
Close mumble restore the normal behaviour.

The issue is not present in version 1.3.0rc1-1

Additional info:
* package version(s): 1.3.0rc1-2

Steps to reproduce:
- Open mumble
- Set audio input/output on Pulseaudio
This task depends upon

Closed by  David Runge (dvzrv)
Tuesday, 10 March 2020, 19:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 1.3.0-8
Comment by David RICQ (Inglebard) - Tuesday, 28 May 2019, 07:12 GMT
The issue is no more present in 1.3.0rc1-3.
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 29 May 2019, 15:00 GMT
Yeah, turns out that this is an upstream issue. Upstream gave me a patch that solved another issue but in turn caused the breakage you reported.
Comment by Dietrich Hallentforden (aufkrawall) - Sunday, 12 January 2020, 15:09 GMT
  • Field changed: Percent Complete (100% → 0%)
It seems the exactly same issue has reoccured with mumble-1.3.0-2 - it completely blocks PA.
Rolling back to mumble-1.3.0-1 fixes the issue.
Comment by David Runge (dvzrv) - Friday, 28 February 2020, 10:58 GMT
@Inglebard: I've built mumble with JACK support and have tested mumble with pulseaudio, ALSA and JACK (all work). The package is in [community-testing]. Please check it out!

Your problem seems specific to the pulseaudio input/output. After selecting the backend, make sure, that you uncheck "Only attenuate applications using the same output device" (in the "Advanced Attenuation Options" section in the "Audio Output" configuration). I found that to be a bit overly eager to disable, mute and attenuate other sources playing back over pulseaudio.
Additionally, make sure, that your microphone is not muted (e.g. have a look at the "Input Devices" section of pavucontrol and also have a look at the input section in alsamixer).
Comment by David RICQ (Inglebard) - Friday, 28 February 2020, 13:30 GMT
Hi,

@dvzrv, 1.3.0-5 works well.

1.3.0-6 has the same issue than 1.3.0rc1-3.

"Only attenuate applications using the same output device" check or unchecked same issue, no sound.
The microphone is not muted. The speaker are not off.

I also notice, when I open rhythmbox when a song is playing then open mumble 1.3.0-6, rhythmbox seems to audio freeze (play/pause/stop not working).
When I close mumble 1.3.0-6, rhythmbox continue like nothing.
Comment by David RICQ (Inglebard) - Friday, 28 February 2020, 16:44 GMT
Here is a log :

févr. 28 17:41:36 davidPC zeitgeist-datah[2033]: zeitgeist-datahub.vala:207: Error during inserting events: GDBus.Error:org.gnome.zeitgeist.EngineError.InvalidArgument: Incomplete event: interpretation, manifestation and actor are required
févr. 28 17:41:36 davidPC mumble.desktop[17708]: Cannot connect to server socket err = Aucun fichier ou dossier de ce type
févr. 28 17:41:36 davidPC mumble.desktop[17708]: Cannot connect to server request channel
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Cannot create RT messagebuffer thread: Operation not permitted (1)
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Retrying messagebuffer thread without RT scheduling
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Messagebuffer not realtime; consider enabling RT scheduling for user
févr. 28 17:41:36 davidPC mumble.desktop[17717]: no message buffer overruns
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Cannot create RT messagebuffer thread: Operation not permitted (1)
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Retrying messagebuffer thread without RT scheduling
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Messagebuffer not realtime; consider enabling RT scheduling for user
févr. 28 17:41:36 davidPC mumble.desktop[17717]: no message buffer overruns
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Cannot create RT messagebuffer thread: Operation not permitted (1)
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Retrying messagebuffer thread without RT scheduling
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Messagebuffer not realtime; consider enabling RT scheduling for user
févr. 28 17:41:36 davidPC mumble.desktop[17717]: no message buffer overruns
févr. 28 17:41:36 davidPC mumble.desktop[17717]: jackdmp 1.9.14
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Copyright 2001-2005 Paul Davis and others.
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Copyright 2004-2016 Grame.
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Copyright 2016-2019 Filipe Coelho.
févr. 28 17:41:36 davidPC mumble.desktop[17717]: jackdmp comes with ABSOLUTELY NO WARRANTY
févr. 28 17:41:36 davidPC mumble.desktop[17717]: This is free software, and you are welcome to redistribute it
févr. 28 17:41:36 davidPC mumble.desktop[17717]: under certain conditions; see the file COPYING for details
févr. 28 17:41:36 davidPC mumble.desktop[17717]: JACK server starting in realtime mode with priority 10
févr. 28 17:41:36 davidPC mumble.desktop[17717]: self-connect-mode is "Don't restrict self connect requests"
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Cannot lock down 82280346 byte memory area (Cannot allocate memory)
févr. 28 17:41:36 davidPC mumble.desktop[17717]: audio_reservation_init
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Acquire audio card Audio0
févr. 28 17:41:36 davidPC mumble.desktop[17717]: creating alsa driver ... hw:PCH,0|hw:PCH,0|1024|2|44100|0|0|nomon|swmeter|-|32bit
févr. 28 17:41:36 davidPC mumble.desktop[17717]: configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods
févr. 28 17:41:36 davidPC mumble.desktop[17717]: ALSA: final selected sample format for capture: 32bit integer little-endian
févr. 28 17:41:36 davidPC mumble.desktop[17717]: ALSA: use 2 periods for capture
févr. 28 17:41:36 davidPC mumble.desktop[17717]: ALSA: final selected sample format for playback: 32bit integer little-endian
févr. 28 17:41:36 davidPC mumble.desktop[17717]: ALSA: use 2 periods for playback
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Cannot create thread res = 1
févr. 28 17:41:36 davidPC mumble.desktop[17717]: Cannot use real-time scheduling (RR/10) (1: Operation not permitted)
févr. 28 17:41:36 davidPC mumble.desktop[17717]: AcquireSelfRealTime error
févr. 28 17:41:37 davidPC mumble.desktop[17708]: Cannot lock down 82280346 byte memory area (Ne peut allouer de la mémoire)
févr. 28 17:41:37 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:37.482 JackAudioSystem: client "mumble" opened successfully
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <D>2020-02-28 17:41:38.504 libopus 1.3.1 from libopus.so.0
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.505 CELT bitstream 8000000b from /usr/lib/mumble/libcelt0.so.0.7.0
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.505 CELT bitstream 80000010 from /usr/lib/mumble/libcelt0.so.0.11.0
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.514 Theme: "Mumble"
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.514 Style: "Lite"
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.514 --> qss: ":themes/Mumble/Lite.qss"
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.514 Locale is "fr_FR" (System: "fr_FR")
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.727 Database SQLite: "3.31.1"
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.731 Overlay: Listening on "/run/user/1000/MumbleOverlayPipe"
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.737 Updating application palette
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.749 GlobalShortcutX: Using XI2 2.3
févr. 28 17:41:38 davidPC gnome-shell[1599]: JS ERROR: TypeError: ExtensionUtils.extensions is undefined
onTrayIconAdded@/home/david/.local/share/gnome-shell/extensions/TopIcons@phocean.net/extension.js:84:1
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.863 AudioInput: Opus encoder set for VOIP
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.863 AudioInput: 40000 bits/s, 48000 hz, 480 sample
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.863 PulseAudio: Starting input alsa_input.pci-0000_00_1b.0.analog-stereo
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.864 PulseAudio: Starting output: alsa_output.pci-0000_00_1b.0.analog-stereo
févr. 28 17:41:38 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:38.864 AudioOutput: Initialized 2 channel 44100 hz mixer
févr. 28 17:41:43 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:43.152 Database SQLite: "3.31.1"
févr. 28 17:41:43 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:43.152 OpenSSL Support: 1 (OpenSSL 1.1.1d 10 Sep 2019)
févr. 28 17:41:43 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:43.237 ServerHandler: TLS cipher preference is "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:AES256-SHA:AES128-SHA"
févr. 28 17:41:46 davidPC pulseaudio[1583]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
févr. 28 17:41:46 davidPC pulseaudio[1583]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
févr. 28 17:41:51 davidPC pulseaudio[1583]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
févr. 28 17:41:52 davidPC pulseaudio[1583]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
févr. 28 17:41:57 davidPC mumble.desktop[17717]: JackTemporaryException : now quits...
févr. 28 17:41:57 davidPC mumble.desktop[17717]: Jack main caught signal 2
févr. 28 17:41:57 davidPC mumble.desktop[17708]: <W>2020-02-28 17:41:57.204 PulseAudio: Forcibly disconnected from PulseAudio
févr. 28 17:41:57 davidPC mumble.desktop[17717]: Released audio card Audio0
févr. 28 17:41:57 davidPC mumble.desktop[17717]: audio_reservation_finish
févr. 28 17:41:57 davidPC pulseaudio[1583]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write.
févr. 28 17:41:57 davidPC pulseaudio[1583]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
févr. 28 17:41:57 davidPC pulseaudio[1583]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
févr. 28 17:42:02 davidPC systemd[1531]: gnome-launched-mumble.desktop-17708.scope: Succeeded.



This append when I try to volume up or down :
W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
Comment by David Runge (dvzrv) - Friday, 28 February 2020, 17:08 GMT
Hm, somehow mumble attempts the really annoying: It somehow wants to autostart a JACK server. That's pretty ugly.

Anyhow, you can do the following:

`JACK_NO_START_SERVER=true mumble`


When I do that I get:

```
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<W>2020-02-28 18:04:06.404 JackAudioSystem: unable to open client due to 2 errors:
<W>2020-02-28 18:04:06.404 JackAudioSystem: JackFailure - overall operation failed
<W>2020-02-28 18:04:06.404 JackAudioSystem: JackServerFailed - unable to connect to the JACK server
<D>2020-02-28 18:04:07.421 libopus 1.3.1 from libopus.so.0
<W>2020-02-28 18:04:07.422 CELT bitstream 8000000b from /usr/lib/mumble/libcelt0.so.0.7.0
<W>2020-02-28 18:04:07.422 CELT bitstream 80000010 from /usr/lib/mumble/libcelt0.so.0.11.0
<W>2020-02-28 18:04:07.422 Theme: "Mumble"
<W>2020-02-28 18:04:07.423 Style: "Lite"
<W>2020-02-28 18:04:07.423 --> qss: ":themes/Mumble/Lite.qss"
<W>2020-02-28 18:04:07.423 Locale is "en_US" (System: "en_US")
<W>2020-02-28 18:04:07.447 Database SQLite: "3.31.1"
<W>2020-02-28 18:04:07.450 Overlay: Listening on "/run/user/1000/MumbleOverlayPipe"
<W>2020-02-28 18:04:07.455 Updating application palette
<W>2020-02-28 18:04:07.469 GlobalShortcutX: Using XI2 2.3
<W>2020-02-28 18:04:07.743 AudioInput: Opus encoder set for VOIP
<W>2020-02-28 18:04:07.743 AudioInput: 75000 bits/s, 48000 hz, 480 sample
<W>2020-02-28 18:04:07.743 PulseAudio: Starting input alsa_input.pci-0000_00_1b.0.analog-stereo
<W>2020-02-28 18:04:07.743 PulseAudio: Starting echo: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
<W>2020-02-28 18:04:07.744 PulseAudio: Starting output: alsa_output.pci-0000_00_1b.0.analog-stereo
<W>2020-02-28 18:04:07.746 AudioOutput: Initialized 2 channel 44100 hz mixer
<W>2020-02-28 18:04:07.750 AudioInput: Initialized mixer for 1 channel 44100 hz mic and 0 channel 48000 hz echo
warning: The VAD has been replaced by a hack pending a complete rewrite
<W>2020-02-28 18:04:09.744 AudioInput: Initialized mixer for 1 channel 44100 hz mic and 1 channel 44100 hz echo
warning: The VAD has been replaced by a hack pending a complete rewrite
<W>2020-02-28 18:04:09.747 AudioInput: ECHO CANCELLER ACTIVE
<W>2020-02-28 18:05:38.407 AudioInput: Opus encoder set for VOIP
<W>2020-02-28 18:05:38.407 AudioInput: 75000 bits/s, 48000 hz, 480 sample
<W>2020-02-28 18:05:38.408 AudioOutput: Initialized 2 channel 44100 hz mixer
<W>2020-02-28 18:05:38.408 AudioInput: Initialized mixer for 0 channel 48000 hz mic and 1 channel 44100 hz echo
<W>2020-02-28 18:05:38.409 AudioInput: Initialized mixer for 1 channel 44100 hz mic and 1 channel 44100 hz echo
warning: The VAD has been replaced by a hack pending a complete rewrite
<W>2020-02-28 18:05:38.419 AudioInput: ECHO CANCELLER ACTIVE
<W>2020-02-28 18:05:42.764 PulseAudio: Forcibly disconnected from PulseAudio
JACK_NO_START_SERVER=true mumble 9.50s user 1.46s system 11% cpu 1:36.44 total
```

If the environment variable `$JACK_NO_START_SERVER` is defined (can be anything) mumble will not be able to try to start a server by itself. This kind of client based autostart is not only very intransparent, but also very annoying sadly.

Let's see whether we can patch this.
Comment by David RICQ (Inglebard) - Friday, 28 February 2020, 17:20 GMT
Yep, `JACK_NO_START_SERVER=true mumble` works as expected.

`mumble` alone not works.

`env | grep "JACK_NO_START_SERVER"` is empty.
Comment by David Runge (dvzrv) - Friday, 28 February 2020, 17:22 GMT
Sieving through the pull request, that added native JACK support back in 2018 [1] I see the culprit:

Mumble indeed by default tries to start a JACK server, if there is none. This is not really great, but can be turned off by a configuration setting (in ~/.config/Mumble/Mumble.conf):

```
[jack]
startserver=false
```

In reverse, this means: Mumble is unaware of any JACK server, that was started *after* Mumble was started. Sadly not a great design choice.

At any rate: I think this could be either patched or added as a post upgrade warning/ wiki entry.

[1] https://github.com/mumble-voip/mumble/pull/3396#issue-181642480
Comment by David RICQ (Inglebard) - Friday, 28 February 2020, 18:37 GMT
Thanks for pointing out a solution.
I will update my configuration file.
Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 01 March 2020, 06:57 GMT
I think we should enable JACK to work but we should also NOT make it start JACK by default via patching. Whereever it reads the config we should have it default to `false` instead of the current `true` in case it doesn't find the `startserver` directive.
Comment by David Runge (dvzrv) - Saturday, 07 March 2020, 23:13 GMT
I've added an upstream ticket for this issue: https://github.com/mumble-voip/mumble/issues/3989

Also, please test 1.3.0-7 in [community-testing], in which unconditional autostarting of a JACK server is now disabled.
Comment by David RICQ (Inglebard) - Monday, 09 March 2020, 08:10 GMT
Hi,

1.3.0-7 works for me without ```[jack] startserver=false``` in ~/.config/Mumble/Mumble.conf.
Thanks

Loading...