Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472546 - app-emulation/emul-linux-x86-soundlibs-20130224 fails to play sound through ALSA
Summary: app-emulation/emul-linux-x86-soundlibs-20130224 fails to play sound through ALSA
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Multilib team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-07 06:12 UTC by Roc Vallès
Modified: 2015-06-02 08:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roc Vallès 2013-06-07 06:12:12 UTC
Used to work for years. I hadn't used skype (native 32bit) or foobar2k (wine 32bit) in a while, and now it seems that it won't work no matter what, both of them throwing a bunch of such errors:

rvalles@reimu ~/.wine/drive_c/Program Files (x86)/foobar2000 $ wine foobar2000.exe 
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
ALSA lib conf.c:3700:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib conf.c:3700:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL hw:0
ALSA lib conf.c:3700:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL hw:1
ALSA lib conf.c:3700:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL hw:2
ALSA lib conf.c:3700:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib conf.c:3700:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL hw:0
ALSA lib conf.c:3700:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL hw:1
ALSA lib conf.c:3700:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL hw:2

Note the file it complains about does exist and is world readable, can be read (as demonstrated by wc) and doesn't seem corrupted from a glance (nor has it been modified from the one gentoo installed).

reimu ~ # ls -l /usr/share/alsa/alsa.conf
-rw-r--r-- 1 root root 9184  9 mai 10:34 /usr/share/alsa/alsa.conf
reimu ~ # wc /usr/share/alsa/alsa.conf
 618 1107 9184 /usr/share/alsa/alsa.conf

64bit apps that use alsa sound have no trouble at all. I'm not using pulseaudio or the like, but the xfi driver, which does hardware mixing/resampling and therefore there's no trouble with multiple apps using sound at the same time:

reimu ~ # cat /proc/asound/cards
 0 [XFi            ]: SB-XFi - Creative X-Fi
                      Creative X-Fi 20K2 SB0880
 1 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfdff8000 irq 46
 2 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xfdcfc000 irq 47
reimu ~ # cat /proc/asound/devices
  2: [ 1- 2]: digital audio capture
  3: [ 1- 1]: digital audio playback
  4: [ 1- 1]: digital audio capture
  5: [ 1- 0]: digital audio playback
  6: [ 1- 0]: digital audio capture
  7: [ 1]   : control
  8: [ 0- 4]: digital audio playback
  9: [ 0- 3]: digital audio playback
 10: [ 0- 2]: digital audio playback
 11: [ 0- 1]: digital audio playback
 12: [ 0- 0]: digital audio playback
 13: [ 0- 0]: digital audio capture
 14: [ 0]   : control
 15: [ 2- 3]: digital audio playback
 16: [ 2]   : control
 33:        : timer
reimu ~ # cat /proc/asound/pcm
00-00: ctxfi : Front/WaveIn : playback 256 : capture 1
00-01: ctxfi : Surround : playback 256
00-02: ctxfi : Center/LFE : playback 256
00-03: ctxfi : Side : playback 256
00-04: ctxfi : IEC958 Non-audio : playback 1
01-00: ID 885 Analog : ID 885 Analog : playback 1 : capture 1
01-01: ID 885 Digital : ID 885 Digital : playback 1 : capture 1
01-02: ID 885 Alt Analog : ID 885 Alt Analog : capture 2
02-03: HDMI 0 : HDMI 0 : playback 1

Note this is without using an asoundrc file.

I'll provide more information if necessary.
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-08 11:35:57 UTC
Could you run this through  strace  to see why it cannot access the file?
Comment 2 Roc Vallès 2013-06-08 22:21:17 UTC
from skype:
[pid 11398] clock_gettime(CLOCK_MONOTONIC,  <unfinished ...>
[pid 11409] stat64("/usr/share/alsa/alsa.conf",  <unfinished ...>
[pid 11398] <... clock_gettime resumed> {68525, 423766113}) = 0
[pid 11409] <... stat64 resumed> {st_mode=S_IFREG|0644, st_size=9184, ...}) = 0
[pid 11398] clock_gettime(CLOCK_MONOTONIC,  <unfinished ...>
[pid 11409] stat64("/usr/share/alsa/alsa.conf",  <unfinished ...>
[pid 11398] <... clock_gettime resumed> {68525, 423805365}) = 0
[pid 11409] <... stat64 resumed> {st_mode=S_IFREG|0644, st_size=9184, ...}) = 0
[pid 11398] clock_gettime(CLOCK_MONOTONIC,  <unfinished ...>
[pid 11409] open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC <unfinished ...>

from wine:
[pid 13946] stat64("/usr/share/alsa/alsa.conf",  <unfinished ...>
[pid 13975] <... read resumed> "\0\0\0\0\f\0\0\0\1\0\0\0\f\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64
[pid 13951] <... writev resumed> )      = 76
[pid 13975] read(4,  <unfinished ...>
[pid 13951] epoll_wait(9,  <unfinished ...>
[pid 13975] <... read resumed> "J\0W\0P\0c\0e\0\0\0", 12) = 12
[pid 13946] <... stat64 resumed> {st_mode=S_IFREG|0644, st_size=9184, ...}) = 0
[pid 13975] rt_sigprocmask(SIG_SETMASK, [],  <unfinished ...>
[pid 13946] write(2, "ALSA lib conf.c:3700:(snd_config"..., 43ALSA lib conf.c:3700:(snd_config_update_r)  <unfinished ...>
[pid 13975] <... rt_sigprocmask resumed> NULL, 8) = 0
[pid 13946] <... write resumed> )       = 43
[pid 13975] rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO],  <unfinished ...>
[pid 13946] write(2, "Cannot access file /usr/share/al"..., 44Cannot access file /usr/share/alsa/alsa.conf <unfinished ...>
[pid 13975] <... rt_sigprocmask resumed> [], 8) = 0
[pid 13946] <... write resumed> )       = 44
[pid 13975] writev(3, [{"[\0\0\0\n\0\0\0\0\0\0\0x\0\0\0\31\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64}, {"J\0W\0P\0c\0e\0", 10}], 2 <unfinished ...>
[pid 13946] write(2, "\n", 1
 <unfinished ...>
[pid 13975] <... writev resumed> )      = 74
[pid 13951] <... epoll_wait resumed> {?} 0x7fff196d7240, 128, 2463) = 1
[pid 13975] read(4,  <unfinished ...>
[pid 13951] read(33,  <unfinished ...>
[pid 13946] <... write resumed> )       = 1
[pid 13951] <... read resumed> "[\0\0\0\n\0\0\0\0\0\0\0x\0\0\0\31\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64
[pid 13946] write(2, "ALSA lib control.c:951:(snd_ctl_"..., 47ALSA lib control.c:951:(snd_ctl_open_noupdate)  <unfinished ...>
[pid 13951] read(33,  <unfinished ...>
[pid 13946] <... write resumed> )       = 47
[pid 13951] <... read resumed> "J\0W\0P\0c\0e\0", 10) = 10
[pid 13946] write(2, "Invalid CTL hw:0", 16Invalid CTL hw:0 <unfinished ...>
[pid 13951] write(34, "\0\0\0\0\0\0\0\0\204\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64 <unfinished ...>
[pid 13946] <... write resumed> )       = 16
[pid 13975] <... read resumed> "\0\0\0\0\0\0\0\0\204\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64
[pid 13951] <... write resumed> )       = 64
[pid 13975] rt_sigprocmask(SIG_SETMASK, [],  <unfinished ...>
[pid 13951] epoll_wait(9,  <unfinished ...>
[pid 13975] <... rt_sigprocmask resumed> NULL, 8) = 0
[pid 13946] write(2, "\n", 1
 <unfinished ...>
[pid 13975] rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO],  <unfinished ...>
[pid 13946] <... write resumed> )       = 1
[pid 13975] <... rt_sigprocmask resumed> [], 8) = 0
[pid 13946] open("/dev/snd/controlC1", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid 13975] writev(3, [{"[\0\0\0\n\0\0\0\0\0\0\0\204\0\0\0\31\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64}, {"s\0h\0e\0l\0l\0", 10}], 2 <unfinished ...>
[pid 13946] <... open resumed> )        = 18
[pid 13975] <... writev resumed> )      = 74
[pid 13951] <... epoll_wait resumed> {?} 0x7fff196d7240, 128, 2462) = 1
[pid 13975] read(4,  <unfinished ...>
[pid 13951] read(33,  <unfinished ...>
[pid 13946] fcntl64(18, F_SETFD, FD_CLOEXEC <unfinished ...>
[pid 13951] <... read resumed> "[\0\0\0\n\0\0\0\0\0\0\0\204\0\0\0\31\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64
[pid 13946] <... fcntl64 resumed> )     = 0
[pid 13951] read(33,  <unfinished ...>
[pid 13946] ioctl(18, SNDRV_CTL_IOCTL_CARD_INFO or UI_DEV_CREATE <unfinished ...>
[pid 13951] <... read resumed> "s\0h\0e\0l\0l\0", 10) = 10
[pid 13946] <... ioctl resumed> , 0x32f308) = 0
[pid 13951] write(34, "\0\0\0\0\0\0\0\0\210\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64 <unfinished ...>
[pid 13946] close(18 <unfinished ...>
[pid 13975] <... read resumed> "\0\0\0\0\0\0\0\0\210\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64
[pid 13951] <... write resumed> )       = 64
[pid 13975] rt_sigprocmask(SIG_SETMASK, [],  <unfinished ...>
[pid 13951] epoll_wait(9,  <unfinished ...>
[pid 13975] <... rt_sigprocmask resumed> NULL, 8) = 0
[pid 13946] <... close resumed> )       = 0
[pid 13975] rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO],  <unfinished ...>
[pid 13946] stat64("/usr/share/alsa/alsa.conf",  <unfinished ...>

That's what it looks like.
Comment 3 Roc Vallès 2013-06-15 08:33:37 UTC
Had a suspicion, which turned out correct.

Those stat() and XFS with inode64 don't like each other too much. I've moved to ext4 and things work perfectly now.

Doesn't mean than this shouldn't be fixed, though.
Comment 4 Pacho Ramos gentoo-dev 2013-10-08 21:16:18 UTC
I remember to get another bug report related with problems between skype and XFS :/
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-06-02 08:33:48 UTC
The emul-linux-x86 packages have been removed.