--- Begin Message ---
---------- Forwarded Message ----------
Subject: Bug#469061: twinkle: alsa audio troubles: ALSA lib
pcm_dmix.c:866:(snd_pcm_dmix_open) unable to open slave
Date: Monday 03 March 2008
From: Jens Thiele <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Package: twinkle
Version: 1:1.1-2+b2
Severity: normal
I have some problems gettings conferencing to work.
Accepting a first call works. If I accept the second incoming call twinkle
hangs.
In the twinkle log file (~/.twinkle/twinkle.log) I get:
+++ 2-3-2008 14:57:32.032258 CRITICAL NORMAL t_alsa_io::open
snd_pcm_open failed: Das Gerät oder die Ressource ist belegt
(maybe I should have used LC_ALL=C - it means resource is busy)
On stdout(or stderr) I get:
ALSA lib pcm_dmix.c:866:(snd_pcm_dmix_open) unable to open slave
An strace shows:
gettimeofday({1204462694, 853916}, NULL) = 0
write(10, "+++ 2-3-2008 13:58:14.853916 INF"..., 64) = 64
write(10, "Opened /usr/share/sounds/linphon"..., 53) = 53
write(10, "---\n\n", 5) = 5
_llseek(10, 0, [102475], SEEK_CUR) = 0
clone(child_stack=0xafffe4b4,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_S\
ETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xafffebd8, {entry_number:6,
base_addr:0xafffeb90, limit:1048575, seg_32bit:1, contents:0, read_\
exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1},
child_tidptr=0xafffebd8) = 25329
write(3, "\22\0H\2\263\1`\3\25\1\0\0\6\0\0\0 \377\377\377B\2\0\0"..., 2604)
= 2604
read(3, 0xbfbff02c, 32) = -1 EAGAIN (Resource temporarily
unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "\34=\266\206\263\1`\3\25\1\0\0\3101\222o\0\0\0\0\0\0\0"..., 32) =
32
read(3, "[EMAIL PROTECTED]"..., 32) = 32
readv(3, [{"\370\3\0\0\374\247k\10\376O\353\267\377?\36\10\377\37\0"...,
52}, {"", 0}], 2) = 52
gettimeofday({1204462694, 857572}, NULL) = 0
ioctl(5, FIONREAD, [1]) = 0
ioctl(5, FIONREAD, [1]) = 0
ioctl(5, FIONREAD, [1]) = 0
ioctl(5, FIONREAD, [1]) = 0
ioctl(5, FIONREAD, [1]) = 0
ioctl(5, FIONREAD, [1]) = 0
ioctl(5, FIONREAD, [1]) = 0
write(3, ";\3\21\0\354\2`\3\0\0\0\0\3\0\0\0\7\0\1\0\2\0\1\0\t\0\1"...,
3608) = 3608
read(3, 0xbfc0089c, 32) = -1 EAGAIN (Resource temporarily
unavailable)
poll(ALSA lib pcm_dmix.c:866:(snd_pcm_dmix_open) unable to open slave
[{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "[EMAIL PROTECTED]"..., 32) = 32
readv(3, [{"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
2304}, {"", 0}], 2) = 2304
write(3, "I\2\5\0I\3`\3\0\0\0\0\30\0\30\0\377\377\377\377", 20) = 20
read(3, 0xbfc0089c, 32) = -1 EAGAIN (Resource temporarily
unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "\1\10o\207\220\0\0\0\0\0\0\0h\23\205\277\357#\34\10\370"..., 32) =
32
readv(3, [{"\0\0\0\0\0\0\0\0\0\0\0\no\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
576}, {"", 0}], 2) = 576
write(3, "\22\0H\2\263\1`\3\25\1\0\0\6\0\0\0 \377\377\377B\2\0\0"..., 2356)
= 2356
read(3, 0xbfc00d2c, 32) = -1 EAGAIN (Resource temporarily
unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "\34=p\207\263\1`\3\25\1\0\0\3161\222o\0\0\0\0\0\0\0\0\263"..., 32)
= 32
read(3, "[EMAIL PROTECTED]"..., 32) = 32
readv(3, [{"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
2304}, {"", 0}], 2) = 2304
write(3, "I\2\5\0I\3`\3\0\0\0\0\30\0\30\0\377\377\377\377", 20) = 20
read(3, 0xbfc00d2c, 32) = -1 EAGAIN (Resource temporarily
unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "\1\10r\207\220\0\0\0\0\0\0\0h\23\205\277\357#\34\10\370"..., 32) =
32
readv(3, [{"\0\0\0\0\0\0\0\0\0\0\0\no\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
576}, {"", 0}], 2) = 576
gettimeofday({1204462694, 863836}, NULL) = 0
write(10, "+++ 2-3-2008 13:58:14.863836 INF"..., 58) = 58
write(10, "Stopping tone.\n", 15) = 15
write(10, "---\n\n", 5) = 5
_llseek(10, 0, [102777], SEEK_CUR) = 0
futex(0xb081099c, 0x80 /* FUTEX_??? */, 0
Playing with .asoundrc doesn't help.
I can run multiple instances of:
{ arecord | aplay; } &
just fine.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.23.13-3-mcore2-imq (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages twinkle depends on:
ii kdelibs4c2a 4:3.5.8.dfsg.1-7 core libraries and binaries for al
ii libasound2 1.0.15-3 ALSA library
ii libboost-regex1.34.1 1.34.1-6 regular expression library for C++
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libccrtp1-1.6-0 1.6.0-1 Common C++ class framework for RTP
ii libcommoncpp2-1.6-0 1.6.0-1 A GNU package for creating portabl
ii libgcc1 1:4.3-20080202-1 GCC support library
ii libgsm1 1.0.12-1 Shared libraries for GSM speech co
ii libqt3-mt 3:3.3.8b-4 Qt GUI Library (Threaded runtime v
ii libsndfile1 1.0.17-4 Library for reading/writing audio
ii libspeex1 1.1.12-3 The Speex Speech Codec
ii libstdc++6 4.3-20080202-1 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar
ii libxml2 2.6.31.dfsg-1 GNOME XML library
ii libzrtpcpp-0.9.2deb0 0.9.2-3+b1 ccrtp extension for zrtp/Zfone sup
ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime
twinkle recommends no packages.
-- no debconf information
From: Jens Thiele <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: testing with twinkle 1.2: it seems it is caused by the ring script
Date: Mon, 07 Apr 2008 21:28:11 +0200
Package: twinkle
Version: 1:1.2-1
Followup-For: Bug #469061
after updating to 1.2-1 I tested again. This time I found out that my problem
is caused by using a ring script. (script_incoming_call=)
The strange thing is that using a minimal script like:
,----
| #!/bin/bash
| echo end
| exit 0
`----
it works. (The only minor issue is that there is no audible signal for the
incoming second call - but this probably is a separate wishlist bug)
Using a script like:
,----
| #!/bin/bash
| echo end
| for i in $(seq 0 2); do
| sleep 3
| done </dev/null >/dev/null 2>&1 &
| disown %1
| exit 0
`----
i get the error message again:
,----
| ALSA lib pcm_dsnoop.c:574:(snd_pcm_dsnoop_open) unable to open slave
| ALSA lib pcm_dsnoop.c:574:(snd_pcm_dsnoop_open) unable to open slave
| ALSA lib pcm_dsnoop.c:574:(snd_pcm_dsnoop_open) unable to open slave
`----
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages twinkle depends on:
ii kdelibs4c2a 4:3.5.9.dfsg.1-2+b1 core libraries and binaries for al
ii libasound2 1.0.16-2 ALSA library
ii libboost-regex1.34.1 1.34.1-11 regular expression library for C++
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libccrtp1-1.6-0 1.6.0-1 Common C++ class framework for RTP
ii libcommoncpp2-1.6-0 1.6.1-1 A GNU package for creating portabl
ii libgcc1 1:4.3.0-1 GCC support library
ii libgsm1 1.0.12-1 Shared libraries for GSM speech co
ii libqt3-mt 3:3.3.8b-5 Qt GUI Library (Threaded runtime v
ii libsndfile1 1.0.17-4 Library for reading/writing audio
ii libspeex1 1.1.12-3 The Speex Speech Codec
ii libstdc++6 4.3.0-1 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxml2 2.6.31.dfsg-2 GNOME XML library
ii libzrtpcpp-0.9.2deb0 0.9.2-3+b1 ccrtp extension for zrtp/Zfone sup
ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime
twinkle recommends no packages.
-- no debconf information
-------------------------------------------------------
--- End Message ---