Wine randomly cannot initialize sound [ Wine and Pulseaudio fight for address space; workaround found ]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
alsa-plugins |
Invalid
|
Undecided
|
Unassigned | ||
wine (Fedora) |
Won't Fix
|
Medium
|
|||
wine1.2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
wine1.3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: wine1.2
I have a problem with wine - it randomly doesn't initialize sound.
The following cases were tested by running winecfg multiple times, one after another:
1. With wine1.2 set to use ALSA and when there is no more applications, that are producing sound, wine randomly gives multiple errors, that say: “mmap() failed: Cannot allocate memory”, but eventually starts and works properly.
2. With wine1.2 set to use ALSA and when there are applications, that are producing sound (e. g. Audacious2, Firefox while playing flash movies), wine randomly gives multiple errors, that say: “mmap() failed: Cannot allocate memory”, and one error, that says: “ALSA lib pcm_dmix.
3. With wine1.2 from Neil Wilson's PPA with unofficial pulseaudio support and set to use Pulseaudio, wine randomly gives multiple errors, that say: “mmap() failed: Cannot allocate memory”, and one error, that say:
“xe: pulse.c:716: PULSE_WaveInit: Assertion `PULSE_context' failed.
err:module:
err:module:
After that, wine doesn't even start the requested application. That case occurs even, when there are no applications, that are producing sound at the moment.
The strange thing is, that the issue occurs randomly: sometimes wine will start just fine, but sometimes it will not. The issue is very frequent though.
ProblemType: Bug
Architecture: i386
Card0.Amixer.info:
Card hw:0 'CA0106'/'Audigy SE [SB0570] at 0xd400 irq 17'
Mixer name : 'CA0106'
Components : ''
Controls : 35
Simple ctrls : 18
Date: Sat Jan 2 17:44:26 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelMo
Package: pulseaudio 1:0.9.19-0ubuntu4
ProcEnviron:
LANG=pl_PL.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: pulseaudio
Uname: Linux 2.6.31-17-generic i686
mtime.conffile.
description: | updated |
description: | updated |
summary: |
- Wine randomly cannot initialize sound + Wine randomly cannot initialize sound [mmap() failed: ] |
summary: |
- Wine randomly cannot initialize sound [mmap() failed: ] + Wine randomly cannot initialize sound [Pulseaudio-related ; mmap() + failed: ] |
Changed in alsa-plugins: | |
status: | Incomplete → Invalid |
Changed in wine (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Won't Fix |
Similarly, sometimes sound will be very scratchy and "pop" in and out repeatedly.
One workaround I've discovered is to close other audio sources (especially Firefox+flash), killall -9 pulseaudio, wait about 10 seconds for it to restart automatically, and then run wine again. This seems to prevent the scratchy issues as well, although when another application (eg pidgin) generates audio they can often return.