r/Unity3D • • Jun 30 '20

Question VULKAN build crashes for majority players, why?

Before I get to the problem, let me state that the standalone build in DX11 works perfectly fine without any crash what so ever for everyone.

The problem occurs when starting the game with vulkan API. When opening the build during the time we are loading the main menu scene from a loading scene(separate loading scene that is assigned in the beginning) at around 80%-100% the build crashes. Mind not for everyone but majority.This is fairly unacceptable for us since the vulkan version is giving our players double the fps they get in DX11.

Now you might say this is because we have a GPU/CPU that doesnt support vulkan, well for all the users(that tested) they can easily play other games using vulkan, why should this be different?

Now if this was something that didnt work for everyone that could easily mean the problem is with the game. However because it works for few people I am wondering why it really crashes. I have checked for crash reports but it does not generate any crash report when crashing with vulkan. Not sure why, hoping some one here can refresh me on that. Other type of crashes do generate report.

You can also say this can be because the users that can get it to work use a better PC, but well you are wrong there too I am afraid. For those who didnt crash using vulkan some of them use one of the lowest spec PCs and some of them use the highest. The difference is too drastic for this to be considered an issue for the crash.

All this leading me to ask this one thing, (mostly because unity's support ignores this question). Why does vulkan build crash for majority(People who can also play other games using vulkan)?

1 Upvotes

5 comments sorted by

1

u/pschon Unprofessional Jun 30 '20

if you can't check crash reports, then check player log file.

Also, if your agem is multiplatform, and supports Linux, try yourself, or ask a Linux player, to strat the game form a terminal to catch any possibly useful messages. This might provide some help ojn other platfomrs as well of course, but usually Linux is the one that gives you most useful info.

(We are also using Vulkan, and wihtout problems, so you probaly are still lookign at something that's caused by your game, not some kind of universal Unity issue wiht Vulkan. So if you were asking Untiy support about Unity issue causing crashes on Vulkan, that would be why they ignored the question. They can only help you wiht Unity itself, not with things specific to your game.)

1

u/Meheraj7 Jun 30 '20

Sorry i didnt mean to say it was unity's fault, I am a bit hot headed because of this bug lasting for so long with us. We understand it is a GPU driver issue but it is still very random so was hoping if someone else face this issue too we can get some sort of understanding or solution

1

u/pschon Unprofessional Jun 30 '20

fair enough, I only added that part because I think that's likely why Unity support might have ignored the question.

Are you making builds for Windows only, or other desktop platforms as well? Cross-platform driver issue would sound bit less likely, but for windows-only wouldn't surprise me. We've had fair problems like that over times, usually solved by disabling some postprocessing filter or other piece of shader somewhere until the bug gets sorted out.. Might not be a bad idea to see if you can get any specifics about hardware as well, AMD vs nVidia or all of them for example would be worth knowing...

1

u/Meheraj7 Jun 30 '20

Yap, we are building for windows only. From 50 players 15 were able to run Vulkan build. We had both AMD users and NVidia users who were able to run the vulkan build. Some had almost identical GPU and CPU to those who couldnt run vulkan.

1

u/SeaworthinessNo1249 Feb 17 '22

Possibly due to driver. Even my laptop also crashes even when using vulkan as player graphics API.

To try solve your issue. Let's do some checklist

  1. Chipset driver update
  2. Graphics driver update
  3. C++ redistributable update
  4. Dotnet framework runtime update
  5. Dxwebsetup update
  6. Vulkan lunarg runtime update

Please update know if there are changes.