Title: SvelteKit: heap limit allocation failed after uploading source maps · Issue #8805 · getsentry/sentry-javascript · GitHub
Open Graph Title: SvelteKit: heap limit allocation failed after uploading source maps · Issue #8805 · getsentry/sentry-javascript
X Title: SvelteKit: heap limit allocation failed after uploading source maps · Issue #8805 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8805
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SvelteKit: heap limit allocation failed after uploading source maps","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which SDK are you using?\r\n\r\n@sentry/sveltekit\r\n\r\n### SDK Version\r\n\r\n7.63.0\r\n\r\n### Framework Version\r\n\r\n1.5.0\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n```typescript\r\nif (import.meta.env.PROD) {\r\n\tSentry.init({\r\n\t\tdsn : \"https://example.dsn\",\r\n\t\ttracesSampleRate: 1.0,\r\n\r\n\t\t// This sets the sample rate to be 10%. You may want this to be 100% while\r\n\t\t// in development and sample at a lower rate in production\r\n\t\treplaysSessionSampleRate: 0.1,\r\n\r\n\t\t// If the entire session is not sampled, use the below sample rate to sample\r\n\t\t// sessions when an error occurs.\r\n\t\treplaysOnErrorSampleRate: 1.0,\r\n\r\n\t\t// If you don't want to use Session Replay, just remove the line below:\r\n\t\tintegrations: [new Replay()],\r\n\r\n\t\tenvironment: \"production\",\r\n\t\trelease: version\r\n\t})\r\n}\r\n\r\n// If you have a custom error handler, pass it to `handleErrorWithSentry`\r\nexport const handleError = import.meta.env.PROD ? handleErrorWithSentry() : null\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create SvelteKit app with `adapter-static`\r\n2. Install Sentry using `npx @sentry/wizard@latest -i sveltekit`\r\n3. Run `vite build`\r\n4. Build success\r\n5. Source maps upload success\r\n\r\n### Expected Result\r\n\r\nThe process finish normally, without any error.\r\n\r\n### Actual Result\r\n\r\n```\r\n...\r\n[sentry-vite-plugin] Info: Successfully uploaded source maps.\r\n[sentry-vite-plugin] Info: Successfully finalized release.\r\n\r\n\u003c--- Last few GCs --->\r\n\r\n[12017:0x120040000] 22163 ms: Mark-sweep (reduce) 4066.9 (4142.7) -> 4063.2 (4140.2) MB, 1464.2 / 0.0 ms (average mu = 0.128, current mu = 0.013) allocation failure; scavenge might not succeed\r\n[12017:0x120040000] 23650 ms: Mark-sweep (reduce) 4066.3 (4143.2) -> 4063.2 (4140.2) MB, 1483.2 / 0.0 ms (average mu = 0.065, current mu = 0.003) allocation failure; scavenge might not succeed\r\n\r\n\r\n\u003c--- JS stacktrace --->\r\n\r\nFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory\r\n 1: 0x1041e26e4 node::Abort() [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n 2: 0x1041e28c8 node::ModifyCodeGenerationFromStrings(v8::Local\u003cv8::Context>, v8::Local\u003cv8::Value>, bool) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n 3: 0x10433960c v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n 4: 0x1044e3ec4 v8::internal::EmbedderStackStateScope::EmbedderStackStateScope(v8::internal::Heap*, v8::internal::EmbedderStackStateScope::Origin, cppgc::EmbedderStackState) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n 5: 0x1044e7ab0 v8::internal::Heap::CollectSharedGarbage(v8::internal::GarbageCollectionReason) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n 6: 0x1044e4ac4 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*, v8::GCCallbackFlags) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n 7: 0x1044e1dc4 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n 8: 0x1044d6900 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n 9: 0x1044d7144 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n10: 0x1044bc9a0 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n11: 0x1044b64f4 v8::internal::MaybeHandle\u003cv8::internal::SeqOneByteString> v8::internal::FactoryBase\u003cv8::internal::Factory>::NewRawStringWithMap\u003cv8::internal::SeqOneByteString>(int, v8::internal::Map, v8::internal::AllocationType) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n12: 0x1045e17d4 v8::internal::JsonParser\u003cunsigned short>::MakeString(v8::internal::JsonString const&, v8::internal::Handle\u003cv8::internal::String>) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n13: 0x1045dffd4 v8::internal::JsonParser\u003cunsigned short>::ParseJsonValue() [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n14: 0x1045df548 v8::internal::JsonParser\u003cunsigned short>::Parse(v8::internal::Isolate*, v8::internal::Handle\u003cv8::internal::String>, v8::internal::Handle\u003cv8::internal::Object>) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n15: 0x1043c7de8 v8::internal::Builtin_JsonParse(int, unsigned long*, v8::internal::Isolate*) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n16: 0x104bad18c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n17: 0x10aa254f0 \r\n18: 0x10aa2467c \r\n19: 0x104bf8738 Builtins_PromiseFulfillReactionJob [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n20: 0x104b5bc4c Builtins_RunMicrotasks [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n21: 0x104b363a4 Builtins_JSRunMicrotasksEntry [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n22: 0x104465d10 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n23: 0x104466200 v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n24: 0x1044663dc v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate*, v8::internal::MicrotaskQueue*, v8::internal::MaybeHandle\u003cv8::internal::Object>*) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n25: 0x10448cb44 v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n26: 0x10448d2e0 v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate*) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n27: 0x104128c4c node::InternalCallbackScope::Close() [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n28: 0x104128fd0 node::InternalMakeCallback(node::Environment*, v8::Local\u003cv8::Object>, v8::Local\u003cv8::Object>, v8::Local\u003cv8::Function>, int, v8::Local\u003cv8::Value>*, node::async_context) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n29: 0x10413e36c node::AsyncWrap::MakeCallback(v8::Local\u003cv8::Function>, int, v8::Local\u003cv8::Value>*) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n30: 0x1041e789c node::fs::FSReqCallback::Resolve(v8::Local\u003cv8::Value>) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n31: 0x1041e7fa8 node::fs::AfterNoArgs(uv_fs_s*) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n32: 0x1041de654 node::MakeLibuvRequestCallback\u003cuv_fs_s, void (*)(uv_fs_s*)>::Wrapper(uv_fs_s*) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n33: 0x104b1219c uv__work_done [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n34: 0x104b15958 uv__async_io [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n35: 0x104b27f0c uv__io_poll [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n36: 0x104b15e28 uv_run [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n37: 0x1041296e0 node::SpinEventLoop(node::Environment*) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n38: 0x10421f2d4 node::NodeMainInstance::Run() [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n39: 0x1041af338 node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n40: 0x1041af5f0 node::Start(int, char**) [/Users/risal/.nvm/versions/node/v18.17.0/bin/node]\r\n41: 0x19e45bf28 start [/usr/lib/dyld]\r\n[1] 12003 abort npm run build\r\n```","author":{"url":"https://github.com/risalfajar","@type":"Person","name":"risalfajar"},"datePublished":"2023-08-13T04:15:21Z","url":"https://github.com/getsentry/sentry-javascript/issues/8805"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:9841ffba-97f2-be7b-7e50-4466066bee7b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF04:39E694:5F2667:861BA9:6B0449E3 |
| html-safe-nonce | 02a01011673ef20c7dead7b0a99b4b1ea80b3f01c7c731ddb1d3d0b3eedafc3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjA0OjM5RTY5NDo1RjI2Njc6ODYxQkE5OjZCMDQ0OUUzIiwidmlzaXRvcl9pZCI6IjkyMDg1NzkyNzM2MzQ2MzAxMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ce4076ecb3cdd330c3b8cabf898570b82e620bf3cd772fe94c912da350337788 |
| hovercard-subject-tag | issue:1848397738 |
| 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/getsentry/sentry-javascript/8805/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca7ba7a6d47015a758349e24dedac0d844016f93f6d77041d83495d501fe2d4c/getsentry/sentry-javascript/issues/8805 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca7ba7a6d47015a758349e24dedac0d844016f93f6d77041d83495d501fe2d4c/getsentry/sentry-javascript/issues/8805 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | risalfajar |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| 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 | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width