Title: bug: Sentry debug ID injection causes OOM during module loading · Issue #2920 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: bug: Sentry debug ID injection causes OOM during module loading · Issue #2920 · triggerdotdev/trigger.dev
X Title: bug: Sentry debug ID injection causes OOM during module loading · Issue #2920 · triggerdotdev/trigger.dev
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 ...
Open Graph 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-sup...
X 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...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/2920
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Sentry debug ID injection causes OOM during module loading","articleBody":"### Provide environment information\n\nn/a\n\n### Describe the bug\n\nSentry's debug ID injection (`sentry-cli sourcemaps inject`) adds `new Error().stack` calls to every bundled `.mjs` file. \n\nTrigger.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.\n\nAffects large projects (e.g., ~2000+ bundled files) on smaller machines like `small-1x`.\n\n### Reproduction repo\n\nn/a\n\n### To reproduce\n\n1. Deploy a project with many bundled files to Trigger.dev\n2. Enable Sentry debug ID injection: `sentry-cli sourcemaps inject --ext mjs`\n3. Use `small-1x` machine (0.5GB RAM)\n4. Trigger any task\n5. Task fails with OOM before execution\n\nWorkaround: Skip `sourcemaps inject` step, rely on release-based sourcemap matching.\n\n### Additional information\n\nPotential fixes:\n- Lazy sourcemap parsing (only on actual errors)\n- Config option to disable `source-map-support`\n- Document limitation for Sentry users","author":{"url":"https://github.com/isshaddad","@type":"Person","name":"isshaddad"},"datePublished":"2026-01-20T23:45:08Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/2920"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:381c0f6f-0def-3435-cb24-bae90b6ce4cc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C736:2B2E62:8BEFAD:C85659:6AFAE230 |
| html-safe-nonce | 04e6048dbaf741b46f54bf88284a345bb2a707aa189a028baa8599f66c82faa5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzM2OjJCMkU2Mjo4QkVGQUQ6Qzg1NjU5OjZBRkFFMjMwIiwidmlzaXRvcl9pZCI6IjY5MjU3MDQ2NDU3MTI3MzI3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e66c2c66b87e8699f045872d6fbb6f00457459f89fc48e0e130c1eccf26fd92a |
| hovercard-subject-tag | issue:3835929494 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/2920/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0e0e62ce714bc9710432ff8e54dec73be26a6e5cb1ea05429a6b746f4fb3e78/triggerdotdev/trigger.dev/issues/2920 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0e0e62ce714bc9710432ff8e54dec73be26a6e5cb1ea05429a6b746f4fb3e78/triggerdotdev/trigger.dev/issues/2920 |
| og:image:alt | 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-sup... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | isshaddad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a7ae932999cc6d511008dbf980ff9efad2a31f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width