SOLVED: "Vulcan Device has returned a Fatal Error" in a simple patch

Hello everyone!

I experience a very unusual bug while using TouchDesigner.
I get this error “The Vulcan Device has return a fatal error Code. This usually happens if a GPU operation runs for too long or is stuck in an infinite loop. If you are using GLSL TOP/MAT, check your code and try to simplify complex shaders. You can try turning up the TdrDelay in the Windows Registry to see if giving the GPU more time avoids the error. Otherwise please report this issue to support@derivative.ca Exiting.” in a very simple patch.

There’s a set up including Unreal Engine, TouchDesigner and OBS.
Unreal Engine runs an .exe file with interactive graphics and touchscreen UI. The UI is opened on touchscreen and graphics are captured from touchscreen with OBS and output on a big screen.

TouchDesigner runs on a background and has this functionality:

  1. It’s getting a graphics stream from Unreal via Spout In
  2. This graphics goes to the component that uploads the screenshot to the server and generates QR-code
  3. Unreal UI has a push button. When clicked it sends a trigger to TouchDesigner via OSC
  4. The trigger runs the process of uploading a screenshot from Spout and generating QR-code
  5. The output QR-code is being sent back to Unreal UI via Spout Out

Originally the file was built and run on version 2022.33910.

The problem is that TouchDesigner is randomly giving this error and closing. It can be after 1 hour of running or after 4 hours for example.

We tried to use the 2022.35320 version but it was the same.

Then we rebuilt the patch on the 2023.11510 version but this error started to pop up every 5 minutes.

It’s weird cause we don’t really have any GLSL-code, materials or renders in TD, pretty simple patch. In addition, we have the same QR-code component running as part of the other installation and there’s no any issues.

The Unreal .exe (previous version) was used successfully without TD and QR-code functionality before. But there were some changes to graphics/assets.

We have the same installation running on two PCs that are identical. Both have these crashes. On one PC we experience it more often but it’s still there.
Here are the specs of PCs:
PRO: i7 14 gen
Ram: 32gb
Gpu: NVIDIA GeForce RTX4070
OS: win10 64bit

What may be the problem? What options could we try to solve it?

Hey @Khabituev

Sorry you are encountering issues.

Did you make sure your GPU drivers are up to date ?

When the project is running, can you right click your task manager and see if the GPU memory usage is growing considerably? Especially when TouchDesigner is doing some work as you describe.

Best,
Michel

Hi @JetXS
Thank you for the quick reply.

The drivers are up to date, that’s for sure.

The GPU memory usage is steady (30-40%) but we’re going to try a software that can give the report for certain time span.

We have the answer from Derivative support and they suggest to use the latest TD build cause some Spout issues were fixed in that one. But the problem is that our QR-code system doesn’t work in this build without any obvious reason. The exact same component works on 2022.33910, 2022.35320 and 2023.11510 builds. So we figured that it’s probably some bug in the latest build.

For now we wanna try update Windows from 10 to 11 and use NDI instead of Spout.

Let me know if you have some ideas please.

Thank you.

Sorry I missed the update from Support emails.

That being said. If there is an issue between 2 builds on a specific component. It’d be nice for us to test and find out where the issue might be.

I’ll send you an email.

Best,
Michel

Hello. Just ran into this issue for the first time. This is a new laptop, I just updated my Nvidia drivers, and still getting this error. TD version 2023.12120. Did someone figure it out?

Hello,

As a first step, make sure that all your drivers, including integrated graphic drivers, are up to date and that your machine is free of bloatware.

Make sure that TouchDesigner is fully up to date to the latest stable build available.

The Bulk Crap Uninstaller helps in identifying unwanted or unneeded software: https://www.bcuninstaller.com/

Find the latest driver for your GPU at Official Drivers | NVIDIA
or use Nvidia Geforce Experience Update Drivers & Optimal Playable Settings

You can also make sure that your integrated GPU is running on the latest version available via Intel Driver Assistant.

You can use the AMD Adrenalin if you have an AMD Integrated GPU, in minimal install mode, via https://www.amd.com/en/products/software/adrenalin.html

:zap::zap::zap: If your machine comes with a proprietary power management software (From Asus, Dell / Alienware… etc), make sure that it’s setup properly to run TouchDesigner on the Nvidia / AMD DEDICATED GPU when plugged to power. Otherwise, it’s likely that TouchDesigner would run on the integrated graphics, hence it is important to also make sure your integrated graphics are up to date.

If the issue persists, try to generate a dump using Using WinDbg to Debug Crashes - Derivative

Hello. Thanks for your input. This solved it for me: SOLVED: [2021.38090 - Win11] Vulkan Initialization failed - #15 by jackdilaura