{"record":{"id":"7ff009355bdc3dbf","repo":"remotion-dev/remotion","slug":"shader-compile-failed-log-no-log-7ff009","errorCode":null,"errorMessage":"Shader compile failed: ${log ?? '(no log)'}","messagePattern":"Shader compile failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/effects/src/corner-pin/corner-pin-runtime.ts","lineNumber":37,"sourceCode":"\t};\n};\n\nconst compileShader = (\n\tgl: WebGL2RenderingContext,\n\ttype: number,\n\tsource: string,\n): WebGLShader => {\n\tconst shader = gl.createShader(type);\n\tif (!shader) {\n\t\tthrow new Error('Failed to create WebGL shader');\n\t}\n\n\tgl.shaderSource(shader, source);\n\tgl.compileShader(shader);\n\tif (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {\n\t\tconst log = gl.getShaderInfoLog(shader);\n\t\tgl.deleteShader(shader);\n\t\tthrow new Error(`Shader compile failed: ${log ?? '(no log)'}`);\n\t}\n\n\treturn shader;\n};\n\nconst linkProgram = (\n\tgl: WebGL2RenderingContext,\n\tvs: WebGLShader,\n\tfs: WebGLShader,\n): WebGLProgram => {\n\tconst program = gl.createProgram();\n\tif (!program) {\n\t\tthrow new Error('Failed to create WebGL program');\n\t}\n\n\tgl.attachShader(program, vs);\n\tgl.attachShader(program, fs);\n\tgl.linkProgram(program);","sourceCodeStart":19,"sourceCodeEnd":55,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/corner-pin/corner-pin-runtime.ts#L19-L55","documentation":"Thrown by compileShader in corner-pin-runtime.ts when gl.getShaderParameter(shader, gl.COMPILE_STATUS) is false. The CORNER_PIN_VS or CORNER_PIN_FS GLSL source failed to compile, with the info log included. Since the shader source is a library constant, this is a GPU/driver compatibility issue, not a user parameter problem.","triggerScenarios":"During setupCornerPin, the vertex or fragment shader fails GLSL compilation. Internal to the corner-pin WebGL pipeline — not triggered by corner pin coordinate values.","commonSituations":"GPU/driver lacks full GLSL ES 3.00 support despite advertising WebGL2; outdated mobile GPU drivers; browser shader-translation bug; virtual GPU with incomplete GLSL support in CI/headless rendering.","solutions":["Update GPU drivers to the latest version.","Test on a different GPU/browser to isolate driver-specific issues.","For headless rendering, use Chrome with full WebGL2/SwiftShader support.","Report the info log and GPU details to Remotion if it reproduces on modern hardware."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  cornerPin({...})(source, target);\n} catch (e) {\n  if (e instanceof Error && e.message.startsWith('Shader compile failed')) {\n    // driver/GPU compatibility issue — capture info log from message\n  }\n  throw e;\n}","preventionTips":["Keep GPU drivers updated.","Test on multiple GPUs/browsers to isolate driver issues.","Use Chrome with full WebGL2/SwiftShader for headless rendering.","Capture the info log from the error message when reporting."],"tags":["webgl","effects","corner-pin","shader","gpu","driver"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}