You are not logged in.

#1 2021-12-15 01:07:13

patlefort
Member
Registered: 2021-01-30
Posts: 15

Vulkan freeze on calling vkDestroyDevice on nvidia closed drivers.

Backtrace:

#0 0x00007ffff79bb8ca in __futex_abstimed_wait_common64 () from /usr/lib/libpthread.so.0
#1 0x00007ffff79b0743 in __pthread_clockjoin_ex () from /usr/lib/libpthread.so.0
#2 0x00007ffff5d5ed08 in ?? () from /usr/lib/libnvidia-glcore.so.495.44
#3 0x00007ffff61d3ca0 in ?? () from /usr/lib/libnvidia-glcore.so.495.44
#4 0x00007ffff619b315 in ?? () from /usr/lib/libnvidia-glcore.so.495.44
#5 0x00007ffff770ae8f in ?? () from /usr/lib/libGLX_nvidia.so.0
#6 0x00007ffff7f410aa in ?? () from /usr/lib/libvulkan.so.1
#7 0x00007ffff7f4ba78 in vkDestroyDevice () from /usr/lib/libvulkan.so.1
#8 0x0000555555558366 in main () at /home/elrick/Projects/Dumpster/TestVulkan/main.cpp:448

It affects all applications.

Driver version 495.44 from package nvidia-dkms. GeForce 1070 GTX card. I posted this on nvidia forums but no anwsers. It's been broken like this since the last driver version. Any idea what could be going on? (yes I know nvidia bad, my next card is definitely AMD).

Offline

#2 2021-12-15 08:32:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: Vulkan freeze on calling vkDestroyDevice on nvidia closed drivers.

There's technically a newer driver version, maybe fixed there?

Offline

#3 2021-12-16 13:19:19

patlefort
Member
Registered: 2021-01-30
Posts: 15

Re: Vulkan freeze on calling vkDestroyDevice on nvidia closed drivers.

Same problem on version 495.46.

Offline

#4 2021-12-28 07:25:39

patlefort
Member
Registered: 2021-01-30
Posts: 15

Re: Vulkan freeze on calling vkDestroyDevice on nvidia closed drivers.

I traced the problem to using __GL_THREADED_OPTIMIZATIONS. I guess it's not a good idea to blanket enable that everywhere.

Offline

#5 2021-12-28 07:36:30

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,426

Re: Vulkan freeze on calling vkDestroyDevice on nvidia closed drivers.

Interesting.
I wonder what __GL_THREADED_OPTIMIZATIONS has to do with Vulkan drivers.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#6 2022-01-04 06:43:44

compsci101
Member
Registered: 2022-01-04
Posts: 5

Re: Vulkan freeze on calling vkDestroyDevice on nvidia closed drivers.

I have the same thing happening to me without using the __GL_THREADED_OPTIMIZATIONS environment variable, in many games.

DotA2 Vulkan, for instance, has been freezing at shutdown for a while (a month?  maybe more -- I have to kill it externally).  Using OpenGL to run the game allows normal shutdown.

nvidia: 495.46-6 on RTX 3080Ti.

Offline

#7 2022-01-04 08:36:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: Vulkan freeze on calling vkDestroyDevice on nvidia closed drivers.

It's very possible the game sets that environment variable for itself, as it used to be a common perf optimisation for certain OpenGL use cases. To check you can do

tr '\0' '\n' < /proc/$(pidof dota)/environ

replace the dota with the actual process name, not sure what it uses here.

Offline

#8 2022-01-04 10:44:09

patlefort
Member
Registered: 2021-01-30
Posts: 15

Re: Vulkan freeze on calling vkDestroyDevice on nvidia closed drivers.

Offline

Board footer

Powered by FluxBB