protonscr

DXVK Skyrim LE memory allocate crash

dxvkclosed d3d932-bit
doitsujin/dxvk#2651 · opened 2022-05-24 by blant221 · updated 2022-06-10 · 32 comments · github
Bblant221 2022-05-24 github

I don't know why, but when using DXVK i have allocate memory crashes from Heap Replacer or Crash Fixes with couple of minutes gameplay.
DXVK give me boost about 10fps indoor/outdoor and remove micro stuttering when i fight or explore the world.

What i tried:
Disable heap replacer and enable UseOSAllocators & AlignHeapAllocate in Crash Fixes.
Disable Memory Optimizer and remove Memory Optimizer.exe file in Skyrim directory.
Enable in dxvk.conf d3d9.evictManagedOnUnlock
Add VRAM memory in dxvk.conf from my GTX 1080Ti in values - dxgi.maxDeviceMemory & dxgi.maxSharedMemory

Please help with that strange problem.
Thank you for reading! Maybe someone give me hints what to do :)

PS. Without DXVK everything is fine.

SYSTEM: Windows
LOG:
TESV_d3d9.log

KK0bin maintainer 2022-05-24 github

Most likely another instance of #1318.

Try #2524.

Bblant221 2022-05-24 github

Most likely another instance of #1318.

Try #2524.

I must add, that i'm using Windows and how can i use what you send me?

BBlisto91 2022-05-24 github

@blant221 You can grab a build of it here.
https://github.com/doitsujin/dxvk/actions/runs/2198005772

Just use it the same way as a proper release.

Bblant221 2022-05-24 github

@blant221 You can grab a build of it here. https://github.com/doitsujin/dxvk/actions/runs/2198005772

Just use it the same way as a proper release.

Thank you! dxvk.conf i can use same?

BBlisto91 2022-05-24 github

Yep should be fine

Bblant221 2022-05-24 github

Yep should be fine

Really, thanks ;) Time for testing!

BBlisto91 2022-05-24 github

Just note async won't do anything with this version since it isn't officially supported.
But it doesn't hurt leaving it there.

Bblant221 2022-05-24 github

Just note async won't do anything with this version since it isn't officially supported. But it doesn't hurt leaving it there.

Still same problem. I have crash to desktop in about 1-2 minutes with d3d9.evictManagedOnUnlock or without.
TESV_d3d9.log

BBlisto91 2022-05-24 github

I can try testing a bit if i have time this weekend. (Not a dev btw so i can't fix anything myself)

KK0bin maintainer 2022-05-24 github

It's probably not because of managed textures then. I'd need an apitrace to know more.

Bblant221 2022-05-24 github

It's probably not because of managed textures then. I'd need an apitrace to know more.

It's weird but with apitrace i don't have crashin 1-2 minutes, but game working like slideshow, very low fps. Right now passed about 10 minutes and still testing

KK0bin maintainer 2022-05-24 github

Nothing weird about that. With apitrace it's not using DXVK but instead recording every single D3D9 call which is slow.

Bblant221 2022-05-24 github

Nothing weird about that. With apitrace it's not using DXVK but instead recording every single D3D9 call which is slow.

Thank you for answer :) Still game is running without any crashes from apitrace

KK0bin maintainer 2022-05-24 github

Yeah, that's expected. There should be a .trace file on your desktop. Please compress and upload that.

Bblant221 2022-05-24 github

Yeah, that's expected. There should be a .trace file on your desktop. Please compress and upload that.

GOD DAMN! That file is 50GB size! .trace file.

Bblant221 2022-05-24 github

Bez tytułu

KK0bin maintainer 2022-05-24 github

O_O How long did you play with apitrace? Starting the game and running around for a minute is easily long enough.

Just delete that and make a new one but this time quit earlier.

Bblant221 2022-05-24 github

If i play for about one minute, then this file is 8GB size xD
Bez tytułu

KK0bin maintainer 2022-05-24 github

Zip that and it'll be 4GB.

Bblant221 2022-05-24 github
Bblant221 2022-05-25 github

Zip that and it'll be 4GB.

If i may ask, do you check that .trace file? I am terribly anxious for a solution, although yes, I am aware that it may not work

KK0bin maintainer 2022-05-25 github

The game uses D3DPOOL_SYSTEMMEM in addition to D3DPOOL_DEFAULT textures, that's why the PR didn't work.

BBlisto91 2022-05-25 github

Would @TheIronWolfModding 's work maybe be beneficial here then? (Sorry for ping if it's unrelated)
It is worth trying a compile with their branch?

KK0bin maintainer 2022-06-02 github

#2663 should fix this.

Bblant221 2022-06-04 github

#2663 should fix this.

If i load game indoor in a cave, everything is fine, but when i wanna go outdoor, then when it loads the game to a open world game crashes. I don't even have time to see on the screen game picture.

KK0bin maintainer 2022-06-04 github

Please upload logs of a crash.

Bblant221 2022-06-04 github

Please upload logs of a crash.
TESV_d3d9.log

Once more i must make trace file?

BBlisto91 2022-06-04 github

The dxvk logs should do as a starter i think

Bblant221 2022-06-04 github

Please upload logs of a crash.

Here is trace file -> https://drive.google.com/file/d/1kqsuU4UkC8T2i2024-Fmgr2wrgZyynfL/view?usp=sharing

Bblant221 2022-06-04 github

Please upload logs of a crash.

I hope this is what you want? :)

KK0bin maintainer 2022-06-06 github

I fixed the issue with Skyrim in my PR.

KK0bin maintainer 2022-06-10 github

Closing this as it's already tracked by #1318

Nothing extracted yet.