@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.
@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 ?
@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.
Kingdom Come: Deliverance was affected by this problem as well, 06cff50453abcda2cadd0e485e6e4327704889c3 should fix that. Please let me know if that works.
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.
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.
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 ?
Closing this one as the original issue is fixed and i can't really test further right now due to the input bug.
WINEDEBUG=-allx1 2018-03
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
Apitrace file(s)
Log files
dxgi.log:
Crysis3_dxgi.log
d3d11.log:
Crysis3_d3d11.log
The console output shows the following error message before the game freezes/crashes (the game process keeps alive):
If any other info is needed, im happy to provide it.
Thx,
Christian