{"record":{"id":"aa31b45064b99b4e","repo":"remotion-dev/remotion","slug":"glow-shader-compile-failed-log-no-log","errorCode":null,"errorMessage":"Glow shader compile failed: ${log ?? '(no log)'}","messagePattern":"Glow shader compile failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/glow/glow-runtime.ts","lineNumber":65,"sourceCode":"\tcachedColorRgba: ParsedColorRgba;\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(`Glow 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":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/glow/glow-runtime.ts#L47-L83","documentation":"Thrown when a glow GLSL shader (GLOW_EXTRACT_FS, GLOW_BLUR_FS_HORIZONTAL/VERTICAL, or GLOW_COMPOSITE_FS) fails to compile; the GPU info log is appended. Indicates a defect in the bundled glow shader sources or a GLSL feature the device rejects.","triggerScenarios":"Editing GLOW_*_FS and introducing a syntax/type error; device whose GLSL ES 300 support is incomplete; shader string truncated.","commonSituations":"Local development of the glow shader; older mobile/embedded GPU with partial GLSL support.","solutions":["Read the appended info log for the failing GLSL line.","Restore shader sources from a clean checkout if modified.","Report with log and GPU info if reproducing on a released version."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  effect = glow(params);\n} catch (err) {\n  if (/shader compile failed/i.test(String(err))) {\n    console.error('Glow shader compile failure; info log:', String(err));\n  }\n  throw err;\n}","preventionTips":["When editing glow shaders, validate GLSL ES 300 syntax in Remotion Studio first.","Forward the GPU info log when reporting issues.","Pin a known-good Remotion version if you suspect a regression."],"tags":["webgl","glow","shader","compile","glsl"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}