KISS-multiplayer icon indicating copy to clipboard operation
KISS-multiplayer copied to clipboard

[Linux] Unable to join any server

Open sapientsand opened this issue 4 years ago • 5 comments

I'm unable to join any server with the bridge launched even after reinstalling KissMP, the bridge spits out this error instead.

thread '' panicked at 'called Result::unwrap() on an Err value: BackendSpecific { err: BackendSpecificError { description: "ALSA function 'snd_pcm_hw_params_set_buffer_size' failed with error 'EINVAL: Invalid argument'" } }', kissmp-bridge/src/voice_chat.rs:165:18 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace thread 'tokio-runtime-worker' panicked at 'build_output_stream failed with all supported formats: BackendSpecific { err: BackendSpecificError { description: "ALSA function 'snd_pcm_start' failed with error 'EBADFD: File descriptor in bad state'" } }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rodio-0.13.1/src/stream.rs:208:22

sapientsand avatar Jun 27 '21 04:06 sapientsand

Try to update your pulseaudio and alsa. Error doesn't make much sense. I'll look onto it if it doesn't help

TheHellBox avatar Jul 07 '21 06:07 TheHellBox

Try to update your pulseaudio and alsa. Error doesn't make much sense. I'll look onto it if it doesn't help

They were already at the latest versions iirc, and even after updating to 0.4.5 along with updating my system this issue still occurs.

sapientsand avatar Jul 19 '21 17:07 sapientsand

Same error, installed today and cannot host or join a server.

joshuaelmbla avatar Dec 07 '21 03:12 joshuaelmbla

I believe it's caused by the sound input device requirement. ALSA flips devices around at each boot, sometimes in a way breaks KissMP. Just keep rebooting your PC until it starts working.

I suppose a more solid workaround might be to manually configure ALSA to always be KissMP friendly somehow, but IDK how and I'm too lazy to figure it out right now.

Or, does anyone know how to tell KissMP to ignore ALSA and only use Pulseaudio? Better yet, remove the sound input device requirement. Please answer me this; why is it even a requirement?

ghost avatar Jan 24 '22 21:01 ghost

I believe it's caused by the sound input device requirement. ALSA flips devices around at each boot, sometimes in a way breaks KissMP. Just keep rebooting your PC until it starts working.

I suppose a more solid workaround might be to manually configure ALSA to always be KissMP friendly somehow, but IDK how and I'm too lazy to figure it out right now.

Or, does anyone know how to tell KissMP to ignore ALSA and only use Pulseaudio? Better yet, remove the sound input device requirement. Please answer me this; why is it even a requirement?


Because of the voice chat portion of the mod?

koutsie avatar Nov 26 '22 16:11 koutsie