Lutris - dxvk memory error

Can anybody help me with this trouble?
I spent more than 10 hours to find any solution, but unsuccessful
Info:
Game: Dead Cells (Not from steam or gog)
Problem: After playing 1h game crashed (I entered new location), if i try to resume - game crashes again or just keeping loading screen
There is more than 5Gb free RAM, but game can’t use it
Error log:
err: DxvkMemoryAllocator: Memory allocation failed
err: DxvkMemoryAllocator: Memory allocation failed
err: Size: 67174464
err: Alignment: 4096
err: Mem flags: 0x1
err: Mem types: 0x1
err: Heap 0: 1216 MB allocated, 990 MB used, 1239 MB allocated (driver), 1536 MB budget (driver), 1536 MB total

Error looped, i pasted repeating part
I found only “WINE_LARGE_ADDRESS_AWARE=1” and “echo $(( 1024 * 1024 )) | sudo tee /proc/sys/vm/min_free_kbytes” to solve this problem, but i’m new here, so i don’t know where must i enter first command, second command is useless
I found mention of dxvk.conf file, but i can’t find it in my system…

Wine version: lutris-fshack-6.14-3-x86_64
DXVX version (In lutris): v1.9.1L
Driver: xserver-xorg-video-nouveau (Version 1:1.0.16-1)
Graphical card: Nvidia NVS 5200M
Linux distro; Linux Mint 20.2
Device: Dell latitude E6430

P.S. installation Nvidia driver is useless
Decreasin DXVK version cause momental crash on Nvidia driver (v390) with error INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete

On xserver-xorg-video-nouveau driver problem stll exist but wit log (error not repeating):

err: DxvkMemoryAllocator: Memory allocation failed
err: Size: 67108864
err: Alignment: 16
err: Mem flags: 0x6
err: Mem types: 0x1
err: Heap 0: 1216 MB allocated, 1055 MB used, 1239 MB allocated (driver), 1536 MB budget (driver), 1536 MB total
err: Exception on CS thread!
err: DxvkMemoryAllocator: Memory allocation failed

If i disable DXVK in lurtis:

ERROR: ld.so: object ‘/usr/$LIB/libgamemodeauto.so.0’ from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/$LIB/libgamemodeauto.so.0’ from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
wine: Read access denied for device L"\??\Z:\", FS volume label and serial are not available.
Loading assets… Loading pak assets… done.
Steam init…
done.
X Error of failed request: GLXBadFBConfig
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 0 ()
Serial number of failed request: 287
Current serial number in output stream: 287
Monitored process exited.
All monitored processes have exited.
Monitored process didn’t return an exit code.
Exit with returncode 0

1 Like

i don’t know much about this error but I know that the nvidia drivers have a bug with memory allocation with vkd3d but haven’t heard of that kind of bug with dxvk.

The dxvk.conf file, you have to create yourself and add the value you want in it. Then in your lutris, open the games configuration and then navigate to the System Options tab, scroll down to “Environment variables” and in that add in the key tab, “DXVK_CONFIG_FILE” without quotes and in value add the path of your dxvk.conf you made.
The same applies with WINE_LARGE_ADDRESS_AWARE add that in key and the value is 1 to enable it.

I used to have the same problem with Borderlands 2 running via forced Proton…
Using the line on d3d9.evictManagedOnUnlock=True in the dxvk.conf file solved the problem (with that game)

What does that line mean?