{"record":{"id":"6fb87754bbb3af91","repo":"remotion-dev/remotion","slug":"waves-shader-compile-failed-log-no-log","errorCode":null,"errorMessage":"Waves shader compile failed: ${log ?? '(no log)'}","messagePattern":"Waves shader compile failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"critical","filePath":"packages/effects/src/waves.ts","lineNumber":375,"sourceCode":"}\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(`Waves 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":357,"sourceCodeEnd":393,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/effects/src/waves.ts#L357-L393","documentation":"Thrown by compileShader() inside the waves effect when gl.getShaderParameter(shader, gl.COMPILE_STATUS) returns false. This means the GLSL ES 3.00 shader source failed to compile on the current GPU driver. The error includes the GL driver's info log for diagnostics. Since WAVES_VS and WAVES_FS are static library constants, this is a driver/GPU compatibility issue, not a user param issue.","triggerScenarios":"Called transitively from setupWaves() at packages/effects/src/waves.ts:446. Fires when the GPU driver rejects valid GLSL ES 3.00 — e.g., the driver doesn't fully support WebGL2/GLSL 3.00, or has a bug with a specific built-in function or precision qualifier used in WAVES_FS. Most common with older or buggy GPU drivers, or software rasterizers with partial support.","commonSituations":"Headless Chrome with SwiftShader in CI rejecting a GLSL construct; outdated mobile GPU drivers; virtual machines with passthrough rendering bugs; older integrated GPUs (Intel HD) with known GLSL compiler issues; a browser version that downgraded its WebGL2 backend.","solutions":["Update GPU drivers to the latest version — shader compile failures on valid source are driver bugs.","For headless/server rendering (Remotion Lambda, CI), ensure the Chrome build is current and supports the GLSL constructs used.","Check chrome://gpu (or equivalent) for WebGL2 support status and any driver denylisted features.","Try a different GPU or toggle hardware acceleration to switch between driver and SwiftShader paths.","Report the issue with the full info log from the error message."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  const state = setupWaves(canvas);\n} catch (e) {\n  if ((e as Error).message.startsWith('Waves shader compile failed')) {\n    console.warn('GPU driver rejected waves shader:', (e as Error).message);\n    // fall back to a non-WebGL effect\n  }\n}","preventionTips":["Keep GPU drivers and the rendering browser current.","Test WebGL2 effects in the target render environment.","Use @remotion/renderer's bundled Chrome for server-side rendering."],"tags":["webgl","gpu","shader","glsl","waves-effect","driver"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}