question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Unhandled promise rejection error during shader compilation. Causing the game from failing to build/launch.

See original GitHub issue
MeasureIt: Cleaning data
Info: Saved "untitled.blend"

Armory v2021.5 ($Id: e4b950f78eb7c1ac9e65f2ad87920132e33cc61d $)
Exporting Scene
Scene exported in 10.466s
C:\Users\Oliver\Desktop\Armory test 3.0.0\build_untitled\debug\temp\Cloud_003_shadowmap.frag.hlsl(98,43-58): error X4000: variable 'dotNV' used without having been completely initialized

Compiling shader 4 of 27 (Cloud_003_shadowmap.frag.glsl) failed:
Shader compiler error.
(node:9632) UnhandledPromiseRejectionWarning: Shader compiler error.
(node:9632) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:9632) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Finished in 17.466s
ERROR: Build failed, check console

(This is my Blender console from when hitting F5)

Heres the blend file: untitled.zip https://u.teknik.io/59JyH.blend (Its the same file on both links)

You can find “Cloud.003” in the object shader editor.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MoritzBruecknercommented, May 10, 2021

I can confirm this issue, I will take a look later but I’m a bit busy right now. @QuantumCoderQC are you on Windows? The error comes from the generated .hlsl file so it probably doesn’t occur on other systems.

0reactions
QuantumCoderQCcommented, May 10, 2021

I can confirm this issue, I will take a look later but I’m a bit busy right now. @QuantumCoderQC are you on Windows? The error comes from the generated .hlsl file so it probably doesn’t occur on other systems.

Ah, I was using the one with the zip file. That file did not have this “Cloud_003” shader to it. Now I get the error when I try with the other Blend file provided. I am on Windows BTW.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shader compilation fails · Issue #8 · armory3d/voxel_world
Compilation of the shaders fails on this line: ... (node:14472) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error ...
Read more >
[MC-220887] Shader includes fail to compile correctly ... - Jira
The bug. Shader includes located in assets/minecraft/shaders/include/ will fail to compile correctly and cause core shaders that use them to ...
Read more >
Why don't games just compile all shaders during installation?
I know that shaders for console games come pre-compiled out of the box so shader compilation stuttering does not exist. However, for some...
Read more >
Runtime compilation error on shader code - Android
The compilation on MGFX goes great, but when the actual code runs I get ... InvalidOperationException: Shader Compilation Failed occurred.
Read more >
Loading and Compiling Shaders Fix - Apex Legends Tutorials
Apex Legends season 10 launched a few days ago and since then, every time I launch Apex Legends, the game loads and compiles...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found