protonscr

Memory leak in STAR WARS Jedi: Fallen Order

dxvkclosed game bug
doitsujin/dxvk#1265 · opened 2019-12-03 by FrogTheFrog · updated 2019-12-04 · 6 comments · github
1 matching comments, n / p to jump
FFrogTheFrog 2019-12-03 github

Hello,

I've encountered this memory leak while playing Star Wars after some time, which leads to a major slowdown and a crash (if you try really hard).

I've managed to replicate this issue by spamming Esc key to open and close menu, but I believe that the root cause might be somewhere else - I don't think I've opened menu this many times during normal gameplay.

In addition to required files, I've attached video of me spamming Esc key with full DXVK hud.


Software information

  • Game: STAR WARS Jedi: Fallen Order
  • Settings: Epic preset
  • Resolution: 2560x1440

System information

  • GPU: GTX 1080
  • Driver: 440.36.0
  • Wine version: 4.21
  • DXVK version: 1.4.6

Apitrace file(s)

Log files

Notes

  • Apitrace includes crash, however log files had the game exit gracefully.
  • Video reproducing memory leak and an eventual crash.
Ddoitsujin maintainer 2019-12-03 github

Are you sure this isn't just a game bug? DXVK isn't known to leak memory.

KK0bin maintainer 2019-12-03 github

It's a game bug.
grafik

(F for my poor escape key)

Ddoitsujin maintainer 2019-12-03 github

Thanks for checking.

Apitrace includes crash, however log files had the game exit gracefully.

FWIW the apitrace seems somewhat broken (not your fault); apitrace thinks it only contains one frame and lacks some references to DXGI objects -> I can't replay it. But yeah, this looks like it creates some framebuffers that it never frees afterwards.

Mmisyltoad 2019-12-03 github

apitrace thinks it only contains one frame and lacks some references to DXGI objects -> I can't replay it

Was dxgi.dll and dxgitrace.dll used?

Ddoitsujin maintainer 2019-12-03 github

Actually, now that Josh mentioned it, was the trace created on Proton? Proton uses Wine's DXGI now, so when recording a trace, you'll probably need to set the environment variable WINEDLLOVERRIDES=dxgi=n,b now.

Anyway, it's not important in this case since it seems to happen on Windows as well.

FFrogTheFrog 2019-12-04 github

Ah, dang it!

Anyway, regarding the apitrace - I'm using proton. I had to enable apitrace by moving dlls, but I did not know about that override. Will do it the next time!

Since, it's a game bug, I'm closing the issue.

Launch options

DLLs