Skip to content

[Problem]: Error identifying output sample formats #2244

Description

@nicolas314

What happened?

Getting a crash with shairport-sync (shairport-sync-5.0.4-r0) on Alpine v3.24 (kernel 6.18.40-0-lts).
The audio backend is ALSA. Same crash with a USB audio device or the motherboard sound system, and everything works fine with mpg123 via ALSA.
Program starts fine, but when a client connects it hangs with:

        15.333753904 "audio.c:1043" output configuration search for request: S16/44100/2 failed.
         0.000075084 "player.c:2406" *fatal error: An unknown format was encountered while choosing output bit depth. Please check your configuration and settings.

I tried all possible configuration settings and they all lead to the same outcome.
This works fine on Alpine 3.23 (shairport-sync-4.3.7-r1 and kernel 6.12.85) with various sound cards behind ALSA. Playing sounds with e.g. mpg123 works fine through ALSA for all versions.

I tried compiling the shairport-sync developement branch and get the same behaviour. I suspect a change in ALSA between kernel versions, that triggers an uncaught error in shairport-sync, but not sure.

Relevant log output

15.333753904 "audio.c:1043" output configuration search for request: S16/44100/2 failed.
         0.000075084 "player.c:2406" *fatal error: An unknown format was encountered while choosing output bit depth. Please check your configuration and settings.

System Information.

Raspberry Pi 3B running Alpine Linux v3.23 and v3.24. Sound through either USB audio or Raspberry Pi jack, through ALSA.

Configuration Information.

general =
{
    name = "office";
    ignore_volume_control = "yes";
    //service_type = "airplay2";
};

audio_backend = "alsa";

alsa =
{
    output_device = "default";
    mixer_device = "default";
    output_format = "S32";
};

diagnostics =
{
   log_output_to = "syslog";
   log_verbosity = 1 ;
};

PulseAudio or PipeWire installed?

  • Check if your system uses a Sound Server.

How did you install Shairport Sync?

A package manager (apt, apt install, yum, pkg, etc.)

Check previous issues

  • Confirm

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions