Skip to main content

评估页面函数超时

错误信息“评估页面函数超时”

🌐 The error message "Timed out evaluating page function"

Error: Timed out evaluating page function (f, c) => {
  window.remotion_setFrame(f, c);
}

通常发生在 Remotion 渲染器试图向浏览器发送 JavaScript 命令时,但浏览器在超时内未响应(在 v4.0.73 之前:5 秒,从 v4.0.73--timeout 标志,默认 30 秒)。

🌐 generally happens if the Remotion renderer is trying to send a JavaScript command to the browser, but the browser does not respond to it within the timeout (before v4.0.73: 5 second, from v4.0.73: the --timeout flag, by default 30 seconds).

这意味着浏览器因 CPU 和内存过载而挂起。这并不意味着 delayRender() 没有被清除。

🌐 This means that the browser is hanging due to CPU and memory overload. It does not imply that a delayRender() was not cleared.

为了解决这个问题,可以考虑:

🌐 To resolve this, consider:

  • 降低渲染的 --concurrency
  • 测量渲染的内存和CPU使用情况并为其添加更多资源
  • 增加 --timeout 标志
  • 寻找加快你的 JavaScript 代码的方法

另请参阅

🌐 See also