#Delay Render Call Failing Often On Font Load

3 messages · Page 1 of 1 (latest)

jaunty maple
#

I just increased the timeout to 60000 and I do think I am getting a higher success rate

jaunty maple
#

This one doesnt appear to have waited long enough.

Concurrency          8x
Rendering frames     ━━━━━━━━━━━━━━━╺━━ 2412/2837 1m 21s remaining
Downloaded assets    ━━━━━━━━━━━━━━━━━━   2 files
Encoding video       ━━━━━━━━━━━╸━━━━━━ 1857/2837
💡 Get help for this issue at https://remotion.dev/docs/timeout
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Encoding video       ━━━━━━━━━━━╸━━━━━━ 1860/2837
An error occurred while rendering frame 2413:
 Error  A delayRender() was called but not cleared after 58000ms. See https://remotion.dev/docs/timeout for help. 

It definitely still appears like its related to font loading based on the other errors. wondering why it timed out at 58 instead of 60

jaunty maple
#

I switched to manual font loading. It doesnt seem to make a difference. The list of files that failed is getting smaller but some of the longer videos are failing so close to the end.

undled code         ━━━━━━━━━━━━━━━━━━ 1149ms
Composition          Lost-Pixel-Lore
Codec                h264
Output               out/disneychannelwebsite_2003.mp4
Concurrency          8x
Rendering frames     ━━━━━━━━━━━━━━━━╺━ 2438/2703 50s remaining
Downloaded assets    ━━━━━━━━━━━━━━━━━━   3 files
Encoding video       ━━━━━━━━━━━━╺━━━━━ 1872/2703
💡 Get help for this issue at https://remotion.dev/docs/timeout
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Could not extract frame from compositor Error: Request closed
Encoding video       ━━━━━━━━━━━━╸━━━━━ 1881/2703
An error occurred while rendering frame 2442:
 Error  A delayRender() was called but not cleared after 58000ms. See https://remotion.dev/docs/timeout for help. 

at node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/remotion/dist/esm/index.mjs:1598
1596 │       DELAY_RENDER_CALLSTACK_TOKEN,
1597 │       called
1598 │     ].filter(truthy).join(" ");
1599 │     cancelRender(Error(message));
1600 │   }, timeoutToUse)
1601 │ };


🕧 The delayRender() call is located at:

at node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/remotion/dist/esm/index.mjs:1581
1579 │ const handle = Math.random();
1580 │ handles.push(handle);
1581 │ const called = Error().stack?.replace(/^Error/g, "") ?? "";
1582 │ if (getRemotionEnvironment().isRendering) {
1583 │   const timeoutToUse = (options?.timeoutInMilliseconds ?? (typeof window === "undefined" ? defaultTimeout : window.remotion_puppeteerTimeout ?? defaultTimeout)) - 2000;
1584 │   if (typeof window !== "undefined") {

at src/loadFonts.ts:28
26 │   }
27 │ 
28 │   const renderHandle = delayRender();
29 │ 
30 │   loadPromise = (async () => {
31 │     try {

at src/index.ts:8
 6 │ import { loadFont } from "./loadFonts";
 7 │ 
 8 │ loadFont();
 9 │ 
10 │ registerRoot(RemotionRoot);
11 │ 
at delayRender (node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/remotion/dist/esm/index.mjs:1581)

at src/loadFonts.ts:28
26 │   }
27 │ 
28 │   const renderHandle = delayRender();
29 │ 
30 │   loadPromise = (async () => {
31 │     try {

at src/index.ts:8
 6 │ import { loadFont } from "./loadFonts";
 7 │ 
 8 │ loadFont();
 9 │ 
10 │ registerRoot(RemotionRoot);
11 │ 
at (node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/remotion/dist/esm/index.mjs:1599)
WARNING: Remotion command failed with status 1 for:

Trying lowering concurrency from 8 to 3, since I believe this is a random ocurrance, lowering the threads should help. 🤞