[Bug 39576] New: Sound in StarCraft 2 breaks after

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 39576] New: Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

            Bug ID: 39576
           Summary: Sound in StarCraft 2 breaks after
           Product: Wine
           Version: 1.7.54
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: [hidden email]
          Reporter: [hidden email]
      Distribution: ---

At least since StarCraft 2 Legacy of the void (released 2015-11-10) and Wine
1.7.52 (currently 1.7.54) I'm experiencing sound issues. I'll try to find out
some more about it in the next weeks...

The problem:
After playing a while, especially in missions with many units, the sound
becomes very strange. Suddenly there is a lot of loud noise and voices are
spoken very fast. Playback is probably about two times the speed of normal.

I can temporarily let the sound return to normal, by opening the StarCraft 2
sound options and changing the number of sound channel to any other value
(which value doesn't seems to be important).

Sometimes (very rarely) the sound suddenly returns to normal without any
further actions.

I tried setting the value "default-fragment-size-msec" in the file
/etc/pulse/daemon.conf
to different value. Afterwards I always did "killall pulseaudio" and restartet
Wine/StarCraft. But that didn't helped.
Values I tried: 5, 100, 400

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

Andrew Eikum <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #1 from kolAflash <[hidden email]> ---
Looks like this only happens on one of my two computers, with the following
specs:

CPU: AMD Phenom(tm) II X4 955 Processor (4 cores, 3.2 Ghz)
RAM: 12 GB
GPU: Sapphire Radeon HD 6450 2GB GDDR3

Sound devices:

Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (the one I
actually use)

Advanced Micro Devices, Inc. [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400
Series]

OS: openSUSE 13.2 (x86_64)
Mesa3D: by openSUSE 13.2



On the other hand, on my Notebook StarCraft II Legacy of the Void is working
completely fine. Maybe because of the other Mesa-Version.
I'll further investigate.

CPU: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz (2 cores + 2
hyperthreading-cores)
RAM: 8 GB
GPU: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics
Controller (by the Intel CPU)
Sound: Intel Corporation 6 Series/C200 Series Chipset Family High Definition
Audio Controller

OS: openSUSE 13.2 (x86_64)
Mesa3D: Mesa3D 11.0 compiled by myself

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #2 from kolAflash <[hidden email]> ---
Copied the whole Wine-Prefix from my notebook (which didn't showed this bug) to
my PC (which definitely has this bug).
But when using that copied and also the self-compiled Mesa3D 11.0 on my PC,
it's still showing the bug.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #3 from kolAflash <[hidden email]> ---
When the bug appears, Wine outputs the following to the stdout:

fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform
fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented
fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform
fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform
ALSA lib pcm.c:7897:(snd_pcm_recover) underrun occurred

...repeating the last line (underrun occurred) again and again

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

kolAflash <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.7.54                      |1.7.55

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #4 from kolAflash <[hidden email]> ---
If I go to Option in the game and change the number of sound channels (which
stops the bug until it appears again) Wine outputs the following on the shell:

...
ALSA lib pcm.c:7897:(snd_pcm_recover) underrun occurred
fixme:avrt:AvSetMmThreadCharacteristicsW (L"Audio",0x983e998): stub

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #5 from kolAflash <[hidden email]> ---
Tried using Wine 1.7.20 instead of 1.7.54 / 1.7.55.

Looks like 1.7.20 is not affected by this bug.

Sadly finding the bad commit will take some time, because the bug doesn't
appears immediately, but after some minutes of playing.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #6 from kolAflash <[hidden email]> ---
I'm not very sure about this, because the bug can't be reproduced easily.
Sometimes it happens every five minutes, sometimes it doesn't for one or two
hours.

Looks like wine-1.7.36 is affected by the bug, but wine-1.7.28 is OK.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #7 from Andrew Eikum <[hidden email]> ---
There are a number of audio commits in between those two tags.

It would be useful to get an audio log <http://wiki.winehq.org/Sound> of a
failing session with the latest version of Wine.

I understand it's hard because it takes a while to reproduce. You may want to
quit the game if it doesn't happen after a few minutes, to delete the log file
so it doesn't fill up your hard drive. You don't need to keep logging after the
bug occurs, just a few seconds of broken audio is enough.

When you get a log, we would only need the end of the log starting shortly
(say, 10,000 lines) before it starts spamming "underrun occurred".

Is that something you can do?

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #8 from kolAflash <[hidden email]> ---
How can I get an audio log?

I don't realize, how the information here can help me doing this.
http://wiki.winehq.org/Sound

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #9 from Andrew Eikum <[hidden email]> ---
(In reply to kolAflash from comment #8)
> How can I get an audio log?
>
> I don't realize, how the information here can help me doing this.
> http://wiki.winehq.org/Sound

Something like,

rm -f ~/log.txt &&
WINEDEBUG=+tid,+seh,+mmdevapi,+winmm,+driver,+msacm,+midi,+dsound,+dsound3d,+xaudio2,+xapofx,+dmusic,+mci,+pulse,+oss,+alsa,+coreaudio,+timestamp
wine GAME.EXE >>~/log.txt 2>&1

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #10 from kolAflash <[hidden email]> ---
Created attachment 52772
  --> https://bugs.winehq.org/attachment.cgi?id=52772
log, created as described by Andrew Eikum

Tail of a longer log of starting the game and clicking trough the main
menu-screen and the mission archives for about 5 minutes (yes, looks like the
bug also appears there).

This tail is for the last 25 seconds, in which the bug appeared.

At line 45316 the "underrun occurred" messages start.

Wine version: 1.7.55

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #11 from kolAflash <[hidden email]> ---
Experienced the sound bug now a few times with 1.7.28. But it always
disappeared again without further actions after about 5 to 15 seconds.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

--- Comment #12 from kolAflash <[hidden email]> ---
Finally found a workaround.

Using Wine-1.9.11.

To the file
/etc/pulse/daemon.conf
I added the line
resample-method=src-linear

Then restart Pulseaudio.
pulseaudio -k
pulseaudio --start



Found the workaround here.

https://blog.nighton.net/2013/04/17/sound-stuttering-problems-in-starcraft-ii-under-wine-on-ubuntu-12-10-solved/

But for Ubuntu-12.10 the file seems to be /etc/pulse/default.pa (default.pa
instead of daemon.conf).

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 39576] Sound in StarCraft 2 breaks after

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=39576

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #13 from [hidden email] ---
(In reply to kolAflash from comment #12)

> Finally found a workaround.
>
> Using Wine-1.9.11.
>
> To the file
> /etc/pulse/daemon.conf
> I added the line
> resample-method=src-linear
>
> Then restart Pulseaudio.
> pulseaudio -k
> pulseaudio --start
>
>
>
> Found the workaround here.
>
> https://blog.nighton.net/2013/04/17/sound-stuttering-problems-in-starcraft-
> ii-under-wine-on-ubuntu-12-10-solved/
>
> But for Ubuntu-12.10 the file seems to be /etc/pulse/default.pa (default.pa
> instead of daemon.conf).

Is this wine issue at all? Also I am not sure if pulseaudio was included at
wine at the time of report and even it was I think it has received some patches
after that into staging.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.