LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   DXVK error when alt-tabbing from game running in Proton (https://www.linuxquestions.org/questions/linux-games-33/dxvk-error-when-alt-tabbing-from-game-running-in-proton-4175711215/)

lord_grimlor 04-24-2022 01:14 PM

DXVK error when alt-tabbing from game running in Proton
 
I've been experiencing crashes due to a DXVK error while playing through Dragon Age II using Steam Proton.
The crash is easy to reproduce. Once the game loads up to the start menu, I press alt tab or the windows key, and the game crashes.

I enabled all the logging I'm aware of, but I could only find one related message, and it was from a d3d11 log specific to this game:
steamapps/common/Dragon Age II/bin_ship/DragonAge2_d3d11.log

Code:

info:  Restoring display mode: 2560x1440@60
info:  Setting display mode: 2560x1440@60
err:  DxvkMemoryAllocator: Memory allocation failed
err:    Size:      1200128
err:    Alignment: 256
err:    Mem flags: 0x7
err:    Mem types: 0x781
err:  Heap 0: 678 MB allocated, 453 MB used, 961 MB allocated (driver), 6362 MB budget (driver), 8192 MB total
err:  Heap 1: 586 MB allocated, 553 MB used, 679 MB allocated (driver), 11898 MB budget (driver), 11898 MB total
err:  Heap 2: 202 MB allocated, 181 MB used, 245 MB allocated (driver), 0 MB budget (driver), 246 MB total

The only discussions I could find online regarding a DxvkMemoryAllocator error were from 3 years ago, but that error was apparently fixed in nvidia driver 440, so I don't think it's the same cause. https://github.com/doitsujin/dxvk/issues/1100

Since this crash is so easy and consistent to reproduce, I'm motivated to try and figure out the source of the error.
However, I'm not sure how to continue debugging this. I've looked through all the logs I know of, and came up with only that one error message.

If anyone could offer some info or resources that can help me continue digging into this, it would be much appreciated.

Thanks!

### System information

Kernel: 5.13.0-39-generic
Desktop: KDE Plasma 5.22.5
Distro: Ubuntu 21.10 (Impish Indri)
GPU: NVIDIA TU104 [GeForce RTX 2080 SUPER]
Driver: nvidia 510.54
Display resolution: 2560x1440~60Hz
Proton: 1649946742 experimental-7.0-20220414
DXVK: v1.10.1
Game: Dragon Age II

ondoho 04-25-2022 11:11 PM

Don't Alt-Tab while running the game.
You could wrap it in a script that disables alt-tabbing while you play it.

Quote:

Originally Posted by lord_grimlor (Post 6348374)
I've been experiencing crashes due to a DXVK error while playing through Dragon Age II using Steam Proton.
The crash is easy to reproduce. Once the game loads up to the start menu, I press alt tab or the windows key, and the game crashes.

I enabled all the logging I'm aware of, but I could only find one related message, and it was from a d3d11 log specific to this game:
steamapps/common/Dragon Age II/bin_ship/DragonAge2_d3d11.log

Code:

info:  Restoring display mode: 2560x1440@60
info:  Setting display mode: 2560x1440@60
err:  DxvkMemoryAllocator: Memory allocation failed
err:    Size:      1200128
err:    Alignment: 256
err:    Mem flags: 0x7
err:    Mem types: 0x781
err:  Heap 0: 678 MB allocated, 453 MB used, 961 MB allocated (driver), 6362 MB budget (driver), 8192 MB total
err:  Heap 1: 586 MB allocated, 553 MB used, 679 MB allocated (driver), 11898 MB budget (driver), 11898 MB total
err:  Heap 2: 202 MB allocated, 181 MB used, 245 MB allocated (driver), 0 MB budget (driver), 246 MB total

The only discussions I could find online regarding a DxvkMemoryAllocator error were from 3 years ago, but that error was apparently fixed in nvidia driver 440, so I don't think it's the same cause. https://github.com/doitsujin/dxvk/issues/1100

Since this crash is so easy and consistent to reproduce, I'm motivated to try and figure out the source of the error.
However, I'm not sure how to continue debugging this. I've looked through all the logs I know of, and came up with only that one error message.

If anyone could offer some info or resources that can help me continue digging into this, it would be much appreciated.

Thanks!

### System information

Kernel: 5.13.0-39-generic
Desktop: KDE Plasma 5.22.5
Distro: Ubuntu 21.10 (Impish Indri)
GPU: NVIDIA TU104 [GeForce RTX 2080 SUPER]
Driver: nvidia 510.54
Display resolution: 2560x1440~60Hz
Proton: 1649946742 experimental-7.0-20220414
DXVK: v1.10.1
Game: Dragon Age II



All times are GMT -5. The time now is 09:30 AM.