You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sentry's debug ID injection (sentry-cli sourcemaps inject) adds new Error().stack calls to every bundled .mjs file.
Trigger.dev's source-map-support library parses sourcemaps on every .stack access. This causes all sourcemaps to be parsed during module loading, leading to OOM before any task code runs.
Affects large projects (e.g., ~2000+ bundled files) on smaller machines like small-1x.
Reproduction repo
n/a
To reproduce
Deploy a project with many bundled files to Trigger.dev
Enable Sentry debug ID injection: sentry-cli sourcemaps inject --ext mjs
Use small-1x machine (0.5GB RAM)
Trigger any task
Task fails with OOM before execution
Workaround: Skip sourcemaps inject step, rely on release-based sourcemap matching.
Provide environment information
n/a
Describe the bug
Sentry's debug ID injection (
sentry-cli sourcemaps inject) addsnew Error().stackcalls to every bundled.mjsfile.Trigger.dev's
source-map-supportlibrary parses sourcemaps on every.stackaccess. This causes all sourcemaps to be parsed during module loading, leading to OOM before any task code runs.Affects large projects (e.g., ~2000+ bundled files) on smaller machines like
small-1x.Reproduction repo
n/a
To reproduce
sentry-cli sourcemaps inject --ext mjssmall-1xmachine (0.5GB RAM)Workaround: Skip
sourcemaps injectstep, rely on release-based sourcemap matching.Additional information
Potential fixes:
source-map-support