sniffnet: ALSA function 'snd_pcm_open' failed with error 'EHOSTDOWN: Host is down'

The application crashes when I try to raise the notification volume:

thread 'thread_play_sound' panicked at 'called `Result::unwrap()` on an `Err` value:
DefaultStreamConfigError(BackendSpecific { err: BackendSpecificError { 
    description: "ALSA function 'snd_pcm_open' failed with error 'EHOSTDOWN: Host is down'" 
} })',
src/notifications/types/sound.rs:61:72

To Reproduce

  1. Open the application.
  2. Enter the password for sudo.
  3. Click on the settings button.
  4. Slide the notification volume to the right (for a higher volume).
  5. The application crashes.

Expected behavior

The application should continue running.

Crash log Here it is: crash.log

Environment

  • Version: 1.2.0
  • OS: Debian Linux 12. Linux 6.1.0.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 29 (13 by maintainers)

Most upvoted comments

Installing works and the issue is fixed.

Also:

$ getcap /usr/bin/sniffnet
/usr/bin/sniffnet cap_net_admin,cap_net_raw=eip
$ grep '^Exec=' /usr/share/applications/sniffnet.desktop
Exec=/usr/bin/sniffnet

So the executable capabilities are set correctly and sudo is not used.

This issue has been addressed in my incoming PR. (#228 is also considered)