doitsujin / dxvk

Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine
zlib License
12.29k stars 785 forks source link

[d3d9] SkyDrift: crashes on alt+tab #3639

Open ranplayer opened 10 months ago

ranplayer commented 10 months ago

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

System information

Apitrace file(s)

Log files

Blisto91 commented 10 months ago

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.

ranplayer commented 10 months ago

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

K0bin commented 10 months ago

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

ranplayer commented 10 months ago

Yes... it didn't

K0bin commented 10 months ago

Can you make one with DXVK where it does crash?

ranplayer commented 10 months ago

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

mbriar commented 10 months ago

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

Blisto91 commented 10 months ago

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.

ranplayer commented 10 months ago

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

Blisto91 commented 10 months ago

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