Hello.
If possible could you attempt to record a apitrace of a section of the game where it usually crashes? Do it without dxvk.
https://github.com/doitsujin/dxvk/wiki/Using-Apitrace
If not then i will try to test the game myself on Linux tomorrow.
Edit: oh didn't notice it was you Rodrigo 😁
The reason why we don't crash without that commit is most likely because we're straight-up leaking the D3D11 device.
What exactly is happening anyway? This sounds like the underlying DXVK device already got destroyed by the time the texture gets destroyed (which however should hold a strong reference to the D3D11 device), so this should be impossible, not sure what to make of this.
Either way, yes, COM reference counting is known to be extremely broken in DXVK, but it's also extremely hard to get right.
Starting with commit 8758bcedae4cd95827acb801be0aba2ae3edc3f1 a few applications started crashing on shutdown inside
RtlAcquireSRWLockExclusive. Reverting this commit fixes the issue.Here is a backtrace of the crash:
Software information
Reproduced on an internal Ashes of the Singularity frame capture. It also happens on other titles.
I can try reproducing it in a real application if the bug is not obvious.
System information
Log files