doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.1k stars 841 forks source link

GTA IV Crash #3110

Closed psyopcskx-11 closed 1 year ago

psyopcskx-11 commented 1 year ago

hi, so this is my first time using github and i am not english, so please excuse me. I used to use DXVK 1.9.4 for gta 4, and it worked perfectly with no issues. I recently bought the complete edition, downgraded it, installed a bunch of mods and DXVK 2.0 The game now always starts in a weird windowed kind of mode after i load into the game, it works as intended inside the safehouse (roman's) as soon as i step out of the apartment, the game stutters and then crashes immediately I've tried changing my settings, deleting some mods but it dosen't work. I've included the things that are in GTAIV_d3d9, and everytime i see

warn: D3D9DeviceEx::SetRenderState: Unhandled render state 182 warn: D3D9DeviceEx::SetRenderState: Unhandled render state 183

It would be nice if you guys can help me out.

Software information

Name of the game - GTA IV 1366x768(60hz) all graphics settings at medium vsync-off

System information

Log files

Blisto91 commented 1 year ago

Hello. As a quick test could you try making a file called dxvk.conf in the folder where the dxvk log file appeared and insert d3d9.textureMemory = 0 ? :slightly_smiling_face:

K0bin commented 1 year ago

I've personally given up on GTA IV. The game has a million weird different problems with DXVK and none of them make any sense.

Don't expect this to get fixed.

Please make an apitrace.

psyopcskx-11 commented 1 year ago

hi I've added the dxvk.conf file to the game's root directory (where the log file was present ran the game 4 times the first time it worked the 2nd 3rd and 4th time, it crashed just like before

psyopcskx-11 commented 1 year ago

Oh my God. this game is truly a shitshow of a pc port the game works normally now after replacing the main files with the 32bit api trace files it just lags a lot wtf is wrong with this game? i have been not able to reproduce my issue even after trying multiple times, sorry for that :( do you still need the .trace file?

Blisto91 commented 1 year ago

@psyopcskx-11 Hello. Yes that is normal. The game won't be using dxvk while you are tracing and it tanking the fps is also normal as it is recording every single Direct3D api call. The devs can replay it themselves together with dxvk later to see if anything seems off. So just trace the game past where the issue usually shows up.

i1u5 commented 1 year ago

Can't reproduce.

Using DXVK 2.0, I get the same warnings, but I've been able to play the whole game with no issues, the "weird windowed mode" you described happened a few times but simply restarting the game fixes it. I'm suspecting it could be a driver-related issue.

I play on the complete edition. Here's my dxvk.conf:

dxgi.maxFrameLatency = 1
d3d9.maxFrameLatency = 1
dxvk.hud = compiler,fps

My commandline.txt:

-availablevidmem=3966
-windowed
-managed

The game hasn't crashed a single time for me since the start until the last SP mission.

K0bin commented 1 year ago

@psyopcskx-11 As Blisto said, it's normal that you can't reproduce the issue with apitrace (and that it makes the game very slow).

Please just do what you'd normally do to reproduce the issue and upload the apitrace file.

psyopcskx-11 commented 1 year ago

hello sorry for my inactivity, i just gave up on the game till yesterday good news is that i was able to reproduce the issue using apitrace this time around anyways, here's the link
https://drive.google.com/file/d/1W3OufOkR0USpZ4MYk7n11C5Dq6pWTgjL/view?usp=sharing

K0bin commented 1 year ago

I'll try and take a look next week.

K0bin commented 1 year ago

The apitrace replays just fine.

Blisto91 commented 1 year ago

@psyopcskx-11 Hello again. Could you try with latest master? You can download it here https://github.com/doitsujin/dxvk/actions/runs/4901825014

K0bin commented 1 year ago

Closing this because I suspect it's a driver bug. Either way, we can't really do anything about it as it's not reproducible.