Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489004 - app-emulation/wine - Gentoo's pulseaudio patches cause dsound games to crash with "divide by zero" error.
Summary: app-emulation/wine - Gentoo's pulseaudio patches cause dsound games to crash ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-22 13:06 UTC by Sebastian Parborg
Modified: 2013-12-16 18:12 UTC (History)
0 users

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


Attachments
Output of "emerge --info wine" (file_489004.txt,5.98 KB, text/plain)
2013-10-23 10:15 UTC, Sebastian Parborg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Parborg 2013-10-22 13:06:29 UTC
It seems like the pulseaudio patches, that the gentoo ebuild has, touches the wine dsound code quite a bit. As a result games like "Papers please" and "Commandos 2" crashes on startup with a "divide by zero" error in the dsound code.

If I remove the pluseaudio patches it works like it should. No crash and sound is working ok.

If this only happens on non pluseaudio backends I would suggest the only apply the patches if the pulseaudio use flag is set.

Reproducible: Always

Steps to Reproduce:
1. Compile wine >= 1.6 from portage
2. Start a game that uses dsound



There are quite a few windows applications that use dsound. So at least for me this a major problem. I'm sorry if I set severity too high.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-10-23 02:54:01 UTC
Please attach the output of "emerge --info wine".

Do you see this problem when emerging wine with USE=pulseaudio, or USE=-pulseaudio, or both?

If you are using stable wine (1.6), can you reproduce the problem with 1.7.4?

Is there a freely downloadable program/game with which you see this crash?
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-10-23 02:56:42 UTC
Also, if you started seeing the crash after upgrading from an older wine version, does the problem occur if you install the application in a new WINEPREFIX (see http://wiki.winehq.org/FAQ#wineprefix)?
Comment 3 Sebastian Parborg 2013-10-23 10:15:01 UTC
Created attachment 361702 [details]
Output of "emerge --info wine"
Comment 4 Sebastian Parborg 2013-10-23 10:28:45 UTC
(In reply to Alexandre Rostovtsev from comment #1)
> Please attach the output of "emerge --info wine".
> 
> Do you see this problem when emerging wine with USE=pulseaudio, or
> USE=-pulseaudio, or both?
>
I'm not using pulseaudio so I guess that this might not be a problem with the pulseaudio flag set.
However if that is the case I strongly suggest to only apply the patches if the wine is compiled with pulseaudio.
 
> If you are using stable wine (1.6), can you reproduce the problem with 1.7.4?
> 
I've tried both 1.6 and 1.7.4 both crash with the same error.

> Is there a freely downloadable program/game with which you see this crash?
Here is the "Papers please" beta that were used as a demo for the steam greenlight page: http://bit.ly/161CCGY

Here you can download the commandos 2 singleplayer demo:
http://commandoshq.net/downloads.php

(In reply to Alexandre Rostovtsev from comment #2)
> Also, if you started seeing the crash after upgrading from an older wine
> version, does the problem occur if you install the application in a new
> WINEPREFIX (see http://wiki.winehq.org/FAQ#wineprefix)?
Yes, I've tried to reinstall the game in a clean wineprefix for both 1.6 and 1.7.4. It still crashes with the pulseaudio patches
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-10-27 03:54:19 UTC
Unfortunately, for me Papers Please freezes at startup with a black screen in all cases when using wine-1.7.4 - without the patches, with the patches and USE=-pulseaudio, and with patches and USE=pulseaudio.

I have emailed Maarten Lankhorst (the pulseaudio patch developer) and asked him to take a look at this issue.
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-12-16 00:31:55 UTC
No reply from upstream :/

Generally, we like to avoid conditional patching because in Gentoo. However, given the situation, and the fact that there are lots of wine+pulseaudio users (including myself), your proposal of applying the patches only when USE=pulseaudio looks like the least bad solution.

+*wine-1.7.8 (16 Dec 2013)
+*wine-1.6.1 (16 Dec 2013)
+
+  16 Dec 2013; Alexandre Rostovtsev <tetromino@gentoo.org> +wine-1.6.1.ebuild,
+  +wine-1.7.8.ebuild, wine-9999.ebuild, metadata.xml:
+  Belated version bump (bug #490998, thanks to Frank Krömmelbein, Andreas
+  Sturmlechner, Ryan Harris et al.); see http://www.winehq.org/announce/1.7.8
+  and http://www.winehq.org/announce/1.6.1 for the announcement. Pulseaudio
+  patches are now applied only when USE=pulseaudio, since they apparently cause
+  crashes in some applications when USE=-pulseaudio (bug #489004, thanks to
+  Sebastian Parborg).
Comment 7 Arfrever Frehtes Taifersar Arahesis 2013-12-16 18:12:34 UTC
(In reply to Alexandre Rostovtsev from comment #6)

SRC_URI needs:
-  http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
+  pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )