Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Listing devices cannot connect to server

Abierto
#605 2 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust

Línea de trabajo

Start by reading the Linux device enumeration path used by HostTrait::devices() and compare its behavior with the reported ALSA device list and JACK connection warnings. The report includes a Rust example and CPAL 0.13.4 output, but does not identify the failing component or expected behavior. Done means determining whether device listing is failing and documenting or fixing the cause.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

host - alsa platform - linux

CPAL Version: 0.13.4
Distro: Garuda Dragonized Linux

I don't really know what's causing this issue, but here's the code I've tried and the output of it

use cpal::default_host;
use cpal::traits::{DeviceTrait, HostTrait};

fn main() {
  let host = default_host();

  println!("{:?}", cpal::available_hosts());

  let devices = host
    .devices()
    .map(|it| it.map(|it| it.name()))
    .unwrap()
    .collect::<Result<Vec<_>, _>>()
    .unwrap();

  println!("{:?}", devices);
}
[Alsa]
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
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
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_usb_stream.c:503:(_snd_pcm_usb_stream_open) Unknown field hint
ALSA lib pcm_usb_stream.c:503:(_snd_pcm_usb_stream_open) Unknown field hint
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_usb_stream.c:503:(_snd_pcm_usb_stream_open) Unknown field hint
ALSA lib pcm_usb_stream.c:503:(_snd_pcm_usb_stream_open) Unknown field hint
ALSA lib pcm_usb_stream.c:503:(_snd_pcm_usb_stream_open) Unknown field hint
ALSA lib pcm_usb_stream.c:503:(_snd_pcm_usb_stream_open) Unknown field hint
ALSA lib pcm_dmix.c:1035:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_usb_stream.c:503:(_snd_pcm_usb_stream_open) Unknown field hint
ALSA lib pcm_usb_stream.c:503:(_snd_pcm_usb_stream_open) Unknown field hint
["pipewire", "pulse", "default", "hdmi:CARD=NVidia,DEV=0", "hdmi:CARD=NVidia,DEV=1", "hdmi:CARD=NVidia,DEV=2", "hdmi:CARD=NVidia,DEV=3", "hdmi:CARD=NVidia,DEV=4", "hdmi:CARD=NVidia,DEV=5", "hdmi:CARD=NVidia,DEV=6", "sysdefault:CARD=Generic", "front:CARD=Generic,DEV=0", "surround21:CARD=Generic,DEV=0", "surround40:CARD=Generic,DEV=0", "surround41:CARD=Generic,DEV=0", "surround50:CARD=Generic,DEV=0", "surround51:CARD=Generic,DEV=0", "surround71:CARD=Generic,DEV=0", "iec958:CARD=Generic,DEV=0", "sysdefault:CARD=Microphone", "front:CARD=Microphone,DEV=0", "surround21:CARD=Microphone,DEV=0", "surround40:CARD=Microphone,DEV=0", "surround41:CARD=Microphone,DEV=0", "surround50:CARD=Microphone,DEV=0", "surround51:CARD=Microphone,DEV=0", "surround71:CARD=Microphone,DEV=0", "iec958:CARD=Microphone,DEV=0", "sysdefault:CARD=C920", "front:CARD=C920,DEV=0"]

Process finished with exit code 0
Lenguaje dominante
Rust
Estrellas
4k
Forks
554
Merge medio
3 d 3 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RustAudio/cpal

Todos los issues de RustAudio/cpal

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.