Skip to content

Add UI clarification for: "could not open audio device (Device or resource busy)" #3227

@Reelix

Description

@Reelix

Every now and then I open DeaDBeeF and attempt to play a chapter of an audiobook (.m4b files), and receive the following (Full output for reference)

starting deadbeef 1.10.0 [static] [portable]
server_start
searching for GUI plugins in /home/reelix/.local/lib64/deadbeef
searching for GUI plugins in /home/reelix/.local/lib/deadbeef
searching for GUI plugins in /home/reelix/utils/deadbeef-1.10.0/plugins
load_plugin_dir /home/reelix/utils/deadbeef-1.10.0/plugins: scandir found 58 files
found gui plugin ddb_gui_GTK2.so
added GTK2 gui plugin
found gui plugin ddb_gui_GTK3.so
added GTK3 gui plugin
load gui plugin
checking GUI plugin: GTK2
found selected GUI plugin: GTK2
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_gui_GTK2.so
dlopen error: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
trying /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_gui_GTK2.fallback.so...
selected GUI plugin not found or failed to load, trying to find another GUI plugin
the plugin not found or failed to load
the plugin not found or failed to load
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_gui_GTK2.so
dlopen error: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
trying /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_gui_GTK2.fallback.so...
the plugin not found or failed to load
the plugin not found or failed to load
the plugin not found or failed to load
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_gui_GTK3.so
loading plugins from /home/reelix/.local/lib64/deadbeef
loading plugins from /home/reelix/.local/lib/deadbeef
loading plugins from /home/reelix/utils/deadbeef-1.10.0/plugins
load_plugin_dir /home/reelix/utils/deadbeef-1.10.0/plugins: scandir found 58 files
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/aac.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/adplug.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/alac.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/alsa.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/artwork.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/cdda.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/converter.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/converter_gtk2.so
dlopen error: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
trying /home/reelix/utils/deadbeef-1.10.0/plugins/converter_gtk2.fallback.so...
plugin converter_gtk2.so not found or failed to load
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/converter_gtk3.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/dca.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_dsp_libretro.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_dumb.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_mono2stereo.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_out_pw.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_shn.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ddb_soundtouch.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/dsp_libsrc.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ffap.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/ffmpeg.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/flac.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/gme.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/hotkeys.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/in_sc68.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/lastfm.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/m3u.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/medialib.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/mms.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/mp3.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/musepack.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/notify.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/nullout.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/opus.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/oss.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/pltbrowser_gtk2.so
dlopen error: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
trying /home/reelix/utils/deadbeef-1.10.0/plugins/pltbrowser_gtk2.fallback.so...
plugin pltbrowser_gtk2.so not found or failed to load
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/pltbrowser_gtk3.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/psf.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/pulse.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/rg_scanner.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/shellexec.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/shellexecui_gtk2.so
dlopen error: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
trying /home/reelix/utils/deadbeef-1.10.0/plugins/shellexecui_gtk2.fallback.so...
plugin shellexecui_gtk2.so not found or failed to load
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/shellexecui_gtk3.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/sid.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/sndfile.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/supereq.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/tta.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/vfs_curl.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/vfs_zip.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/vorbis.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/vtx.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/wavpack.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/wildmidi.so
loading plugin /home/reelix/utils/deadbeef-1.10.0/plugins/wma.so
starting plugin GTK3 user interface
starting plugin AAC player
starting plugin Adplug player
starting plugin ALAC player
starting plugin ALSA output plugin
starting plugin Album Artwork
starting plugin Audio CD player
starting plugin Converter
starting plugin Converter UI
starting plugin dts decoder
starting plugin Resampler (Libretro)
starting plugin DUMB module player
starting plugin Mono to stereo
starting plugin PipeWire output plugin
starting plugin Shorten player
starting plugin Soundtouch
starting plugin Resampler (Secret Rabbit Code)
starting plugin Monkey's Audio (APE) decoder
starting plugin FLAC decoder
starting plugin Game-Music-Emu player
starting plugin Hotkey manager
starting plugin SC68 player (Atari ST SNDH YM2149)
starting plugin last.fm scrobbler
starting plugin M3U and PLS support
starting plugin Media Library
starting plugin mms vfs
starting plugin MP3 player
starting plugin MusePack decoder
starting plugin OSD Notify
starting plugin Null output plugin
starting plugin Opus player
starting plugin OSS output plugin
starting plugin Playlist Browser
starting plugin PSF player using Audio Overload SDK
starting plugin PulseAudio output plugin
starting plugin ReplayGain Scanner
starting plugin Shell commands
starting plugin Shellexec UI
starting plugin SID player
starting plugin WAV/PCM player
starting plugin SuperEQ
starting plugin tta decoder
starting plugin cURL vfs
starting plugin ZIP vfs
starting plugin Ogg Vorbis decoder
starting plugin VTX player
starting plugin WavPack decoder
starting plugin WildMidi player
starting plugin WMA player
starting plugin stdio vfs
starting plugin FFMPEG audio player
selected output plugin: ALSA output plugin
INFO: from file /home/reelix/.config/deadbeef/playlists/0.dbpl
resume: track 4 pos 0.000000 playlist 0
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
could not open audio device (Device or resource busy)
gtkui plugin compiled for gtk version: 3.10.8

(deadbeef:853820): Gtk-CRITICAL **: 23:24:43.024: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
connecting button tray signals
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
could not open audio device (Device or resource busy)

This happens daily, and I'm not really sure what causes it, but the UI has zero feedback. Click play. Nothing happens. No audio. No icon change. Nothing. I had to launch it VIA console to figure out what the issue was.

Whilst I'm unsure what the specific issue is, I do know that running

systemctl --user restart pipewire.service pipewire-pulse.service wireplumber.service

Fixes the issue (I can open a new console tab, run the command, alt+tab back, click play and get audio), so it's likely related to one of those services.

However, the UI should give some indication that there is some issue instead of silently failing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions