[Bug 32312] New: SNES9x crashes when non-48kHz DirectSound audio output is selected
http://bugs.winehq.org/show_bug.cgi?id=32312 Bug #: 32312 Summary: SNES9x crashes when non-48kHz DirectSound audio output is selected Product: Wine Version: 1.5.18 Platform: x86-64 URL: http://files.ipherswipsite.com/snes9x/snes9x-1.53-win3 2.zip OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: directx-dsound AssignedTo: wine-bugs(a)winehq.org ReportedBy: markk(a)clara.co.uk Classification: Unclassified Regression SHA1: 605cd62c7dc84ef86cbd260139c6875cd0ed8d60 Created attachment 42650 --> http://bugs.winehq.org/attachment.cgi?id=42650 dsound-related crash backtrace I'm testing with SNES9x 1.53, Wine 1.5.18, Lubuntu 11.10 x86-64, Nvidia driver 304.64. I get a crash on changing the sound driver setting. To reproduce: - Download and unzip the snes9x archive. - Run snes9x.exe. You'll get a dialog saying "Unable to initialize XAudio2" since Wine doesn't support that. Click OK. - Select Sound->Settings..., change Sound Driver to Snes9x DirectSound and click OK. The program crashes. Since it saved the DirectSound setting to snes9x.conf, you get an immediate crash if you run snes9x.exe again without deleting or editing snes9x.conf. The crash seems to be related to the sample rate. The default playback rate is 32 KHz. For me, if I change Sound Driver to DirectSound and Playback Rate to 48 KHz, there is no crash. I can load a SNES ROM and play it with (albeit crackly) sound. The crash happens when selecting any other playback rate. (There is no graphical output in the default Direct3D mode which I'll hopefully file another bug for. You can select Video->Display Configuration... and change Output Method to DirectDraw to work around that.) This looks like a regression. A regression test gave this: 605cd62c7dc84ef86cbd260139c6875cd0ed8d60 is the first bad commit commit 605cd62c7dc84ef86cbd260139c6875cd0ed8d60 Author: Maarten Lankhorst <maarten.lankhorst(a)canonical.com> Date: Fri Nov 16 20:35:51 2012 +0100 dsound: Create a primary_pwfx separately from pwfx. :040000 040000 d3b302ce4433475153fde9b9e86f656e64487ea8 d33035cd0a9fc793a629ae425621ee6daff67d63 M dlls -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 Mark K <markk(a)clara.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression, | |source CC| |markk(a)clara.co.uk -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 --- Comment #1 from Mark K <markk(a)clara.co.uk> 2012-11-27 16:50:17 CST --- I just noticed bug 32277. Related maybe? In that bug the game has no sound, there isn't a crash though. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.b.lankhorst(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 --- Comment #2 from Mark K <markk(a)clara.co.uk> 2012-11-29 08:35:02 CST --- Created attachment 42667 --> http://bugs.winehq.org/attachment.cgi?id=42667 Backtrace of crash on changing from 48kHz to 32kHz DirectSound output wine-1.5.18-72-g0c0b229 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 --- Comment #3 from Mark K <markk(a)clara.co.uk> 2012-11-29 08:38:42 CST --- Created attachment 42668 --> http://bugs.winehq.org/attachment.cgi?id=42668 +dsound log (bzip2-compressed) +dsound log for running SNES9x, loading a ROM image, changing to 48kHz DirectSound output, letting sound play for a short while, then changing to 32kHz and getting crash. Last few lines before the crash are: trace:dsound:primarybuffer_create Created primary buffer at 0x1394b8 trace:dsound:primarybuffer_create (formattag=0xfffe,chans=2,samplerate=48000,bytespersec=384000,blockalign=8,bitspersamp=32,cbSize=22) trace:dsound:PrimaryBufferImpl_AddRef (0x1394b8) ref was 0 trace:dsound:PrimaryBufferImpl_SetFormat (0x1394b8,0x32dea8) trace:dsound:primarybuffer_SetFormat (0x177e10,0x32dea8) trace:dsound:primarybuffer_SetFormat (formattag=0x0001,chans=2,samplerate=32000,bytespersec=128000,blockalign=4,bitspersamp=16,cbSize=0) trace:dsound:PrimaryBufferImpl_GetFormat (0x1394b8,0x32debc,18,(nil)) wine: Unhandled page fault on read access to 0x00000000 at address 0x5e2bbf (thread 0009), starting debugger... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 --- Comment #4 from Maarten Lankhorst <m.b.lankhorst(a)gmail.com> 2013-02-03 06:09:21 CST --- Created attachment 43430 --> http://bugs.winehq.org/attachment.cgi?id=43430 copy parameters from program looks like your program is much happier if I lie, I was wondering if not lying would break things, so it seems so.. patch attached -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 --- Comment #5 from Mark K <markk(a)clara.co.uk> 2013-02-03 07:01:34 CST --- Thanks, that seems to have fixed it. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 Jerome Leclanche <adys.wh(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |adys.wh(a)gmail.com Ever Confirmed|0 |1 --- Comment #6 from Jerome Leclanche <adys.wh(a)gmail.com> 2013-04-20 13:10:28 CDT --- What's the status on the patch? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 Andrew Eikum <aeikum(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum(a)codeweavers.com --- Comment #7 from Andrew Eikum <aeikum(a)codeweavers.com> 2013-05-29 15:05:31 CDT --- I believe this should be fixed by e60e09e2d185501568f60ce2ce1d73065d904c20 in today's wine-git. Can you retest to confirm? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e60e09e2d185501568f60ce2ce1 | |d73065d904c20 Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Bruno Jesus <00cpxxx(a)gmail.com> 2013-06-04 21:17:58 CDT --- I can confirm the progam works in wine-git and after reverting the patch it starts crashing again. Resolving fixed. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
http://bugs.winehq.org/show_bug.cgi?id=32312 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #9 from Alexandre Julliard <julliard(a)winehq.org> 2013-06-07 15:01:08 CDT --- Closing bugs fixed in 1.6-rc1. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=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.
participants (1)
-
wine-bugs@winehq.org