Bug 783699 - Pulseaudio sound issues
Summary: Pulseaudio sound issues
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wine
Version: 16
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Andreas Bierfert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-21 19:02 UTC by Richard Marko
Modified: 2016-02-01 02:22 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-10 20:53:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Richard Marko 2012-01-21 19:02:32 UTC
Description of problem:
When running audio enabled programs in wine sound is crackling all the time.

Version-Release number of selected component (if applicable):
wine-1.3.36-1.fc16.x86_64
wine-1.3.37-1.fc16.x86_64 (testing)

How reproducible:
Always

Steps to Reproduce:
1. winecfg
2. go to Audio tab
3. Test Sound
  
Actual results:
crackling sounds produced

Expected results:
normal output

Additional info:
 - Selected driver: winealsa.drv
 - other fields - (System default)

Two questions - Why there is no longer an option to change the driver?
Why is wine-pulseaudio package empty?

# rpm -ql wine-pulseaudio
(contains no files)
(contains no files)

Comment 1 Andreas Bierfert 2012-01-22 17:16:41 UTC
Since the move to the new sound api in wine there is no winepulse driver anymore. The wine-pulseaudio package makes sure all dependencies for wine <-> pulseaudio interaction are installed (take a look at the requires).

Comment 2 BenniLe 2012-02-06 21:30:15 UTC
I got the same problems. I started the an application through the console and there I got the output:
ALSA lib pcm.c:7316:(snd_pcm_recover) underrun occurred
this is written very often to the console.

I also selected alsa driver and installer the wine-pulseaudio package.

Comment 3 BenniLe 2012-02-06 23:09:58 UTC
I updated the kernel today to kernel-3.2.3-2.fc16 and now sound is working again.

Comment 4 anthony.s.hughes 2012-02-22 05:47:47 UTC
Unfortunately this problem remains unresolved for me. It usually works for a few minutes just fine but the crackling eventually returns. I also noticed the other day that this is not just crackling but the sound is actually playing very very fast (perhaps related to the underrun error).

Details of system (in case it helps):
Using Wine 1.3.37 on Fedora 16 x64 completely updated as of 2012-02-20.
Playing mostly World of Warcraft 4.3
Linux Kernel 3.2.6-3

I noticed that the crackling/fast sound is usually preceded with the following error as well:
err:winmm:WINMM_OpenDevice Activate failed: 80004005

If there is something I can do to help debug this issue, please let me know.

Comment 5 anthony.s.hughes 2012-02-22 05:53:58 UTC
Actually I just updated to 1.4.0.6rc in the testing packages. I will report back here if the sound issue is unresolved.

Comment 6 anthony.s.hughes 2012-02-22 06:04:57 UTC
Well, that didn't resolve it. I also notice that I see the following SELinux warning:
SELinux is preventing /usr/bin/wine-preloader from mmap_zero access on the None

Not sure if its related.

Comment 7 Florian Sievert 2012-02-25 12:03:43 UTC
In can reproduce this problem on my computer as well. F16 x86_64. In this case, it occurs running wine with eve online. I noticed, that killing the pulseaudio server right before the start, minimize the crackling for a while. After some time, the sound starts to crackling again. It seems to help killing pulseaudio again and (often not possible) reinitialize the sound in-game. After running an wine application for multiple hours, the crackling starts and having an serious impact on the overall system performance. Stopping wine, immediatly stops the high CPU load and system is running fine again.

The easiest way to reproduce this issue is described by Richard in #1 using winecfg. Building latest trunk of wine does not fix the problem. Initially I had the problem, when upgrading from F15.

Comment 8 Florian Sievert 2012-02-28 21:35:37 UTC
I think I managed to find a workarround for this issue finally. The issue seems not to be related to wine itself, but pulseaudio and is even documented in the wine faq: http://wiki.winehq.org/Sound (section Older (<1.0) PulseAudio).

As F16 still deploy pulseaudio-0.9.23-1.fc16, it seems like it is affected by this issue as well. Using the command line "pasuspender -- winecfg", I am not able to reproduce the crackling of the sound anymore like described in #1. Also initially tests with some other programs running wine, seems to fix the problem. So this issue might be fixed in F17 or requiring an updated PA version in F16.

Comment 9 tom.jenkinson 2012-04-23 11:48:46 UTC
Can confirm the workaround of pasuspender works for me also on F16

Comment 10 Patrick Talbert 2012-05-04 19:08:18 UTC
I had this issue in F16 and I am experiencing it again in F17.

I have wine and wine-pulseaudio installed. Trying 'pasuspender -- winecfg' results in no sound output at all, vs. the crackle/fart sound when run normally.

Comment 11 anthony.s.hughes 2012-05-04 19:14:45 UTC
(In reply to comment #10)
> I had this issue in F16 and I am experiencing it again in F17.
> 
> I have wine and wine-pulseaudio installed. Trying 'pasuspender -- winecfg'
> results in no sound output at all, vs. the crackle/fart sound when run
> normally.

Yup, that's my experience too. What I've noticed is that it's not just a crackle; it appears as though the sound is playing really really fast. The crackle is just a side-effect.

Comment 12 Kenny Armstrong 2012-05-04 20:20:46 UTC
Same issue here, no sound under wine 1.5.2 on Fedora 16.  Tried teh pasuspender -- winecfg, but still get no audio.

Comment 13 Robert Irelan 2012-05-09 04:21:59 UTC
My symptoms are identical to those of Kenny Armstrong and Patrick. I am also running Wine 1.5.2 under F16. Since some people are able to get sound to play by using pasuspender (but not me or the others I mentioned), could there perhaps be some configuration or sound card differences that could cause the symptoms? I can attach my system configuration if you want it.

Comment 14 anthony.s.hughes 2012-05-09 06:55:41 UTC
As with others on this bug, I can confirm that running pasuspender disables audio in wine (I get no sound in apps run through wine with pasuspender).

FWIW, I'm running the following packages:
 * wine-1.5.2-2.fc16 (64-bit)
 * pulseaudio-0.9.23-1.fc16 (64-bit)

AlsaMixer shows my audio device as an HDA Intel PCH with a Realtek ACL892 audio chipset for analog out. 

Hope this helps.

Comment 15 Robert Irelan 2012-05-09 07:05:12 UTC
My card is given by amixer as:

Card hw:0 'CK804'/'NVidia CK804 with ALC850 at irq 22'
  Mixer name    : 'Realtek ALC850 rev 0'
  Components    : 'AC97a:414c4790'
  Controls      : 42
  Simple ctrls  : 27

Comment 16 anthony.s.hughes 2012-05-09 07:26:29 UTC
Not sure why, but I don't get the same level of detail as Robert:
Card default 'pulse'/'PulseAudio'
  Mixer name	: 'PulseAudio'
  Components	: ''
  Controls      : 4
  Simple ctrls  : 2

Comment 17 Robert Irelan 2012-05-09 07:40:06 UTC
(In reply to comment #16)
> Not sure why, but I don't get the same level of detail as Robert:
> Card default 'pulse'/'PulseAudio'
>   Mixer name : 'PulseAudio'
>   Components : ''
>   Controls      : 4
>   Simple ctrls  : 2

I used "amixer -c0 info", where "0" is the number of the sound card (it might be different. To determine the sound card number, check the contents of "/proc/asound/cards".

Comment 18 anthony.s.hughes 2012-05-09 07:53:05 UTC
Thanks for that tip, Robert. Here is my detailed info:

Card hw:0 'PCH'/'HDA Intel PCH at 0xf6500000 irq 47'
  Mixer name	: 'Realtek ALC892'
  Components	: 'HDA:10ec0892,15585102,00100302'
  Controls      : 38
  Simple ctrls  : 21

Comment 19 Patrick Talbert 2012-05-09 20:52:34 UTC
Card hw:0 'Intel'/'HDA Intel at 0xf9ff8000 irq 45'
  Mixer name    : 'Realtek ALC883'
  Components    : 'HDA:10ec0883,10192974,00100002'
  Controls      : 44
  Simple ctrls  : 21


I would like to report that I have "fixed" this problem with the pasuspender -- winecfg command. The trick is to make sure to select an output device in the winecfg audio tab, do not simply leave it at default. At least that is what works for me.

Comment 20 Nicholas Miell 2012-05-10 00:51:05 UTC
Me too:

Card hw:0 'SB'/'HDA ATI SB at 0xfe8f0000 irq 16'
  Mixer name	: 'Realtek ALC889'
  Components	: 'HDA:10ec0889,14627596,00100004'
  Controls      : 46
  Simple ctrls  : 22

Anybody have this problem with a non-Realtek device?

Comment 21 anthony.s.hughes 2012-05-10 06:12:50 UTC
(In reply to comment #19)
> The trick is to make sure to select an output device in the
> winecfg audio tab, do not simply leave it at default. At least that is what
> works for me.

Thanks for this tip, Patrick. Setting the audio device in winecfg to use my HDA Intel PCH output fixed this bug for me. In fact, I don't even have to use pasuspender; just selecting the correct device is enough.

To confirm, using "HDA Intel PCH ACL892" in winecfg I get clear sound. Switching it back to "system default" results in the crackle. Switching back again to "HDA Intel PCH ACL892" restores the clear sound.

Thanks again for the help.

Comment 22 Jouni Mäenpää 2012-05-12 12:57:50 UTC
What about patching wine with proper pulse-audio support?

http://repo.or.cz/w/wine/multimedia.git
http://ubuntuforums.org/showthread.php?t=1960599

Patches weren't accepted upstream, but seem to work ok. Would be great to have those included in Fedora packages.

Comment 23 Robert Irelan 2012-05-12 16:47:23 UTC
I worked around the issue as anthony.s.hughes and Patrick did, by setting the output device in my winecfg to my sound card. As noted, once you have set this, you don't need to run your program under pasuspender for sound to work. However, the effect is much the same as pasuspender, as you can't hear Pulseaudio sound from other programs while the Windows program is playing sound (you can, however, hear Pulseaudio sound if the Windows program isn't playing sound). Whichever program -- Pulseaudio or Windows -- starts playing sound first gets to own the output stream. Since ALSA is being used directly, this is not surprising.

Comment 24 Fedora Update System 2012-07-05 15:57:34 UTC
wine-mono-0.0.4-7.fc17,wine-1.5.8-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/wine-mono-0.0.4-7.fc17,wine-1.5.8-1.fc17

Comment 25 Fedora Update System 2012-07-05 15:59:54 UTC
wine-1.5.8-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/wine-1.5.8-1.fc16

Comment 26 Jouni Mäenpää 2012-07-06 16:12:24 UTC
Thank you! Wine 1.5.8-1 packages from koji rock with pulseaudio.

Comment 27 Fedora Update System 2012-07-06 21:29:33 UTC
Package wine-mono-0.0.4-7.fc17, wine-1.5.8-1.fc17, mingw-wine-gecko-1.6-1.fc17, mingw-crt-2.0.999-0.6.trunk.20120601.fc17, mingw-headers-2.0.999-0.6.trunk.20120601.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing wine-mono-0.0.4-7.fc17 wine-1.5.8-1.fc17 mingw-wine-gecko-1.6-1.fc17 mingw-crt-2.0.999-0.6.trunk.20120601.fc17 mingw-headers-2.0.999-0.6.trunk.20120601.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-10358/mingw-wine-gecko-1.6-1.fc17,mingw-crt-2.0.999-0.6.trunk.20120601.fc17,mingw-headers-2.0.999-0.6.trunk.20120601.fc17,wine-mono-0.0.4-7.fc17,wine-1.5.8-1.fc17
then log in and leave karma (feedback).

Comment 28 Fedora Update System 2012-07-10 20:53:31 UTC
wine-mono-0.0.4-7.fc17, wine-1.5.8-1.fc17, mingw-wine-gecko-1.6-1.fc17, mingw-crt-2.0.999-0.6.trunk.20120601.fc17, mingw-headers-2.0.999-0.6.trunk.20120601.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 29 Fedora Update System 2012-07-14 21:58:57 UTC
wine-1.5.8-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 30 Brendan Long 2013-12-27 23:57:45 UTC
In case another else runs into this, I had similar problems on Fedora 20 with Starcraft II and World of Warcraft, and fixed it by installing wine-openal.


Note You need to log in before you can comment on or make changes to this bug.