Improve "GLSL link error" error

In Cloud Diagnostics I’m able to see that some of our players have GLSL link errors, such as this one:

-------- GLSL link error:  The number of vertex shader storage blocks (1) is greater than the maximum number allowed (0).

Unfortunately, this message doesn’t specify what shader is causing the error. Please add the shader name to the error message.

It should say something like Note: Creation of internal variant of shader '<Shader name>' failed. on the line right after that

Thank you for the reply.

I just checked in Cloud Diagnostics, there is no additional output, only the
GLSL link error.
Cloud Diagnotics Log 7798158--985164--upload_2022-1-11_9-8-10.png

  • The build is not using the “Development Build” flag, perhaps that’s why the 2nd output is missing?
  • We’re using Unity 2019.4.20f1, perhaps the 2nd line has been added in newer versions only?

@Peter77 do you have access to the raw log there? It should only be there.

Thank you for your answer.

The “Log” in Cloud Diagnostics (see screenshot from previous post) is what went through Debug.Log/Error/Warning as far as I know. Cloud Diagnostics doesn’t provide a “raw” Log as text for download or so, it only contains the view as shown in the screenshot.

PS: It still would be useful when the shader name is included in the first error message.

OK, just as I thought :slight_smile:
We do print the name of the shader in the raw log. I’ll change it to be part of the output to the Console then.

Awesome, thank you! Would be useful if it can be back-ported to LTS too.

Sure :slight_smile: