protonscr

Crysis 3 loads up to menu and freezes/crashes when starting the tutorial/real mission

dxvkclosed bug
doitsujin/dxvk#145 · opened 2018-03-10 by pingubot · updated 2018-03-15 · 8 comments · github
Ppingubot 2018-03-10 github

Crysis 3 shows the menu and freezes/crashes when loading the tutorial or a real mission.

Software information

Name of the game, settings used etc.

System information

  • GPU: GTX 970
  • Driver: Nvidia 390.25
  • Wine version: 2.21 Staging
  • DXVK version: 0.44.1

Apitrace file(s)

  • Put a link here

Log files

The console output shows the following error message before the game freezes/crashes (the game process keeps alive):

DS(ERROR): object: 0xffffffffdd02efb4 type: 6 location: 1987 msgCode: 408944663: vkCmdClearAttachments(): This call must be issued inside an active render pass. The spec valid usage text states 'This command must only be called inside of a render pass instance' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-vkCmdClearAttachments-renderpass)
fixme:faultrep:ReportFault 0x19e0e098 0x0 stub

If any other info is needed, im happy to provide it.

Thx,
Christian

GGuy1524 2018-03-10 github

@pingubot With cryengine games, you must run winedbg to get a backtrace. To do this,
1)run the game normally
2)run 'winedbg'
3)type 'info process' and find the exe which crashes
4)convert the process ID from hexadecimal to base 10 (https://www.rapidtables.com/convert/number/hex-to-decimal.html)
5)type 'attach [pid]'
6)type cont
7)Once the game crashes, it should print a backtrace, please post this.

I have gotten Kingdom Come: Deliverance, a cryengine game to run on NVIDIA DXVK. Due to a synchronization issue between D3D11Context and DXVK Context, clearRenderTarget is called when there is no bound renderpass. To fix this I had to add a simple patch. If the backtrace indicates you might need this, I will post it.

Ppingubot 2018-03-11 github

@Guy1524 : Many thanks for the tip. Sadly i can't get the debug working. Here is how i tried:

hristian@gamebox:~> WINEDEBUG=-all winedbg
Wine-dbg>info process
pid threads executable (all id:s are in hex)
00000141 1 'winedbg.exe'
00000010 4 'explorer.exe'
0000000e 7 'services.exe'
00000030 8 _ 'winedevice.exe'
00000029 3 _ 'plugplay.exe'
00000013 4 _ 'winedevice.exe'
00000008 80 'Origin.exe'
0000001e 41 _ 'Crysis3.exe'
000000d4 12 _ 'QtWebEngineProcess.exe'
000000c5 11 _ 'QtWebEngineProcess.exe'
Wine-dbg>attach 30
Can't attach process 001e: error 5
Wine-dbg>

On a second try i got this:

christian@gamebox:~> WINEDEBUG=-all winedbg
Wine-dbg>info process
pid threads executable (all id:s are in hex)
00000013 4 'explorer.exe'
0000000e 7 'services.exe'
00000032 8 _ 'winedevice.exe'
0000002a 3 _ 'plugplay.exe'
00000011 4 _ 'winedevice.exe'
00000008 82 'Origin.exe'
00000029 41 _ 'Crysis3.exe'
000000d4 12 _ 'QtWebEngineProcess.exe'
000000c5 11 _ 'QtWebEngineProcess.exe'
Wine-dbg>attach 41
couldn't load main module (2)

Is there an error on my side ?

As the error which you are describing looks similar to what the error message spits out when i try to run crysis3, i think it would make sensse to post your patch and i try to get it running ?

Ppingubot 2018-03-12 github

@Guy1524 : Would you please share your patch to fix the issue. I would really like to test it out. And if it fixes a bug in the dxvk code, i guess also @doitsujin would be happy to take a look.

Ddoitsujin maintainer 2018-03-12 github

Kingdom Come: Deliverance was affected by this problem as well, 06cff50453abcda2cadd0e485e6e4327704889c3 should fix that. Please let me know if that works.

Ppingubot 2018-03-13 github

yep, that fixed the issues. The game loads fine now and i havent't noticed graphical issues so far. Sadly there is an mouse input issue with wine (not a dxvk problem), which makes the game unplayable atm. Overall the performance from what i have seen is much lower than what i hoped (crysis 2 runs fantastic now), the gpu load is ~50-60% which leads to 40-50fps, so there seems to be a bottleneck somewhere.

Ddoitsujin maintainer 2018-03-13 github

I disabled the image mapping optimization permanently, it won't be coming back into master any time soon. Too broken. Might explain the poor performance.

Ppingubot 2018-03-13 github

i tried it already today in the morning, so the optimization was in place. Yeah,noticed that you had to disable it again. As long as the code to enable it is relatively easy, i will manually enable it, the perf increase is to big to have that possibility unused. I do not understand why it works in ESO with amd but not nvidia. Did you get any other reports of affected games ? Btw, do you have any nvidia hardware to test dxvk ?

Ppingubot 2018-03-15 github

Closing this one as the original issue is fixed and i can't really test further right now due to the input bug.

Launch options