dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

[d3d11] Project CARS 2 missing menu/HUD on HMD (SteamVR)

Open mimattr opened this issue 5 years ago • 13 comments

It appears DXVK has memory allocation issues with this application using SteamVR, resulting in either a crash or hang: Screenshot 1 Screenshot 2

Unlike Windows 10 the application also fails to render any menu/HUD items to the VR headset prior to starting a race.

Software information

  • Name: Project CARS 2

System information

  • GPU: GeForce RTX 2060
  • Driver: NVIDIA 440.44
  • Wine version: Proton 4.11-11
  • DXVK version: 1.5
  • SteamVR version: 1.10.1

Apitrace file(s)

Log files

mimattr avatar Jan 10 '20 18:01 mimattr

Memory allocation failure is not a bug and cannot be fixed, see #1100 (although this should be fixed in recent Nvidia drivers). If this is still a problem, something might be wrong with your system configuration.

doitsujin avatar Jan 10 '20 22:01 doitsujin

Due to this comment, can you try with latest Vulkan beta driver?

https://github.com/ValveSoftware/Fossilize/issues/55#issuecomment-572589380

Leopard1907 avatar Jan 10 '20 23:01 Leopard1907

this should be fixed in recent Nvidia drivers

@doitsujin Currently NVIDIA 440.44 is the latest stable release, is a beta driver required?

something might be wrong with your system configuration.

@doitsujin Possible though unlikely, this system is configured for testing purposes. (i.e. standard packages/out-of-the-box experience)

can you try with latest Vulkan beta driver?

@Leopard1907 Currently Ubuntu's graphics PPA does not provide the latest NVIDIA 440.43.02 "Beta" driver, will have to wait for a stable release.

@doitsujin The application also fails to render any menu/HUD items to the VR headset prior to starting a race:

Windows 10 (works as expected) Screenshot 1 projectcars2_vrmonitor.windows10_dx11_steamvr.mp4

Ubuntu 18.04 LTS (menu/HUD issue) Screenshot 2 projectcars2_vrmonitor.ubuntu1804_dxvk15_steamvr.mp4

mimattr avatar Jan 12 '20 20:01 mimattr

And what exactly is the "menu/HUD issue"? The screenshots look the same?

Or are you referring to whatever is in the small window? Note that I have hardly any experience with VR so it's not clear what your problem is. It's also extremely hard to debug VR-specific issues.

If so, it might also be worth checking if the same thing happens with wined3d, if there are any messages about d3dx11/d3dcompiler in the Proton log (those are responsible for most rendering issues these days, and are also not not part of DXVK).

@doitsujin Possible though unlikely, this system is configured for testing purposes. (i.e. standard packages/out-of-the-box experience)

Again, failed memory allocations simply cannot be fixed in DXVK. Either you're actually running out of memory or your driver is acting up for whatever reason. I don't think a beta driver is required.

doitsujin avatar Jan 13 '20 01:01 doitsujin

@mimattr https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

440.48.02 added now , can you try with it?

Leopard1907 avatar Jan 15 '20 23:01 Leopard1907

Note that I have hardly any experience with VR so it's not clear what your problem is.

@doitsujin The small window (bottom-left) displays the VR headset view, currently nothing is rendered on Ubuntu until starting a race... all menu/HUD items are missing and have to be selected via the desktop display:

it might also be worth checking if the same thing happens with wined3d, if there are any messages about d3dx11/d3dcompiler in the Proton log

@doitsujin There are many d3dx11/d3dcompiler messages when using wined3d (Proton 4.11-12):

440.48.02 added now , can you try with it?

@Leopard1907 The memory allocation issue appears to be resolved using the latest NVIDIA 440.48.02 driver, unfortunately the fundamental issue of this application crashing SteamVR still remains:

Screenshot 1 Screenshot 2

System information

  • GPU: GeForce RTX 2060
  • Driver: NVIDIA 440.48
  • Wine version: Proton 4.11-12
  • DXVK version: 1.5.1
  • SteamVR version: 1.10.3

mimattr avatar Jan 17 '20 12:01 mimattr

The missing menu is eventually fixed with https://github.com/ValveSoftware/Proton/pull/4163 Afaik Project Cars 2 and Assetto Corsa Competizione are using Unreal Engine 4, thus it is very likely that both games use the same way to create the menus.

Edit: I’m not that sure anymore that PC2 uses UE4, so I might miss the mark here completely.

jp7677 avatar Oct 12 '20 17:10 jp7677

On a side note, the menus in ACC are working perfectly with said PR, but the game itself crashes in VR (it runs perfectly without VR) when using an NVIDIA card. I tried to collect the info I have here https://github.com/ValveSoftware/SteamVR-for-Linux/issues/397 As far as i read (https://github.com/ValveSoftware/Proton/issues/1420#issuecomment-706723540) Project Cars 2 has the same or a similar issue.

jp7677 avatar Oct 12 '20 17:10 jp7677

This issue might be fixed with Proton 5.13-2 RC, see https://github.com/ValveSoftware/Proton/issues/4360 Unfortunately I don't own PC2, would be cool if somebody could confirm this.

jp7677 avatar Nov 09 '20 19:11 jp7677

This issue might be fixed with Proton 5.13-2 RC, see ValveSoftware/Proton#4360

@jp7677 Launching Project CARS 2 with Proton 5.13-2 RC3 and SteamVR 1.15.7 now displays the initial "Namco Bandai" loading screen within the headset/HMD but SteamVR itself crashes before progressing further.

I’m not that sure anymore that PC2 uses UE4, so I might miss the mark here completely.

@jp7677 Correct, the "Project CARS" games use the MADNESS Engine along with Automobilista 2 (same issue)

mimattr avatar Nov 13 '20 20:11 mimattr

@mimattr thanks for the test and clarification. Sorry to hear that this is a different issue than the one ACC had and thus sorry for the noise I made.

jp7677 avatar Nov 13 '20 20:11 jp7677

@mimattr Friendly ping. Are you still having different issues with latest version? 🙂

Blisto91 avatar Jul 11 '22 05:07 Blisto91

Are you still having different issues with latest version?

@Blisto91 Unfortunately the latest issue still remains, launching Project CARS 2 with Proton Experimental 7.0-20220712 and SteamVR 1.23.6 displays the initial "Namco Bandai" loading screen within the headset/HMD but SteamVR itself crashes before progressing further.

mimattr avatar Jul 16 '22 09:07 mimattr