RE: [gentoo-user] Mysterious library access...
Meino.Cramer@ wrote: Hi, After trying to play a flac-file with mpv I got this error message: Playing: Track_01.flac (+) Audio --aid=1 (flac) File tags: Artist: Unknown Album: Unknown Disc Genre: Alternative Title: Track 01 Track: 1 ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave That's just debug output. In order to make dev's live easier alsa-lib uses __FILE__ and __LINE__ macros to point to the exact place where the debug output happened. As portage compiles in /var/tmp/portage/... the debug output mentions that file (note the .c suffix - not .so so it's not a library ;)) To fix your actual problem (no audio) we need to know how you configured audio (pure alsa/pulseaudio/...) and which USE-Flags you have enabled for mpv and ffmpeg. [ao/alsa] Playback open error: Device or resource busy connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory) attempt to connect to server failed [ao/jack] cannot open server ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave Could not open/initialize audio device - no sound. Audio: no audio : 00:00:00 / 00:05:56 (0%) I reinstalled alsa-lib and mpv but the problem remains: Why does alsa tries to load a library which is meant to be found under /var/tmp/portage? Best regards, Meino
Re: [gentoo-user] Mysterious library access...
On Sun, 21 Jun 2015 10:27:33 +0200 meino.cra...@gmx.de wrote: Hi, After trying to play a flac-file with mpv I got this error message: Playing: Track_01.flac (+) Audio --aid=1 (flac) File tags: Artist: Unknown Album: Unknown Disc Genre: Alternative Title: Track 01 Track: 1 ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave [ao/alsa] Playback open error: Device or resource busy connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory) attempt to connect to server failed [ao/jack] cannot open server ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave Could not open/initialize audio device - no sound. Audio: no audio : 00:00:00 / 00:05:56 (0%) I reinstalled alsa-lib and mpv but the problem remains: Why does alsa tries to load a library which is meant to be found under /var/tmp/portage? That probably means some debug message from alsa-lib where for example pcm_dmix.c:1024 is a source file 'pcm_dmix.c' and :1024 is a line where the falling function call is. It probably tries to open '/dev/shm/jack-0/default/jack_0' maybe your alsa configuration is a problem, or missing some kernel functionallity (just guessing). Using 'jack-audio-connection-kit'?
Re: [gentoo-user] Mysterious library access...
bitlord bitlord0...@gmail.com [15-06-21 10:48]: On Sun, 21 Jun 2015 10:27:33 +0200 meino.cra...@gmx.de wrote: Hi, After trying to play a flac-file with mpv I got this error message: Playing: Track_01.flac (+) Audio --aid=1 (flac) File tags: Artist: Unknown Album: Unknown Disc Genre: Alternative Title: Track 01 Track: 1 ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave [ao/alsa] Playback open error: Device or resource busy connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory) attempt to connect to server failed [ao/jack] cannot open server ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave Could not open/initialize audio device - no sound. Audio: no audio : 00:00:00 / 00:05:56 (0%) I reinstalled alsa-lib and mpv but the problem remains: Why does alsa tries to load a library which is meant to be found under /var/tmp/portage? That probably means some debug message from alsa-lib where for example pcm_dmix.c:1024 is a source file 'pcm_dmix.c' and :1024 is a line where the falling function call is. It probably tries to open '/dev/shm/jack-0/default/jack_0' maybe your alsa configuration is a problem, or missing some kernel functionallity (just guessing). Using 'jack-audio-connection-kit'? Hi, Ah!Oh! Yes...I see...sorry for my blurred view to this problem. Yes, I am trying to use jackd with mpv, whcih leads to this error. My setup is: jackd, alsa mpv After stopping jackd I can play the track with mpv...so alsa as such seem to be well and up running. Enabling jackd again shows this (this time I will post the whole thing ... so nothing is censored by me... ;) File tags: Artist: Unknown Album: Unknown Disc Genre: Alternative Title: Track 02 Track: 2 ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave [ao/alsa] Playback open error: Device or resource busy AO: [jack] 48000Hz stereo 2ch floatp A: 00:00:09 / 00:11:54 (1%) BUT it plays this time... Do I have kill jackd, play something with alsa, restart jackd and it works ... ? Sounds silly...but at least it sounds. What's going on here? Best regards, Meino
Re: [gentoo-user] Mysterious library access...
bitlord bitlord0...@gmail.com [15-06-21 10:48]: On Sun, 21 Jun 2015 10:27:33 +0200 meino.cra...@gmx.de wrote: Hi, After trying to play a flac-file with mpv I got this error message: Playing: Track_01.flac (+) Audio --aid=1 (flac) File tags: Artist: Unknown Album: Unknown Disc Genre: Alternative Title: Track 01 Track: 1 ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave [ao/alsa] Playback open error: Device or resource busy connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory) attempt to connect to server failed [ao/jack] cannot open server ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave Could not open/initialize audio device - no sound. Audio: no audio : 00:00:00 / 00:05:56 (0%) I reinstalled alsa-lib and mpv but the problem remains: Why does alsa tries to load a library which is meant to be found under /var/tmp/portage? That probably means some debug message from alsa-lib where for example pcm_dmix.c:1024 is a source file 'pcm_dmix.c' and :1024 is a line where the falling function call is. It probably tries to open '/dev/shm/jack-0/default/jack_0' maybe your alsa configuration is a problem, or missing some kernel functionallity (just guessing). Using 'jack-audio-connection-kit'? sorry... This happens before: Exiting... (Errors when loading file) [1]23147 exit 2 mpv -ao jack Track_01.flac solfire:mccramer/Unknown_Discsudo mpv -ao jack Track_01.flac Playing: Track_01.flac (+) Audio --aid=1 (flac) File tags: Artist: Unknown Album: Unknown Disc Genre: Alternative Title: Track 01 Track: 1 connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory) attempt to connect to server failed [ao/jack] cannot open server [ao] Failed to initialize audio driver 'jack' Could not open/initialize audio device - no sound. Audio: no audio (work with any track...) Best regards, Meino