http://bugs.winehq.org/show_bug.cgi?id=12041
Summary: STALKER 1.0004-Trainer.exe crashes in dsound Product: Wine Version: 0.9.57. Platform: Other URL: http://members.iinet.net.au/~something/stalker.tar.bz2 OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dsound AssignedTo: wine-bugs@winehq.org ReportedBy: jeffzaroyko@gmail.com
When starting STALKER 1.0004-Trainer.exe it crashes, see attached.
My dsound works fine for several other programs without issue.
http://bugs.winehq.org/show_bug.cgi?id=12041
--- Comment #1 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-03-15 04:03:52 --- Created an attachment (id=11394) --> (http://bugs.winehq.org/attachment.cgi?id=11394) +seh,+tid,+relay,+dsound log
http://bugs.winehq.org/show_bug.cgi?id=12041
Jeff Zaroyko jeffzaroyko@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=12041
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #2 from Lei Zhang thestig@google.com 2008-03-15 11:08:47 --- confirming
http://bugs.winehq.org/show_bug.cgi?id=12041
--- Comment #3 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-08-10 17:38:53 --- Created an attachment (id=15373) --> (http://bugs.winehq.org/attachment.cgi?id=15373) output of crash
mixer.c:337: DSOUND_MixToTemporary: Assertion `writepos + len <= dsb->buflen' failed.
http://bugs.winehq.org/show_bug.cgi?id=12041
CJ Kucera pez@apocalyptech.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pez@apocalyptech.com
--- Comment #4 from CJ Kucera pez@apocalyptech.com 2008-08-29 17:11:30 --- Just as an aside, I ran into this myself just now, but with a different game. I'm guessing it's probably the same issue. This happens to me on the (freely-available) demo of Strange Attractors 2, available at http://www.playgreenhouse.com/game/OMNUS-000001-01/
It happens when the main "Loading" screen reaches 20%, at "Loading Object Definitions." It happened both on 0.9.54 and 1.1.0 (I had upgraded to see if it was a bug that had been fixed in the meantime).
I'll upload the full output of the crash as an attachment. (Also let me know if it turns out to actually be a separate issue, despite the similar crash text, and I'll open up a new bug about it insteadd.)
http://bugs.winehq.org/show_bug.cgi?id=12041
--- Comment #5 from CJ Kucera pez@apocalyptech.com 2008-08-29 17:14:02 --- Created an attachment (id=15737) --> (http://bugs.winehq.org/attachment.cgi?id=15737) Crash output from Strange Attractors 2
http://bugs.winehq.org/show_bug.cgi?id=12041
--- Comment #6 from CJ Kucera pez@apocalyptech.com 2008-08-29 17:22:56 --- Created an attachment (id=15738) --> (http://bugs.winehq.org/attachment.cgi?id=15738) +seh,+tid,+relay,+dsound log from Strange Attractors 2
I assume here that the bug poster probably knew what he was doing when choosing the debug flags to report, so I've just chosen to report the same. Here's my bzip2-compressed logfile using those flags.
http://bugs.winehq.org/show_bug.cgi?id=12041
--- Comment #7 from CJ Kucera pez@apocalyptech.com 2008-08-29 17:43:24 --- Oh, I should also mention that I did get a confirmation from #winehq that the problem exists in Git as of 2008-08-28 (so, yesterday, as of when I've added my comments here) as well.
http://bugs.winehq.org/show_bug.cgi?id=12041
--- Comment #8 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-09-01 05:22:07 --- (In reply to comment #4)
Just as an aside, I ran into this myself just now, but with a different game. I'm guessing it's probably the same issue. This happens to me on the (freely-available) demo of Strange Attractors 2, available at http://www.playgreenhouse.com/game/OMNUS-000001-01/
It happens when the main "Loading" screen reaches 20%, at "Loading Object Definitions." It happened both on 0.9.54 and 1.1.0 (I had upgraded to see if it was a bug that had been fixed in the meantime).
I'll upload the full output of the crash as an attachment. (Also let me know if it turns out to actually be a separate issue, despite the similar crash text, and I'll open up a new bug about it insteadd.)
Yeah, I think it's likely to be the same problem. Both the trainer and your app SA2 appear to pass an invalid pointer to the same call in dsound, it looks like a mistake on the programmers behalf, but it's also mishandled by Wine.
I have a patch to fix this, which makes both the trainer and your program work. I tested SA2 with my patch applied and it almost loads (99%) but crashes elsewhere, a quick look it seems to be affected by bug 9612.
http://bugs.winehq.org/show_bug.cgi?id=12041
--- Comment #9 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-09-02 16:12:18 --- Created an attachment (id=15788) --> (http://bugs.winehq.org/attachment.cgi?id=15788) patch + testcase
After applying this patch, STALKER 1.0004-Trainer runs successfully, so does SA2 if you set the MaxShadowSize registry key mentioned in bug 9612.
http://bugs.winehq.org/show_bug.cgi?id=12041
Jeff Zaroyko jeffzaroyko@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=12041
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase
http://bugs.winehq.org/show_bug.cgi?id=12041
--- Comment #10 from CJ Kucera pez@apocalyptech.com 2008-09-03 10:28:47 --- Great! And yeah, that patch works fine for me. Thanks for the work on this!
http://bugs.winehq.org/show_bug.cgi?id=12041
Jeff Zaroyko jeffzaroyko@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #11 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-09-05 07:10:35 --- fix is in git.
http://bugs.winehq.org/show_bug.cgi?id=12041
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alexandre Julliard julliard@winehq.org 2008-09-05 10:38:54 --- Closing bugs fixed in 1.1.4.