Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug GLSL link failed, no info log provided.

Discussion in 'General Graphics' started by Reboorn, Mar 26, 2024.

  1. Reboorn

    Reboorn

    Joined:
    Jun 21, 2017
    Posts:
    6
    Hi,Guys.
    GLSL link failed, no info log provided. In My MEIZU 15 Plus。
    Unity Version: 2021.3.33f1
    Here are the error stack traces.
    GLSL link failed, no info log provided.
    #0 0x737da6cc08 (libunity.so) GetStacktrace(int) 0x44
    #1 0x737e332a24 (libunity.so) DebugStringToFile(DebugStringToFileData const&) 0x240
    #2 0x737e186bf8 (libunity.so) ApiGLES::CheckProgram(unsigned int&, core::basic_string<char, core::StringStorageDefault<char> > const&) 0x1d8
    #3 0x737e18f928 (libunity.so) GlslGpuProgramGLES::CompileProgramImpl(unsigned int&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, ShaderChannelMask&, int, unsigned int, int*, int*) 0xce8
    #4 0x737e18e024 (libunity.so) GlslGpuProgramGLES::SwitchProgram(unsigned int) 0x4b8
    #5 0x737e1
     
  2. Reboorn

    Reboorn

    Joined:
    Jun 21, 2017
    Posts:
    6
    More detailed Debug stack trace.
    Code (CSharp):
    1. Autoconnected Player "Autoconnected Player" -------- Shader Hidden/Universal Render Pipeline/UberPost
    2. -------- GLSL link failed, no info log provided.
    3. #0 0x737e1adc08 (libunity.so) GetStacktrace(int) 0x44
    4. #1 0x737ea73a24 (libunity.so) DebugStringToFile(DebugStringToFileData const&) 0x240
    5. #2 0x737e8c7bf8 (libunity.so) ApiGLES::CheckProgram(unsigned int&, core::basic_string<char, core::StringStorageDefault<char> > const&) 0x1d8
    6. #3 0x737e8d0928 (libunity.so) GlslGpuProgramGLES::CompileProgramImpl(unsigned int&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, ShaderChannelMask&, int, unsigned int, int*, int*) 0xce8
    7. #4 0x737e8ce164 (libunity.so) GlslGpuProgramGLES::Create(dynamic_array<unsigned char, 0ul> const&, core::basic_string<char, core::StringStorageDefault<char> > const&, ShaderChannelMask&) 0x108c
    8. #5 0x737e8ccb1c (libunity.so) GlslGpuProgramGLES::GlslGpuProgramGLES(dynamic_array<unsigned char, 0ul> const&, CreateGpuProgramOutput&) 0x114
    9. #6 0x737e898060 (libunity.so) CreateGpuProgram(ShaderGpuProgramType, dynamic_array<unsigned char, 0ul> const&, CreateGpuProgramOutput&) 0x194
    10. #7 0x737e1925ec (libunity.so) GfxCreateGpuProgramQueue::DequeueAll(GfxThreadableDevice*) 0x5c
    11. #8 0x737eaa4080 (libunity.so) GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) 0x2fd8
    12. #9 0x737eaa93f8 (libunity.so) GfxDeviceWorker::RunExt(ThreadedStreamBuffer&) 0x54
    13. #10 0x737eaa9398 (libunity.so) GfxDeviceWorker::Run() 0x8c
    14. #11 0x737eaa0e90 (libunity.so) GfxDeviceWorker::RunGfxDeviceWorker(void*) 0x4
    15. #12 0x737dfac95c (libunity.so) Thread::RunThreadWrapper(void*) 0x31c
    16. #13 0x73aa4500e0 (libc.so) __pthread_start(void*) 0xc4
    17. #14 0x73aa405940 (libc.so) __start_thread 0x10
    18. Autoconnected Player "Autoconnected Player" Note: Creation of internal variant of shader 'Hidden/Universal Render Pipeline/UberPost' failed.
     
  3. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,040
    This means the GPU driver on the device you're running on doesn't provide any details into why it failed.
    The filed shader is the postprocessing one - try disabling postprocessing in the project.
     
  4. Reboorn

    Reboorn

    Joined:
    Jun 21, 2017
    Posts:
    6
    Thank you for your reply~
    After testing, I found that 'glsl link failed' would occur on random shaders. The log I captured this time is from postprocessing, but it could also happen on the shaders I wrote myself.
     
  5. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,040
    This is a message from the GPU driver. If it happens on random shaders, there may be a problem with the device you have.