[SOLVED] Nvidia 415.27 - NVIDIA:nvidia.prime:5ec2b timed out issue ( System hang)

Hi , that is happening on my system lately. It wasn’t on 415.25 but now happens on 415.27 via Nvidia Prime.

It completely hags system. That is the output of

journalctl -b -1

:

Oca 27 03:19:59 asus-FX553VD kernel: CPU2: Package temperature/speed normal
Oca 27 03:21:34 asus-FX553VD kernel: perf: interrupt took too long (3179 > 3138), lowering kernel.perf_event_max_sample_rate to 62750
Oca 27 03:24:59 asus-FX553VD kernel: CPU5: Package temperature/speed normal
Oca 27 03:24:59 asus-FX553VD kernel: CPU3: Package temperature/speed normal
Oca 27 03:24:59 asus-FX553VD kernel: CPU4: Package temperature/speed normal
Oca 27 03:24:59 asus-FX553VD kernel: CPU6: Package temperature/speed normal
Oca 27 03:24:59 asus-FX553VD kernel: CPU0: Package temperature/speed normal
Oca 27 03:24:59 asus-FX553VD kernel: CPU2: Package temperature/speed normal
Oca 27 03:24:59 asus-FX553VD kernel: CPU7: Package temperature/speed normal
Oca 27 03:24:59 asus-FX553VD kernel: CPU1: Package temperature/speed normal
Oca 27 03:29:59 asus-FX553VD kernel: CPU1: Package temperature/speed normal
Oca 27 03:29:59 asus-FX553VD kernel: CPU2: Package temperature/speed normal
Oca 27 03:29:59 asus-FX553VD kernel: CPU6: Package temperature/speed normal
Oca 27 03:29:59 asus-FX553VD kernel: CPU0: Package temperature/speed normal
Oca 27 03:29:59 asus-FX553VD kernel: CPU4: Package temperature/speed normal
Oca 27 03:29:59 asus-FX553VD kernel: CPU5: Package temperature/speed normal
Oca 27 03:29:59 asus-FX553VD kernel: CPU7: Package temperature/speed normal
Oca 27 03:29:59 asus-FX553VD kernel: CPU3: Package temperature/speed normal
Oca 27 03:30:08 asus-FX553VD kernel: CPU1: Core temperature/speed normal
Oca 27 03:30:08 asus-FX553VD kernel: CPU5: Core temperature/speed normal
Oca 27 03:34:34 asus-FX553VD kernel: asynchronous wait on fence NVIDIA:nvidia.prime:5ec2b timed out

That happens with SteamPlay 3.16-6 on Witcher 3.

nvidia-bug-report.log.gz (1.03 MB)

Please check if it’s related to prime sync by turning it off using
xrandr --output eDP-1-1 --set “PRIME Synchronization” “0”
and then running the Witcher

Yes , i can confirm

xrandr --output eDP-1-1 --set 'PRIME Synchronization' '0'

fixes the issue.

Issue is that btw :

You can play Witcher 3 for hours with zero problems when PrimeSync is on however when you quit from the game and turn back to desktop , hovering your mouse for 1 second hangs whole system. That is when timed out issue happens.

My system info:

inxi -SMGxx
System:
  Host: asus-FX553VD Kernel: 4.15.0-43-generic x86_64 bits: 64 compiler: gcc 
  v: 7.3.0 Desktop: Cinnamon 4.0.9 wm: muffin dm: LightDM 
  Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: ASUSTeK product: GL553VD v: 1.0 
  serial: <root required> 
  Mobo: ASUSTeK model: GL553VD v: 1.0 serial: <root required> 
  UEFI: American Megatrends v: GL553VD.307 date: 04/10/2018 
Graphics:
  Device-1: Intel vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
  chip ID: 8086:591b 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: ASUSTeK 
  driver: nvidia v: 415.27 bus ID: 01:00.0 chip ID: 10de:1c8d 
  Display: x11 server: X.Org 1.19.6 driver: modesetting,nvidia 
  unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: GeForce GTX 1050/PCIe/SSE2 v: 4.6.0 NVIDIA 415.27 
  direct render: Yes

Are you playing the Witcher at 1080p or a lower resolution, i.e. is a mode switch involved when exiting to desktop? If so, can you provoke the freeze when simply switching the desktop to a lower resolution and back while prime sync is on?

I’m playing at 1080p , on fullscreen mode.

I just tried changing desktop resolution , it works.

1680x1050 , 1366 x 768. PrimeSync was on all the time.

Which DX version is the Witcher using? Any other games using the same level exibiting the same freeze?

It is DX11. No , other games that i tried using DX11 doesn’t do that.

Also i asked some other Nvidia Linux users on 415.27 driver to see if they can repro that , they couldn’t. They were desktop users.

I think that issue is related to Nvidia PrimeSync , not driver itself or DXVK contained in SteamPlay.

Yes, there are still some more issues regarding the Vulkan+PRIME sync combo, depending on if/which vsync method the application uses. Does the Witcher have different settings for that to further narrow it down?

Well , Witcher 3 has a traditional Vsync option and also has framelimiting option.

Other than that , it doesn’t have any adaptive sync etc.

Hi,

Please share nvidia bug report so that I can prepare setup accordingly and try for repro internally.

Thanks , i attached it to the first message.

Hi,

I found the following closest notebook having similar configuration as ZenBook Pro 15 UX550GEX with GP107M [GeForce GTX 1050 Ti Mobile] and driver 415.27.
Installed Ubuntu 18.10 and downloaded Withcer 3 but unable to launch it.
As a workaround, I installed game White Night and quit after some time but didn’t observe any hang on notebook.

Please confirm if you used steam to launch Witcher 3, if yes, please let me know exact steps followed to launch game.
Moreover, if you face same issue on any other game, please let us know.

Install Linux Steam client.

Go to Steam settings , enable SteamPlay for all titles and select Proton 3.16-6 beta. Obviously you will need libvulkan installed.

No , i only came across in Withcer 3 somehow.

Play the game at fullscreen , vsync on then quit the game and hover your mouse on the screen immediately. If you wait 5-6 seconds after quiting , that timed out issue cannot be triggered.

Also it would be better to test it on Ubuntu 18.04 base since 18.04 is the LTS one and Mint 19.1 is base on Ubuntu 18.04.

They do backport stuff from short term releases like Ubuntu 18.10 to 18.04 eventually but solely testing on 18.10 won’t cut the usual end-user experience. Since other popular distros based on Ubuntu ( such as Elementary OS etc ) are also based on LTS release.

These are the settings on SteamPlay.

Ok , i reproduced it with another game also. Called Paladins , on Steam it is free.

Just go into main menu ( play a game or not ) , quit from the game. Rush your mouse cursor to somewhere else on screen.

I can repro it on nearly every Vulkan title.

Just rush your mouse to somewhere else when you returned to desktop.

Last test case:

Free game and a small one.

Any news about repro?

Cross referenced:

https://devtalk.nvidia.com/default/topic/1046988/linux/asynchronous-wait-on-fence-nvidia-nvidia-prime/

This is still happening on 418.43 and 418.42.02.