Skip to content

Conversation

@abernier
Copy link

@abernier abernier commented Jun 23, 2025

repro:

$ docker build --platform=linux/amd64 -t three-template-renderer .
$ npm run bundle
$ docker run --platform=linux/amd64 --rm \
    -v "$PWD/build":/bundle \
    -v "$PWD/tmp":/output \
    three-template-renderer \
      --bundle /bundle \
      --range "0-100" \
      --props '{}' \
      --out "/output/chunk-0-100.ts"
      
> [email protected] render-chunk
> tsx src/render-chunk.mts --bundle /bundle --range 0-100 --props {} --out /output/chunk-0-100.ts

[worker] chunk (0-100) {
  serveUrl: '/bundle',
  start: 0,
  end: 100,
  inputProps: {},
  outputLocation: '/output/chunk-0-100.ts',
  preferLossless: false
}
node:internal/modules/run_main:123
    triggerUncaughtException(
    ^

SymbolicateableError: defaultProps too big - could not serialize - the defaultProps of composition with ID Scene - the object that was passed to defaultProps was too big. Learn how to mitigate this error by visiting https://remotion.dev/docs/troubleshooting/serialize-defaultprops
    at getUnevaluatedComps (http://localhost:3000/bundle.js:100915:17)
    at window.remotion_calculateComposition (http://localhost:3000/bundle.js:100965:26)
    at __puppeteer_evaluation_script__:2:21 {
  stackFrame: [
    {
      columnNumber: 17,
      fileName: 'http://localhost:3000/bundle.js',
      functionName: 'getUnevaluatedComps',
      lineNumber: 100915
    },
    {
      columnNumber: 26,
      fileName: 'http://localhost:3000/bundle.js',
      functionName: 'window.remotion_calculateComposition',
      lineNumber: 100965
    },
    {
      columnNumber: 21,
      fileName: '__puppeteer_evaluation_script__',
      functionName: null,
      lineNumber: 2
    }
  ],
  delayRenderCall: null,
  frame: null,
  chunk: null
}

Node.js v22.16.0

@vercel
Copy link

vercel bot commented Jun 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
template-three ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 6:46pm

@abernier abernier changed the title minimal repro Dockerfile Jun 23, 2025
@abernier abernier marked this pull request as draft June 23, 2025 18:50
@abernier abernier changed the title Dockerfile repro Dockerfile -- "defaultProps too big - could not serialize" Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant