-
-
Notifications
You must be signed in to change notification settings - Fork 970
Open
Description
Provide environment information
n/a
Describe the bug
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-1xmachine (0.5GB RAM) - Trigger any task
- Task fails with OOM before execution
Workaround: Skip sourcemaps inject step, rely on release-based sourcemap matching.
Additional information
Potential fixes:
- Lazy sourcemap parsing (only on actual errors)
- Config option to disable
source-map-support - Document limitation for Sentry users
Metadata
Metadata
Assignees
Labels
No labels