http://bugs.winehq.org/show_bug.cgi?id=28286
Summary: Backyard Baseball 2001 won't start - regression Product: Wine Version: 1.3.26 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winealsa.drv AssignedTo: wine-bugs@winehq.org ReportedBy: dpobanz@gmail.com
Backyard Baseball 2001 used to start just fine. Now it gets an error message saying that "Sound Card not detected" and aborts starting the game.
8129b1847a13be248098b8d8ec773f8bdf821df6 is the first bad commit commit 8129b1847a13be248098b8d8ec773f8bdf821df6 Author: Jörg Höhle hoehle@users.sourceforge.net Date: Tue Aug 9 21:19:51 2011 +0200
winealsa: Pulse knows handle_underrun only since 2010-07-09.
:040000 040000 5147fcfe6d5b308d25d065f9c4f31dba00902190 b96d7b019480e891b8fb3ee29661820678c5d72d M dlls
http://bugs.winehq.org/show_bug.cgi?id=28286
Don Pobanz dpobanz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dpobanz@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28286
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |8129b1847a13be248098b8d8ec7 | |73f8bdf821df6
http://bugs.winehq.org/show_bug.cgi?id=28286
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.ne | |t Summary|Backyard Baseball 2001 |Backyard Baseball 2001 |won't start - regression |won't start
http://bugs.winehq.org/show_bug.cgi?id=28286
--- Comment #1 from Jörg Höhle hoehle@users.sourceforge.net 2011-09-06 06:02:15 CDT --- Please add a WINEDEBUG=+tid,+mmdevapi,+alsa,+winmm,+driver log. You say that the error appeared with wine-1.3.26 but you identified a commit that was not present in wine-1.3.26. How comes? Does it work with 1.3.26?
http://bugs.winehq.org/show_bug.cgi?id=28286
--- Comment #2 from Don Pobanz dpobanz@gmail.com 2011-09-06 13:34:48 CDT --- Created an attachment (id=36259) --> (http://bugs.winehq.org/attachment.cgi?id=36259) Wine Debug
Attached is a wine debug as requested.
And the program runs successfully in Wine 1.3.26. My bad on reporting the first bad version. It should have been 1.3.27. The bisect informtion in "comment 1" is corret.
For this debug, I used the lastest version of wine from git wine-1.3.27-270-gb7ea631
http://bugs.winehq.org/show_bug.cgi?id=28286
Don Pobanz dpobanz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.3.26 |1.3.27
http://bugs.winehq.org/show_bug.cgi?id=28286
--- Comment #3 from Jörg Höhle hoehle@users.sourceforge.net 2011-09-07 06:08:18 CDT --- In short: the ugly PulseAudio underrun bug raises its head again :-( -- exactly what Andrew Eikum feared in bug #28040, comment #3.
You appear to be using a machine with PulseAudio not recent enough to support the handle_underrun parameter added mid 2010. The logs says: ALSA lib pcm_pulse.c:1008:(_snd_pcm_pulse_open) Unknown field handle_underrun AUDDRV_GetAudioEndpoint Opening PCM device "default" with handle_underrun: -22
wine-1.3.26 would simply refuse to use it. As the app (or is it Wine?) appears to scan all audio devices: AUDDRV_GetAudioEndpoint "default" 0x1376b0 0 0xbae7ac AUDDRV_GetAudioEndpoint "hw:0,0" 0x137780 0 0xbae7ac 1.3.26 would presumably use hw:0 instead and be happy. You can test that by checking whether other Linux apps (e.g. speaker-test) can still produce sound while Wine grabs hw:0, assuming your card "HDA ATI SB - ALC260 Analog" does not support mixing.
Wine-1.3.27 will accept to use PulseAudio, because not all versions of PulseAudio are affected. E.g. the older Ubuntu Intrepid (2008) is not affected by the underrun bug, Ubuntu Lucid (2010) is. Your machine is likely subject to the bug, audio hangs upon underrun, and you get no sound. What is the OS you are using?
Note that I have no explanation for the "Sound Card not detected" message (my suspicion is that PA clings to the hw device for a few seconds, thus preventing others from using it, particularly in scenarios like device enumeration...) Does wine-1.3.25 behave exactly like 1.3.27?
What's not in wine-1.3.27 is the following message: + ERR("PulseAudio "%s" %d without handle_underrun. Audio may hang." + " Please upgrade to alsa_plugins > 1.0.24\n", key, err); which is the recommended advice. Please look whether a newer PulseAudio (or rather the ALSA plugins package) is available for your system, perhaps as a backport.
http://bugs.winehq.org/show_bug.cgi?id=28286
--- Comment #4 from Don Pobanz dpobanz@gmail.com 2011-09-07 20:15:09 CDT ---
1.3.26 would presumably use hw:0 instead and be happy. You can test that by checking whether other Linux apps (e.g. speaker-test) can still produce sound
Whenever this app is being used, it goes full sreen and so there are no other apps being used. I don't know whether another app could use sound at that time.
What is the OS you are using?
ubuntu 10.10 (Maverick Meerkat) with all updates applied.
Does wine-1.3.25 behave exactly like 1.3.27?
I don't know if we have used 1.3.25. Is that something that would be beneficial to know. If that would be usedful, I can compile 1.3.25 and try it.
Please look whether a newer PulseAudio (or rather the ALSA plugins package) is available for your system, perhaps as a backport.
I'm not sure how to do this. Would this be different than updating ubuntu release through "update manager"?
http://bugs.winehq.org/show_bug.cgi?id=28286
--- Comment #5 from Jörg Höhle hoehle@users.sourceforge.net 2011-09-12 08:59:15 CDT --- Launchpad https://bugs.launchpad.net/ubuntu/+source/alsa-plugins/+bug/805940 mentions a custom package, presumably without the bug http://people.canonical.com/~trellis/alsa/libasound2-plugins_1.0.22-0ubuntu6... that seems to be for Ubuntu Lucid.
it goes full sreen
You can either - use ctrl-alt-F1 - F6 to switch to a text console, login and issue speaker-test speaker-test -Dpulse speaker-test -Dplughw:0,0 or some other device - ctrl-alt-right or left (in metacity/gnome) to switch to another screen, depending on how the app went full screen.
You can also tell the app to open a virtual desktop and not get full screen.
I can compile 1.3.25 and try it
Please do. We appreciate precise findings & reports because not everybody experiences the same issues.
Does winecfg's test sound button cause it to hang on your machine?
If you can't either upgrade PulseAudio/alsa_plugins or use another package without the bug, I believe all that is left is to add Wine registry settings to not use the default device and force winealsa to use a working one, e.g. "plughw:0,0". http://wiki.winehq.org/UsefulRegistryKeys?highlight=(Alsa%20Driver) Drawback: exclusive access to HW implies no more mixing as long as Wine is running. Using "plug:dmix" might not be better because no other app on your Ubuntu machine may still use dmix.
http://bugs.winehq.org/show_bug.cgi?id=28286
--- Comment #6 from Jörg Höhle hoehle@users.sourceforge.net 2011-10-03 15:52:20 CDT --- Did you test any Wine release since then? Audio initialisation changed a lot with each one. Please report your findings about any of the additional tests (e.g. use virtual desktop in winecfg instead of full screen, use the "test audio" button, change registry etc.)
http://bugs.winehq.org/show_bug.cgi?id=28286
--- Comment #7 from Don Pobanz dpobanz@gmail.com 2011-10-03 19:14:44 CDT --- This bug is fixed. Thanks!
I updated from Ubuntu 10.10 to 11.04 and that made it possible to run the game, although a sound error box would sometimes pop up (but only once) during a session. OKing the box made it go away and it played normally.
Yesterday wine was updated to wine-1.3.29-121-gfdda702 So far, the game plays perfectly.
Here is the terminal output. james@hp-desktop-201009:~$ wine "/home/kids/.wine/dosdevices/c:/hegames/Baseball2001/baseball 2001.exe" fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 32 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 32 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
http://bugs.winehq.org/show_bug.cgi?id=28286
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #8 from Austin English austinenglish@gmail.com 2011-10-04 01:49:39 CDT --- Fixed.
http://bugs.winehq.org/show_bug.cgi?id=28286
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2011-10-10 13:11:32 CDT --- Closing bugs fixed in 1.3.30.