sifadil / pcsx2-playground

Automatically exported from code.google.com/p/pcsx2-playground
2 stars 0 forks source link

SPU2ghz: Crashes on game execution/startup when using the XAudio 2 output module #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Problem: The experimental XAudio 2 driver is apparently rather selective
about which computers it works on.  Usual symptom is a DEP immediately on
execution of a game.  If XAudio2 crashes on your computer please post the
following information here:

1. Operating System version (including service packs!)

2. Soundcard make and model

3. Soundcard driver version

You can get info on your soundcard drivers by going into your computer's
Devices, opening up the the "Sound, Video, and Game controllers" category
near the bottom, and finding the most 'relevant' entry.  Anything labeled
with Legacy or Codec, or Media Devices, won't give you the info you want.

Original issue reported on code.google.com by Jake.Stine on 30 Oct 2008 at 6:33

GoogleCodeExporter commented 8 years ago
Okay for me I just tested and XAudio 2
It works on SPU2GHz b1.9r

but in the Playground mods. - tested on SpuGhz PP Mod. Rev. 196, 208, 233, & 
247 it 
crashes.

Now onto the other information you asked for
1. Windows XP SP2
2. Creative SB Audigy 2(WDM)
3. Driver Version: 6.0.1.1241

Original comment by MegaZX30@gmail.com on 30 Oct 2008 at 7:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Small probably insignificant update on my part.
I just updated my sound drivers to the lastest version.
But the problem remains b1.9r works, while the playground mods crash the 
emulator
using XAudio 2 of course.

Original comment by MegaZX30@gmail.com on 30 Oct 2008 at 10:48

GoogleCodeExporter commented 8 years ago
I've committed some changed to the XAudio2 driver in r249 that might help.  I'm 
not
holding my breath though.  Without being able to replicate the problem locally 
I'm
just taking some desperate stabs in the dark.

For any future reports of XA2 crashing, please specify if you're using r249 or 
an
earlier revision.  Thanks!

Original comment by Jake.Stine on 31 Oct 2008 at 12:50

GoogleCodeExporter commented 8 years ago
Okay... r247
Vista SP1
Realtek HD Audio Codec ALC660
Driver v.6.0.1.5618

On XP SP3 with almost the same audio chip it crashes without any warning or any 
line 
in Windows system logs... Latest DirectX and system updates on both machines... 
Didn't tried it on my friends' machine, but expecting the same thing...

Original comment by eliotfur on 31 Oct 2008 at 10:11

GoogleCodeExporter commented 8 years ago
Managed to find a copy of PCSX2 PP 255. The SPU2Ghz plugin included said version
255 so I asume they really meant 251 since before 255 that was the last commited
version of SPU2GHz.
But anyways status report:
SPU2GHz PP 255?(251? I believe)
loaded up a couple games with XA2 enanbled and so and it's working now without 
crashing.

Original comment by MegaZX30@gmail.com on 1 Nov 2008 at 12:33

GoogleCodeExporter commented 8 years ago
using r257 works using XA2 now.

Original comment by me.thc...@gmail.com on 1 Nov 2008 at 2:26

GoogleCodeExporter commented 8 years ago
Excellent!  Good to hear :)  (haha, pun!)
Leaving this Issue open for a little while longer in case some problems still 
linger
for select individuals.

Original comment by Jake.Stine on 1 Nov 2008 at 3:28

GoogleCodeExporter commented 8 years ago
I have to wait until re4rainbow will post new release on 4shared... :-(
Tonight maybe...

Original comment by eliotfur on 1 Nov 2008 at 7:13

GoogleCodeExporter commented 8 years ago
Ok, r264 crashed XA2 again.

Original comment by me.thc...@gmail.com on 1 Nov 2008 at 9:04

GoogleCodeExporter commented 8 years ago
Okay, I've got the latest builds... PCSX2 r262 and SPU2GHz r264... Cool...

On XP SP3 (and Vista SP1 too) I have Access Violation (c0000005) in msvcrt.dll 
when 
using XAudio2 output.

Original comment by eliotfur on 1 Nov 2008 at 9:04

GoogleCodeExporter commented 8 years ago
Yep... it seems SPU2GHz PP R264 has broke XAudio2... it's crashing again.

Original comment by MegaZX30@gmail.com on 1 Nov 2008 at 2:22

GoogleCodeExporter commented 8 years ago
Don't know what the status on this one is, but I wanted to try something based 
on a 
feeling I had. Compiling SPU2ghz on my own setup works just fine, using 
re4rainbows 
(which I belive a number of people use) compilation it crashes using XAudio2. 
Both 
compilations work fine with Directsound.  Tested on both vista x64 sp1 (x86 
version 
of pcsx2) and xp sp2 x86. Make of it what you want, but to me it this seems is 
a 
issue of Directx SDK/end-user diff on some level - even though it may sound 
awkward.

Original comment by kakemons...@gmail.com on 1 Nov 2008 at 2:52

GoogleCodeExporter commented 8 years ago
hey you might be on to something Im not sure. Quick test: I just tested to 
different 
copies of r247. the working copy came from a site called emudreams while the 
other 
was re4rainbows copy. alright cant type more gotta go...

Original comment by MegaZX30@gmail.com on 1 Nov 2008 at 3:27

GoogleCodeExporter commented 8 years ago
Kake, actually there could be merit in another way.  It turns out the XA2 
headers
actually contain *code* (which is something most DX drivers never did).  And it 
also
happens that I have a kinda old SDK since I thought it only had DX 10 changes.  
I'm
updating to the latest SDK now.  That may help.

In other news!  My XA2 driver was throwing an assertion when I tried to run it 
in
debug mode, because the parameter I was using was illegal for what I was doing
(apparently).  When fixed so it doesn't assert, it doesn't work for anyone else
(haha).  Again this is code in the HEADER files.  Grr.  New SDK hopefully will 
fix.

This is what we get for using beta stuff.  >_<
(but in it's defense, even buggy like this, XA2 is 10x easier to work with than
DirectSound so I'm not too upset)

Original comment by Jake.Stine on 1 Nov 2008 at 3:29

GoogleCodeExporter commented 8 years ago
Still working like a charm here, dunno what you're all so upset about.

Joking :p

Original comment by ramapcsx2 on 1 Nov 2008 at 3:56

GoogleCodeExporter commented 8 years ago
r264 doesn't work at all in my PC and even selecting Directsound the emu 
crashes.

Windows XP SP3 32-bit
Realtek HD ALC883 @ nVIDIA MCP61
Driver version 5.10.0.5657 | 3/7/2008

Original comment by montecr...@gmail.com on 1 Nov 2008 at 4:01

GoogleCodeExporter commented 8 years ago
Monte:
That might be a game specific issue related to the new DMA optimization.  I 
need more
information for it.

Original comment by Jake.Stine on 1 Nov 2008 at 4:22

GoogleCodeExporter commented 8 years ago
So, is there any difference who compiled that specific release using some 
version of 
DX SDK?.. Is there any difference between re4rainbow and emu.dreams versions?..

Why don't you post proper binaries on code.google.com or somewhere else?..

Original comment by eliotfur on 1 Nov 2008 at 5:32

GoogleCodeExporter commented 8 years ago
Yeah ok, the problem is elated to who compiles the code.
I upgraded my DXSDK and the XA2 driver no longer works on my machine with my 
builds.

This means two things:

1) re4rainbow is using the latest SDK, which is why the XA2 stufff didn't work 
on his
builds.

2) the guy posting to emu#dreams is using an older SDK, and thus it works.

*hopefully* once I get it working here on my machine, under the new SDK, it'll 
still
work under both. ;)

Original comment by Jake.Stine on 1 Nov 2008 at 5:45

GoogleCodeExporter commented 8 years ago
Actually scratch that.  What I thought was happening wasn't happening quite 
like I
thought.  It's definitely an SDK versioning issue but I'm not sure which builder
mentioned above is using newer or older SDKs.  You'll have to ask them and find 
out. :)

Original comment by Jake.Stine on 1 Nov 2008 at 5:54

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hasn't xaudio2 been RTM (not beta) since march? ;)

http://connect.microsoft.com/XAudio2Beta/content/content.aspx?ContentID=5986
https://connect.microsoft.com/XAudio2Beta

Crashing on my pc too (building myself). Direct sound works fine so not a big 
deal.
Take your time to fix it.

And thanks for all the work you have done with the plugin! =)

Original comment by juz...@hotmail.com on 1 Nov 2008 at 5:55

GoogleCodeExporter commented 8 years ago
@monrecrudo: I found the crashing bug in the DMA.  Next revision should fix.

@juzzuo: This is microsoft.  Regardless what Microsoft calls it, it's best 
considered
beta until the version number gets over 5 or 7. ;)

Original comment by Jake.Stine on 1 Nov 2008 at 6:05

GoogleCodeExporter commented 8 years ago
Attached to this post is my own compiled edition of spu2ghz r266.  I honestly 
have no
idea if this DLL will work better or worse for people having XA2 problems.  In 
theory
it should work fine for anyone using the latest install of the DX runtimes.

So give it a try and hope for the best.. :/

Original comment by Jake.Stine on 1 Nov 2008 at 7:37

Attachments:

GoogleCodeExporter commented 8 years ago
hi 
i am that guy from emudreadms.pl
i am using vs2k8 and dxsdk_august_2008 (i always use the latest dxsdk)
for me xa2 works good.

vista ultimate x64 (no sp)
asus commando with supremeFX
driver hdaudio.sys 6.00.5840.16387 (vista default driver)

Original comment by powe...@poczta.onet.pl on 1 Nov 2008 at 9:41

GoogleCodeExporter commented 8 years ago
Hmm. Looks like I had installed old SDK after format by accident. I can confirm 
that
building with latest SDK fixes crashing on startup.

vista x64 SP1, VS2k8, r267
DXSDK_november_2007 -> crashes when you start up game
DXSDK_Aug08 -> works fine with XA2

Original comment by juz...@hotmail.com on 1 Nov 2008 at 10:33

GoogleCodeExporter commented 8 years ago
@Jake
The latest Direct X runtime files are from August '08 correct? If so I just 
tried 
updating to be sure and the updater says I have the latest version installed.

I also tried your personal build uplopaded above with no luck...
I tried R265(latest version I saw there) from EmuDreams and XAudio 2 works...
:( I don't know what the difference is between the two builds(other then Rev. 
#) if 
you are both using the latest DXSDK...

the EmuDreams builds for SPU2ghz PP Revisions are the only copies I got working 
so 
far...

Original comment by MegaZX30@gmail.com on 1 Nov 2008 at 10:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
As a side note. Obviously you need SDK only if you build .dll yourself...

But I have a feeling that you will need new(est) DX runtimes installed if you 
want to
play. That one I cant confirm because I had latest installed already, but it 
would
make sense that it wont work with old DX runtime, if you can't even build with 
old SDK.

@MegaZX30

I think you are confusing with SDK and runtime. SDK is needed if you build .dll 
yourself.

Runtimes are needed to use that dll. So developers need to download that ~460MB 
SDK
to build plugin, but user needs only runtimes (80MB)

If plugin you are trying to use has been build with old SDK it will crash no 
matter
what runtimes you use. Quoting my built results from my previous post:

DXSDK_november_2007 -> crashes when you start up game
DXSDK_Aug08 -> works fine with XA2

"EDIT:" My bad. I misunderstood you. there is r267 now that should fix some 
crashes.
My own personal build builted with latest SDK worked fine. But the one I built 
with
old SDK didn't

Original comment by juz...@hotmail.com on 1 Nov 2008 at 10:52

GoogleCodeExporter commented 8 years ago
@juz
okay, right I know SDK is for developers use only. But Jake is using the latest 
SDK 
and - powe...@poczta.onet.pl - from EmuDreams says he is using the latest SDK 
build 
correct. If that's true then should both of there builds not work on my 
computer and 
not just one?

Original comment by MegaZX30@gmail.com on 1 Nov 2008 at 10:54

GoogleCodeExporter commented 8 years ago
MegaZX: Chances are that's due to a change made in r266.  I changed from the 
NOSRC
flag (which seemed to fix some crash problems) to NOPITCH because the other 
mode was
causing an assertion in my debug build (a problem fixed in 267).

So I think we're on the right track with r267.  So long as it's built with the 
latest
dxsdk and the end user has sufficiently recent dx drivers (Mar/Apr or newer I'd
guess), it should work fine now.

... I think. :)

Original comment by Jake.Stine on 1 Nov 2008 at 11:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
ahuh I see.
I don't think we want to make it a habit, but for us non dev. users would it be 
posible to upload another of your personal builds - r267 to test and see if the 
issue is resolved or do we have to wait for re4rainbow and or an EmuDreams 
build to 
be released?

Edit:
@juz - sorry didnt see that last bit after the edit but it's alright sometimes 
my 
explanations of things can be neh... not always worded good... I'm actually 
used to 
it.

Original comment by MegaZX30@gmail.com on 1 Nov 2008 at 11:26

GoogleCodeExporter commented 8 years ago
DLL for r268 attached.
And yeah I'm not going to make a habit of this.  Actually in this particular 
case
it's more about me needing a control group build, so that I can be assured that 
any
changes I'm making are working / not working [instead of trying to guess what is
related to the builder and what's related to the coder].

Original comment by Jake.Stine on 1 Nov 2008 at 11:39

Attachments:

GoogleCodeExporter commented 8 years ago
Well I just tested four different games out with your copy and I'm be happy to 
report that XAudio 2 has not crashed PCSX2 on me thus far.

But I would guess time should be left to see if the problem is resolved for 
other 
users as well.

Original comment by MegaZX30@gmail.com on 2 Nov 2008 at 12:02

GoogleCodeExporter commented 8 years ago
Ok, point proven. Your version of r268 works here.

Original comment by me.thc...@gmail.com on 2 Nov 2008 at 12:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Finally Vista users will be happy... :-)

Very good sync even when using X3 hacks... Thank you very much!!!
Hope somebody will solve Issue 33 as well...

Original comment by eliotfur on 2 Nov 2008 at 8:51

GoogleCodeExporter commented 8 years ago
Looks like this problem has been resolved.  *crosses fingers*
... at least until the next time microsoft updates DirextX or Windows anyway. 
Then
who knows what might happen. :P

Original comment by Jake.Stine on 4 Nov 2008 at 2:19