protonscr

[d3d9] SkyDrift: crashes on alt+tab

dxvkopen d3d932-bit
doitsujin/dxvk#3639 · opened 2023-08-25 by ranplayer · updated 2023-08-29 · 10 comments · github
Rranplayer 2023-08-25 github

Game crashes if you alt-tab (works fine with WineD3D). I've uploaded an API Trace, but it doesn't crash with it. From the Proton logs, the highlighted errors would be:

err:   DxvkMemoryAllocator: Memory allocation failed
err:     Size:      3145728
err:     Alignment: 16
err:     Mem types: 0,2,3,5,7,8,9,10
err:   Heap  Size (MiB)  Allocated   Used        Reserved    Budget
err:    0:     7908         112          75         111        7756      
err:    1:    12272        2154        1748        1834       11572      
1480.687:012c:0140:trace:seh:raise (22)
terminate called after throwing an instance of 'dxvk::DxvkError'

Software information

  • Game: SkyDrift (Steam Id: 91100)
  • Settings: any

System information

  • GPU: RX 6700 XT
  • Driver: Mesa 23.1.6
  • Wine version: Proton 7.0-6, 8.0-3 and Experimental (2023/08/23)
  • DXVK version: provided by Proton
  • DE: Plasma 5.27.7

Apitrace file(s)

Log files

BBlisto91 2023-08-25 github

Thank you for the issue.
d3d9.allowDirectBufferMapping = False works around this. Just waiting for a dev to evaluate whether that would be the correct way or not.

Rranplayer 2023-08-25 github

@Blisto91 I've just confirmed this workaround works on my end. Thank you for the quick feedback.

KK0bin maintainer 2023-08-25 github

It didn't crash when you made that apitrace, did it?

Rranplayer 2023-08-26 github

Yes... it didn't

KK0bin maintainer 2023-08-26 github

Can you make one with DXVK where it does crash?

Rranplayer 2023-08-27 github

Sure... how could I do it with DXVK ? The previously generated one I followed the wiki tutorial.

Mmbriar 2023-08-27 github

Just set the dll overrides to native instead of native,buildin.

BBlisto91 2023-08-27 github

When using Proton just dropping the dll's next to the exe should be enough as when dxvk is used as the direct3d library (default) the overrides are already set.

Rranplayer 2023-08-27 github

@Blisto91 I did exactly what you said to generate the already attached trace (but the crash doesn't happen)

BBlisto91 2023-08-29 github

Managed to get one where it crashes with dxvk on Windows https://drive.proton.me/urls/NPBQT1CCNC#ysWLsQjt30Ks

Proton versions