Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assassin's Creed 2 alt tab crash #3653

Closed
Blisto91 opened this issue Sep 3, 2023 · 1 comment · Fixed by #3763
Closed

Assassin's Creed 2 alt tab crash #3653

Blisto91 opened this issue Sep 3, 2023 · 1 comment · Fixed by #3763
Labels

Comments

@Blisto91
Copy link
Contributor

Blisto91 commented Sep 3, 2023

While testing this game on Windows for another issue i noticed that it will crash with dxvk when you alt tab.
Default with dxvk without any configs the game will close down as soon as you alt tab out and it is minimized.

When using d3d9.deviceLossOnFocusLoss = True the game will not immediately crash upon a alt tab but it also doesn't work properly as the desktop mouse cursor will appear but the game Window will stay up on top of any other apps. You can force it down by doing a alt tab and then ctrl + alt + del and selecting task manager. When you then try to go back in to the game it will crash.

If d3d9.deviceLossOnFocusLoss = True is combined with d3d9.enableDialogMode = True you are able to alt tab out fine and if you don't touch anything else you can also alt tab back in. If you interact with anything while alt tabbed like clicking with the mouse the game will likely crash when you try to go back in. Same if you do it by clicking on the game icon in the taskbar.
So d3d9.deviceLossOnFocusLoss = True seems to improve the behavior as the game won't shut down immediately when you get to desktop, but it is still crash prone.

This have all been tested on Windows only so far. Linux testing pending but i was asked to make an issue

Software information

Assassin's Creed 2 fullscreen

System information

  • GPU: 7900xtx
  • Driver: 23.8.2
  • Wine version: Windows 11 only so far. Linux test pending See first comment
  • DXVK version: Master

Apitrace file(s)

https://drive.proton.me/urls/QDG5P4RTB4#QDx3b0yg3NsK

Two traces from Windows. One is native game where i alt tab out and in and second is with dxvk with d3d9.deviceLossOnFocusLoss = True and d3d9.enableDialogMode = True and it crashing when i try to go back in to the game.

Log files

AssassinsCreedIIGame_d3d9.log

@Blisto91
Copy link
Contributor Author

Blisto91 commented Dec 23, 2023

Tested this on Linux with Proton Experimental now. The game will also crash here when i alt tab but a difference is that d3d9.deviceLossOnFocusLoss = True seems to make it work fully and i haven't gotten it to crash anymore using that unlike on Windows.
I have not checked how it behaves with regular upstream Wine yet to see if fshack or other Proton specific is making a difference here.

Tested on KDE Wayland and X11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants