Skip to content

ALSA crash on init with EINVAL in snd_pcm_sw_params #66

Description

@jtsiomb

martypc crashes on init on my GNU/Linux system with: thread 'main' panicked at 'Failed to build an output audio stream: BackendSpecific { err: BackendSpecificError { description: "ALSA function 'snd_pcm_sw_params' failed with error 'EINVAL: Invalid argument'" } }', /usr/local/src/martypc/core/src/sound.rs:146:14

I'm running debian GNU/Linux without any audio daemons, just ALSA. The version of martypc I've built is the current git HEAD (f18b73e).

Here's the relevant part of a full backtrace, with all the rust unwind and backtrace display noise removed:

16:     0x5555557b5a2d - core::result::Result<T,E>::expect::h5577ddc278659af8
                           at /usr/src/rustc-1.70.0/library/core/src/result.rs:1046:23
17:     0x5555557a86dc - marty_core::sound::SoundPlayer::new::h52d87d0165aed411
                           at /usr/local/src/martypc/core/src/sound.rs:139:29
18:     0x5555557940df - martypc_pixels_desktop::run::h7f3e9de3742bc3cb
                           at /usr/local/src/martypc/frontends/martypc_pixels_desktop/src/lib.rs:523:36
19:     0x5555557917c7 - martypc::main::h2ad35e0e7d3e7dd8
                           at /usr/local/src/martypc/frontends/martypc_pixels_desktop/src/main.rs:38:5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions