Last week, mplayer and vlc started complaining about video port being blocked by another process (no clue which one).
ps -A gave a quick look at a process which got defunct (has to do with some lockup issues). Explicitly killing that process (kill -9
After a long time looking out for what was the problem, got on this page (https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/85157). Apparently the process which was killed contained the shared memory access to the sound device and it died with that. So, none of the other process got the sound card.
The solution was simple, though one among the best solutions I have seen
$ strace -o /tmp/out mplayer -ao alsa file.mp3
$ grep shmget /tmp/out
get one important line:
shmget(5678293, 384, IPC_CREAT|0660) = 48824355
$ ipcrm -M 5678293
Phew, sound was back !
No comments:
Post a Comment