🎥 Make videos programmatically with React
Merge pull request #2282 from remotion-dev/allow-error-handling-if-compositor-crashes
Jonny Burgerfca0e6c51097
diff --cc packages/renderer/src/compositor/compose.tsindex 70b43a91a8,b55abae777..b2ba48871f--- a/packages/renderer/src/compositor/compose.ts+++ b/packages/renderer/src/compositor/compose.ts@@@ -72,13 -72,8 +72,11 @@@ export const compose = async (export const callCompositor = (payload: string) => {return new Promise<void>((resolve, reject) => {const execPath = getExecutablePath('compositor');- chmodSync(execPath, 0o755);+ if (!process.env.READ_ONLY_FS) {+ chmodSync(execPath, 0o755);+ }+const child = spawn(execPath, [payload], dynamicLibraryPathOptions());- child.stdin.write(payload);- child.stdin.end();const stderrChunks: Buffer[] = [];child.stderr.on('data', (d) => stderrChunks.push(d));