iXit / Mesa-3D

Please use official https://gitlab.freedesktop.org/mesa/mesa/ !
https://github.com/iXit/Mesa-3D/wiki
66 stars 13 forks source link

NFS Most Wanted launch fails #192

Open mradermaxlol opened 8 years ago

mradermaxlol commented 8 years ago

Hello!
The issue: NFS Most Wanted (back from 2005) crashes (on launch) immediately when Native D3D9 is enabled. I've tried both 32- and 64-bit prefixes, neither works. I'm attaching some logs from console, as well as my xorg config from xorg.conf.d.
If it matters, i'm using wine from my overlay on Gentoo with ~amd64. Note that staging features were disabled at the moment of my testing.
Attachments: winelog.txt xorgconf.txt xorglog.txt

mradermaxlol commented 8 years ago

Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x7d543545).

This line makes me think that there's something wrong with the 32-bit part of the code.
Further investigation makes me think that it looks like the same issue as here...

axeldavy commented 8 years ago

Unfortunately your logs are not very useful to debug this issue.

You can get a useful log with NINE_DEBUG=all, but it will display things only if mesa was built with --enable-debug

siro20 commented 8 years ago

I got the same crash, but it crashes with vanilla wine, too. It's likely not related to d3d9 at all.

mradermaxlol commented 8 years ago

siro, maybe you are just using 64-bit prefix or your wine is broken. For me it worked on vanilla 1.9.3/1.9.4 and staging (same vers) on both 32- and 64-bit prefixes.
Are you getting EXACTLY the same error?

Oh, by the way, I will post debug logs once I've made my new ebuild work and have recompiled Mesa with debug options. Maybe today, maybe tomorrow.

pontostroy commented 8 years ago

wine 1.9.4 staging+nine NFS MW works for me with nine and wine-csmt some options does not available with csmt (shadow detail) and with nine and shadow detail enabled game looks very weird, too dark and smoke textures is broken. https://www.youtube.com/watch?v=BkapgkohAuM

siro20 commented 8 years ago

I tested with Ixit/wine (wine 1.9.2) and 32bit prefix. I got a null pointer dereference in the application itself. Maybe my wine is broken, I'll try 1.9.3 and 1.9.4.

mradermaxlol commented 8 years ago

@pontostroy works great for me with CSMT, too, and Shadow Detail is also unavalible. Everything works flawlessly even with UniWS-patched exe (my display is 16:9 1080p). But, well, I'm still trying to make Nine work there, and also (as you know) GCC 5.3.0 compilator has issues with Wine 1.9.4, and I'm working on it.

mradermaxlol commented 8 years ago

@axeldavy here you go. This one is from my current mesa, if it's not what you are looking for - tell me and I will provide you with logs with mesa compiled with debug USE flag.

winelog.txt

pontostroy commented 8 years ago

tested with docker image based on Tumbleweed (gcc 5.3.1) and still works fine, even with UniWS-patched exe

mradermaxlol commented 8 years ago

@pontostroy hmm... Then it's probably ebuilds' issue, I don't see anything else. I will try some people to test it, but no promises.
Oh, maybe it's all about extra patches from your source package? I will experiment with them, maybe it helps.

mradermaxlol commented 8 years ago

Hmm... May it be happening because of absent DLL redirects? Like, from d3d9.dll to d3d9-nine.dll?

pontostroy commented 8 years ago

no, i have the same redirect

mradermaxlol commented 8 years ago

@pontostroy, I have no redirects at all, maybe that's it?

mradermaxlol commented 8 years ago

@pontostroy could you give me a list of dependencies for your OpenSuSE wine package? Both x86_32 (i686) and x86_64 (amd64), if you please ;) If think the issue is there. If so, I'll provide my overlay with a sample config for portage with neccessary packages mentioned.

pontostroy commented 8 years ago

@mradermaxlol http://pastebin.com/ARcq0EN7

mradermaxlol commented 8 years ago

@pontostroy hmm, everything seems fine. I've actually done some testing with Mirror's Edge, and Nine runs flawlessly there. I'm thinking it's actually a game's issue... IDK.

axeldavy commented 8 years ago

Can we close ?

mradermaxlol commented 8 years ago

@axeldavy I don't think so. Actually, Nine works with Mirror's Edge for me, but doesn't with neither STALKER CoP nor NFSMW. Should I open another issue with STALKER or write it here? Anyway, I'll publish some Nine logs with Mirror's Edge and STALKER, as I've broken my NFS installation recently.

mradermaxlol commented 8 years ago

Mirror's Edge log S.T.A.L.K.E.R. CoP 1.6.0.2 log
I'm on vanilla Wine 1.9.6 with Nine patch applied. I managed to play the whole level in ME on high-ultra settings and I got a crash with S.T.A.L.K.E.R. X-Ray was also complaining after the crash.

axeldavy commented 8 years ago

With which flags are you building mesa ? Try to use -O0, etc. And use 32 bits

mradermaxlol commented 8 years ago

@axeldavy of course I'm building 32-bit, and all my prefixes are 32-bit. I'll try experimenting with -Oxxx flags, okay.

mradermaxlol commented 8 years ago

Alright, as Mesa 11.2 got released, I'm gonna test stuff with it. I'll report here ASAP.

mradermaxlol commented 8 years ago

Umm... Nothing new, really. Well, except of WineD3D being broken for now XD (but that's probably Xorg regression). I'll try to run the game with Nine using Gears On Gallium, maybe I'm just ass-handed?