Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXVK Skyrim LE memory allocate crash #2651

Closed
blant221 opened this issue May 24, 2022 · 32 comments
Closed

DXVK Skyrim LE memory allocate crash #2651

blant221 opened this issue May 24, 2022 · 32 comments

Comments

@blant221
Copy link

blant221 commented May 24, 2022

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

@K0bin
Copy link
Collaborator

K0bin commented May 24, 2022

Most likely another instance of #1318.

Try #2524.

@blant221
Copy link
Author

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?

@Blisto91
Copy link
Contributor

Blisto91 commented May 24, 2022

@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.

@blant221
Copy link
Author

@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?

@Blisto91
Copy link
Contributor

Yep should be fine

@blant221
Copy link
Author

Yep should be fine

Really, thanks ;) Time for testing!

@Blisto91
Copy link
Contributor

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

@blant221
Copy link
Author

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

@Blisto91
Copy link
Contributor

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

@K0bin
Copy link
Collaborator

K0bin commented May 24, 2022

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

@blant221
Copy link
Author

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

@K0bin
Copy link
Collaborator

K0bin commented May 24, 2022

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

@blant221
Copy link
Author

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

@K0bin
Copy link
Collaborator

K0bin commented May 24, 2022

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

@blant221
Copy link
Author

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.

@blant221
Copy link
Author

Bez tytułu

@K0bin
Copy link
Collaborator

K0bin commented May 24, 2022

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.

@blant221
Copy link
Author

blant221 commented May 24, 2022

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

@K0bin
Copy link
Collaborator

K0bin commented May 24, 2022

Zip that and it'll be 4GB.

@blant221
Copy link
Author

Zip that and it'll be 4GB.

https://drive.google.com/file/d/1QNAUDBuCSJfadUWkojGcP5W1Wd4cpNP4/view?usp=sharing
Here is the trace file.

@blant221
Copy link
Author

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

@K0bin
Copy link
Collaborator

K0bin commented May 25, 2022

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

@Blisto91
Copy link
Contributor

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?

@K0bin
Copy link
Collaborator

K0bin commented Jun 2, 2022

#2663 should fix this.

@blant221
Copy link
Author

blant221 commented Jun 4, 2022

#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.

@K0bin
Copy link
Collaborator

K0bin commented Jun 4, 2022

Please upload logs of a crash.

@blant221
Copy link
Author

blant221 commented Jun 4, 2022

Please upload logs of a crash.
TESV_d3d9.log

Once more i must make trace file?

@Blisto91
Copy link
Contributor

Blisto91 commented Jun 4, 2022

The dxvk logs should do as a starter i think

@blant221
Copy link
Author

blant221 commented Jun 4, 2022

Please upload logs of a crash.

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

@blant221
Copy link
Author

blant221 commented Jun 4, 2022

Please upload logs of a crash.

I hope this is what you want? :)

@K0bin
Copy link
Collaborator

K0bin commented Jun 6, 2022

I fixed the issue with Skyrim in my PR.

@K0bin
Copy link
Collaborator

K0bin commented Jun 10, 2022

Closing this as it's already tracked by #1318

@K0bin K0bin closed this as completed Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants