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.
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?
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)?
Created attachment 361702 [details] Output of "emerge --info wine"
(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
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.
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).
(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 )