Closed harshmandan closed 1 year ago
Hi @harshmandan thanks for writing in!
This is a strange one, I haven't seen yet 😅
Would you mind telling us how many source maps are generated? Are there any maps that get particularly large?
I'm just wondering what might be the cause here, given that we have customers who have really large files where uploading still works. @lforst are you aware of any out of heap memory reports when uploading source maps?
I'm also wondering if this has something to do with pre-processing (e.g. calling sorcery
) before we actually call the Sentry Vite plugin to start the upload. Moreover, all of this happens before uploading finishes, so why would it crash afterwards 🤔
Here's a list of the map files:
harsh@MBP14 chunks % ls -al *.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 67.1a53c2c7.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 68.1a53c2c7.js.map
-rw-r--r-- 1 harsh staff 4127 May 31 18:36 Avatar.aed4d6de.js.map
-rw-r--r-- 1 harsh staff 10870 May 31 18:36 Breadcrumb.3c88895d.js.map
-rw-r--r-- 1 harsh staff 5383 May 31 18:36 Button.fd45df6d.js.map
-rw-r--r-- 1 harsh staff 5022 May 31 18:36 ButtonGroupItem.f83ba1be.js.map
-rw-r--r-- 1 harsh staff 2472 May 31 18:36 ConfirmationDialog.7bfd2668.js.map
-rw-r--r-- 1 harsh staff 3548 May 31 18:36 DeleteTeamDialog.55ae2dcf.js.map
-rw-r--r-- 1 harsh staff 4885 May 31 18:36 Dialog.0f5bb77b.js.map
-rw-r--r-- 1 harsh staff 9691 May 31 18:36 Dropdown.aa2ba4c8.js.map
-rw-r--r-- 1 harsh staff 3444 May 31 18:36 ExportManager.f9ae4be1.js.map
-rw-r--r-- 1 harsh staff 2859 May 31 18:36 GhostButton.66a5f27e.js.map
-rw-r--r-- 1 harsh staff 93435 May 31 18:36 Icon.d753c762.js.map
-rw-r--r-- 1 harsh staff 3574 May 31 18:36 IconButton.8c8a3fd4.js.map
-rw-r--r-- 1 harsh staff 2691 May 31 18:36 InlineTextInput.963e17b9.js.map
-rw-r--r-- 1 harsh staff 9011 May 31 18:36 Input.d7c0f6a1.js.map
-rw-r--r-- 1 harsh staff 7680 May 31 18:36 MemberInvite.83874d59.js.map
-rw-r--r-- 1 harsh staff 1233 May 31 18:36 MenuGroup.0fac01d5.js.map
-rw-r--r-- 1 harsh staff 5458 May 31 18:36 MenuItem.93075e4d.js.map
-rw-r--r-- 1 harsh staff 5577 May 31 18:36 MoreButton.8b1947bb.js.map
-rw-r--r-- 1 harsh staff 5457 May 31 18:36 Notification.e482b970.js.map
-rw-r--r-- 1 harsh staff 1501 May 31 18:36 Pill.206b5f2f.js.map
-rw-r--r-- 1 harsh staff 7834 May 31 18:36 Popover.d37dd50d.js.map
-rw-r--r-- 1 harsh staff 7955 May 31 18:36 PopoverFixed.28b5786a.js.map
-rw-r--r-- 1 harsh staff 3398 May 31 18:36 Selection.ca38ec5f.js.map
-rw-r--r-- 1 harsh staff 41795 May 31 18:36 SentimentDonut.8ec7eba8.js.map
-rw-r--r-- 1 harsh staff 30885 May 31 18:36 SentimentOutputCard.3f7c63ae.js.map
-rw-r--r-- 1 harsh staff 7578 May 31 18:36 SidebarLayout.9f1827fd.js.map
-rw-r--r-- 1 harsh staff 1000 May 31 18:36 SidebarSectionHeader.5fa5551a.js.map
-rw-r--r-- 1 harsh staff 429752 May 31 18:36 SmallSlider.45859e69.js.map
-rw-r--r-- 1 harsh staff 7843 May 31 18:36 Snackbar.59101f43.js.map
-rw-r--r-- 1 harsh staff 6484 May 31 18:36 StartLayout.1c0a1ba3.js.map
-rw-r--r-- 1 harsh staff 2003 May 31 18:36 Switch.c9b3c671.js.map
-rw-r--r-- 1 harsh staff 7297 May 31 18:36 TabBar.24085426.js.map
-rw-r--r-- 1 harsh staff 30607 May 31 18:36 Tooltip.592a42e1.js.map
-rw-r--r-- 1 harsh staff 1873 May 31 18:36 TopPanelLayout.1c17bb5f.js.map
-rw-r--r-- 1 harsh staff 9968 May 31 18:36 TopPanelTitle.e136635b.js.map
-rw-r--r-- 1 harsh staff 13435 May 31 18:36 Video.50c44759.js.map
-rw-r--r-- 1 harsh staff 22390 May 31 18:36 WorkspaceItems.6580f22c.js.map
-rw-r--r-- 1 harsh staff 102309 May 31 18:36 WorkspaceSnackbar.9edf4ae8.js.map
-rw-r--r-- 1 harsh staff 2597 May 31 18:36 _curry2.6f920f03.js.map
-rw-r--r-- 1 harsh staff 9047 May 31 18:36 apiClient.88cc86de.js.map
-rw-r--r-- 1 harsh staff 984 May 31 18:36 appContext.1d74006a.js.map
-rw-r--r-- 1 harsh staff 7788 May 31 18:36 appRoute.4de8639e.js.map
-rw-r--r-- 1 harsh staff 2243739 May 31 18:36 auth.cb10f306.js.map
-rw-r--r-- 1 harsh staff 11987 May 31 18:36 auth.utils.57a98194.js.map
-rw-r--r-- 1 harsh staff 673 May 31 18:36 cacheAPI.f847fbdd.js.map
-rw-r--r-- 1 harsh staff 2390 May 31 18:36 control.e7f5239e.js.map
-rw-r--r-- 1 harsh staff 1811 May 31 18:36 createEventsAction.0ba7db95.js.map
-rw-r--r-- 1 harsh staff 158216 May 31 18:36 db.recruitments.14b059b8.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 de.8bb809e8.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 en.69610f52.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 es.b2199ebb.js.map
-rw-r--r-- 1 harsh staff 4603 May 31 18:36 folder.726f7cff.js.map
-rw-r--r-- 1 harsh staff 1169 May 31 18:36 folderContext.cc240aa4.js.map
-rw-r--r-- 1 harsh staff 444 May 31 18:36 formatNumber.0fd13cdd.js.map
-rw-r--r-- 1 harsh staff 3023 May 31 18:36 formatTime.48405802.js.map
-rw-r--r-- 1 harsh staff 70359 May 31 18:36 fuzzySearch.8d7ac3e5.js.map
-rw-r--r-- 1 harsh staff 532 May 31 18:36 getDeviceInUse.87f5fdf8.js.map
-rw-r--r-- 1 harsh staff 382 May 31 18:36 getFilterType.8007b96e.js.map
-rw-r--r-- 1 harsh staff 933 May 31 18:36 getUrlWithParams.2a05fcde.js.map
-rw-r--r-- 1 harsh staff 3845 May 31 18:36 imgproxy.2d17cf57.js.map
-rw-r--r-- 1 harsh staff 5901 May 31 18:36 index.1ec31adb.js.map
-rw-r--r-- 1 harsh staff 716 May 31 18:36 index.7b6ab2a0.js.map
-rw-r--r-- 1 harsh staff 9363 May 31 18:36 index.9243b063.js.map
-rw-r--r-- 1 harsh staff 120575 May 31 18:36 index.9b2b17cc.js.map
-rw-r--r-- 1 harsh staff 3403 May 31 18:36 index.af06245d.js.map
-rw-r--r-- 1 harsh staff 2685 May 31 18:36 index.b1f5b21f.js.map
-rw-r--r-- 1 harsh staff 15286 May 31 18:36 index.b3384b81.js.map
-rw-r--r-- 1 harsh staff 5221 May 31 18:36 index.bc666b89.js.map
-rw-r--r-- 1 harsh staff 7173 May 31 18:36 index.c017a08f.js.map
-rw-r--r-- 1 harsh staff 9060 May 31 18:36 index.c61c8d00.js.map
-rw-r--r-- 1 harsh staff 1040 May 31 18:36 index.cf58f407.js.map
-rw-r--r-- 1 harsh staff 102 May 31 18:36 index.esm.d77c27df.js.map
-rw-r--r-- 1 harsh staff 502 May 31 18:36 isEmail.f8c89e7a.js.map
-rw-r--r-- 1 harsh staff 389 May 31 18:36 isurl.1eff4659.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 it.30b3e46c.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 ja.87b8e03f.js.map
-rw-r--r-- 1 harsh staff 1524 May 31 18:36 jiggle.5213a836.js.map
-rw-r--r-- 1 harsh staff 16338 May 31 18:36 load.37fb5bdc.js.map
-rw-r--r-- 1 harsh staff 33764 May 31 18:36 locationDrop.b66d6146.js.map
-rw-r--r-- 1 harsh staff 5018 May 31 18:36 longPressAction.0b231f5d.js.map
-rw-r--r-- 1 harsh staff 3105 May 31 18:36 mediaQuery.c2fc8101.js.map
-rw-r--r-- 1 harsh staff 1107 May 31 18:36 navigation.a55b4d42.js.map
-rw-r--r-- 1 harsh staff 1507 May 31 18:36 omit.eb27468d.js.map
-rw-r--r-- 1 harsh staff 2146 May 31 18:36 onboardingContext.b1b67935.js.map
-rw-r--r-- 1 harsh staff 3074 May 31 18:36 pasteAsPlainText.1b7f1f5c.js.map
-rw-r--r-- 1 harsh staff 98 May 31 18:36 paths.6d9a1ec2.js.map
-rw-r--r-- 1 harsh staff 656 May 31 18:36 pluralize.84ab5b03.js.map
-rw-r--r-- 1 harsh staff 2235 May 31 18:36 populateTriggers.60c8ec78.js.map
-rw-r--r-- 1 harsh staff 107 May 31 18:36 preload-helper.41c905a7.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 pt.49c8353c.js.map
-rw-r--r-- 1 harsh staff 9574 May 31 18:36 reactions.utils.3291afd0.js.map
-rw-r--r-- 1 harsh staff 939 May 31 18:36 recruitmentContext.635cc8d8.js.map
-rw-r--r-- 1 harsh staff 359 May 31 18:36 rejectPromise.8b38d986.js.map
-rw-r--r-- 1 harsh staff 190405 May 31 18:36 request.a6dc9d9f.js.map
-rw-r--r-- 1 harsh staff 195178 May 31 18:36 runtime.esm.cc39792d.js.map
-rw-r--r-- 1 harsh staff 92907 May 31 18:36 sentiments.2f57ead3.js.map
-rw-r--r-- 1 harsh staff 122 May 31 18:36 sentry-release-injection-file.9fae5fcf.js.map
-rw-r--r-- 1 harsh staff 1472 May 31 18:36 setupContext.03956f9e.js.map
-rw-r--r-- 1 harsh staff 12990 May 31 18:36 singletons.0268aeca.js.map
-rw-r--r-- 1 harsh staff 219104 May 31 18:36 storagePaths.e1c63712.js.map
-rw-r--r-- 1 harsh staff 2689 May 31 18:36 stores.b8fc950a.js.map
-rw-r--r-- 1 harsh staff 17427 May 31 18:36 symbols.9bdfdc38.js.map
-rw-r--r-- 1 harsh staff 1284 May 31 18:36 teamContext.61e9184c.js.map
-rw-r--r-- 1 harsh staff 13064 May 31 18:36 theme.store.1b212cff.js.map
-rw-r--r-- 1 harsh staff 1670 May 31 18:36 timer.27171f6f.js.map
-rw-r--r-- 1 harsh staff 17980 May 31 18:36 tslib.es6.17d7f01e.js.map
-rw-r--r-- 1 harsh staff 2267 May 31 18:36 userContext.b9e28fcc.js.map
-rw-r--r-- 1 harsh staff 2304 May 31 18:36 uuid.3df3fe38.js.map
-rw-r--r-- 1 harsh staff 9817 May 31 18:36 values.b39a5b04.js.map
-rw-r--r-- 1 harsh staff 10211 May 31 18:36 videoContext.b378fdc5.js.map
-rw-r--r-- 1 harsh staff 1025 May 31 18:36 viewerAppBaseURL.4b6fa35b.js.map
-rw-r--r-- 1 harsh staff 365 May 31 18:36 wait.53ac4caf.js.map
-rw-r--r-- 1 harsh staff 5802 May 31 18:36 workspaceContext.0ceca196.js.map
-rw-r--r-- 1 harsh staff 8101 May 31 18:36 0.7271bf8f.js.map
-rw-r--r-- 1 harsh staff 612 May 31 18:36 1.8d314e04.js.map
-rw-r--r-- 1 harsh staff 18877 May 31 18:36 10.2b70e83e.js.map
-rw-r--r-- 1 harsh staff 398675 May 31 18:36 11.41d4f0c9.js.map
-rw-r--r-- 1 harsh staff 352275 May 31 18:36 12.f3bd6227.js.map
-rw-r--r-- 1 harsh staff 17500 May 31 18:36 13.5fe00a35.js.map
-rw-r--r-- 1 harsh staff 2971 May 31 18:36 14.b3526562.js.map
-rw-r--r-- 1 harsh staff 2471 May 31 18:36 15.57131d69.js.map
-rw-r--r-- 1 harsh staff 7963 May 31 18:36 16.45663c9f.js.map
-rw-r--r-- 1 harsh staff 1414 May 31 18:36 17.29d96f8a.js.map
-rw-r--r-- 1 harsh staff 4388 May 31 18:36 18.2717469d.js.map
-rw-r--r-- 1 harsh staff 3508 May 31 18:36 19.9a516fc9.js.map
-rw-r--r-- 1 harsh staff 7649 May 31 18:36 2.8623c46b.js.map
-rw-r--r-- 1 harsh staff 584 May 31 18:36 20.70502e84.js.map
-rw-r--r-- 1 harsh staff 1794 May 31 18:36 21.a71366a1.js.map
-rw-r--r-- 1 harsh staff 629 May 31 18:36 22.8d314e04.js.map
-rw-r--r-- 1 harsh staff 2092 May 31 18:36 23.9695701f.js.map
-rw-r--r-- 1 harsh staff 1686 May 31 18:36 24.4fb90653.js.map
-rw-r--r-- 1 harsh staff 2445 May 31 18:36 25.7d675bf5.js.map
-rw-r--r-- 1 harsh staff 15062 May 31 18:36 26.58c65a64.js.map
-rw-r--r-- 1 harsh staff 4905 May 31 18:36 27.86172a41.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 28.49107eca.js.map
-rw-r--r-- 1 harsh staff 1535 May 31 18:36 29.02bed82f.js.map
-rw-r--r-- 1 harsh staff 1258 May 31 18:36 3.0a90159d.js.map
-rw-r--r-- 1 harsh staff 554 May 31 18:36 30.7f71e31a.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 31.49107eca.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 32.49107eca.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 33.49107eca.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 34.49107eca.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 35.49107eca.js.map
-rw-r--r-- 1 harsh staff 46754 May 31 18:36 36.ab33dd99.js.map
-rw-r--r-- 1 harsh staff 76549 May 31 18:36 37.5dad9efd.js.map
-rw-r--r-- 1 harsh staff 13928 May 31 18:36 38.8396eb03.js.map
-rw-r--r-- 1 harsh staff 12841 May 31 18:36 39.b651a605.js.map
-rw-r--r-- 1 harsh staff 47113 May 31 18:36 4.78e54eb8.js.map
-rw-r--r-- 1 harsh staff 10487 May 31 18:36 40.e8c09e00.js.map
-rw-r--r-- 1 harsh staff 545 May 31 18:36 41.d3d84129.js.map
-rw-r--r-- 1 harsh staff 559 May 31 18:36 42.75ea13ea.js.map
-rw-r--r-- 1 harsh staff 8435 May 31 18:36 43.d1e21eb5.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 44.49107eca.js.map
-rw-r--r-- 1 harsh staff 95 May 31 18:36 45.8db93fd6.js.map
-rw-r--r-- 1 harsh staff 2639 May 31 18:36 46.a6661815.js.map
-rw-r--r-- 1 harsh staff 32222 May 31 18:36 47.35f8aefb.js.map
-rw-r--r-- 1 harsh staff 238544 May 31 18:36 48.b3d92c29.js.map
-rw-r--r-- 1 harsh staff 657 May 31 18:36 49.5e13dfbf.js.map
-rw-r--r-- 1 harsh staff 73069 May 31 18:36 5.bbc00ba7.js.map
-rw-r--r-- 1 harsh staff 660 May 31 18:36 50.503955a7.js.map
-rw-r--r-- 1 harsh staff 941 May 31 18:36 51.14819489.js.map
-rw-r--r-- 1 harsh staff 3807 May 31 18:36 52.679c6ccc.js.map
-rw-r--r-- 1 harsh staff 2014 May 31 18:36 53.655be60e.js.map
-rw-r--r-- 1 harsh staff 920 May 31 18:36 54.0752b8c6.js.map
-rw-r--r-- 1 harsh staff 2965 May 31 18:36 55.55f871f0.js.map
-rw-r--r-- 1 harsh staff 1019 May 31 18:36 56.a56b997d.js.map
-rw-r--r-- 1 harsh staff 1573 May 31 18:36 57.4757ff53.js.map
-rw-r--r-- 1 harsh staff 1824 May 31 18:36 58.c425eaaf.js.map
-rw-r--r-- 1 harsh staff 2796 May 31 18:36 59.f3188cad.js.map
-rw-r--r-- 1 harsh staff 639 May 31 18:36 6.8d314e04.js.map
-rw-r--r-- 1 harsh staff 669 May 31 18:36 60.449304b7.js.map
-rw-r--r-- 1 harsh staff 718 May 31 18:36 61.4c875536.js.map
-rw-r--r-- 1 harsh staff 2087 May 31 18:36 62.8dcb561d.js.map
-rw-r--r-- 1 harsh staff 1165 May 31 18:36 63.92ced742.js.map
-rw-r--r-- 1 harsh staff 1029 May 31 18:36 64.fff7e6a6.js.map
-rw-r--r-- 1 harsh staff 1142 May 31 18:36 65.f4dc689c.js.map
-rw-r--r-- 1 harsh staff 373 May 31 18:36 66.f6b65c8b.js.map
-rw-r--r-- 1 harsh staff 1258 May 31 18:36 69.117323f6.js.map
-rw-r--r-- 1 harsh staff 59154 May 31 18:36 7.7bf37147.js.map
-rw-r--r-- 1 harsh staff 1420 May 31 18:36 70.c69db402.js.map
-rw-r--r-- 1 harsh staff 4454 May 31 18:36 8.66188be0.js.map
-rw-r--r-- 1 harsh staff 1825 May 31 18:36 9.565eff9e.js.map
@lforst are you aware of any out of heap memory reports when uploading source maps?
I haven't seen any issues with memory in the bundler plugins so far.
Hmm shot in the dark but does this still appear if you set rewrite: true
?
Nope, it still fails:
[sentry-vite-plugin] Info: Successfully uploaded source maps.
[sentry-vite-plugin] Info: Successfully finalized release.
<--- Last few GCs --->
[45073:0x148040000] 53204 ms: Mark-sweep 4034.6 (4132.6) -> 4024.6 (4129.7) MB, 2395.1 / 0.0 ms (average mu = 0.206, current mu = 0.037) allocation failure; scavenge might not succeed
[45073:0x148040000] 57342 ms: Mark-sweep 4040.9 (4141.7) -> 4040.2 (4160.7) MB, 4120.7 / 0.0 ms (average mu = 0.082, current mu = 0.004) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0x10254ce4c node::Abort() [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
2: 0x10254d03c node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
3: 0x1026a39dc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
4: 0x10284e958 v8::internal::EmbedderStackStateScope::EmbedderStackStateScope(v8::internal::Heap*, v8::internal::EmbedderStackStateScope::Origin, cppgc::EmbedderStackState) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
5: 0x10284d43c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
6: 0x1028416e4 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
7: 0x102841f14 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
8: 0x10282762c v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
9: 0x10281f234 v8::internal::FactoryBase<v8::internal::Factory>::NewFixedArrayWithFiller(v8::internal::Handle<v8::internal::Map>, int, v8::internal::Handle<v8::internal::Oddball>, v8::internal::AllocationType) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
10: 0x1029ab4c0 v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2>>::GrowCapacity(v8::internal::Handle<v8::internal::JSObject>, unsigned int) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
11: 0x102bab2e0 v8::internal::Runtime_GrowArrayElements(int, unsigned long*, v8::internal::Isolate*) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
12: 0x102f0104c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
13: 0x1083e7714
14: 0x1080332fc
15: 0x102f4c738 Builtins_PromiseFulfillReactionJob [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
16: 0x102eafc4c Builtins_RunMicrotasks [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
17: 0x102e8a3a4 Builtins_JSRunMicrotasksEntry [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
18: 0x1027d00fc v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
19: 0x1027d05ec v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
20: 0x1027d07c8 v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate*, v8::internal::MicrotaskQueue*, v8::internal::MaybeHandle<v8::internal::Object>*) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
21: 0x1027f6f14 v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
22: 0x1027f77ac v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate*) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
23: 0x10249cc5c node::InternalCallbackScope::Close() [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
24: 0x10249cfe8 node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
25: 0x1024b1bd8 node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
26: 0x102551fd4 node::fs::FSReqCallback::Resolve(v8::Local<v8::Value>) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
27: 0x1025525a8 node::fs::AfterNoArgs(uv_fs_s*) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
28: 0x102549254 node::MakeLibuvRequestCallback<uv_fs_s, void (*)(uv_fs_s*)>::Wrapper(uv_fs_s*) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
29: 0x102e69664 uv__work_done [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
30: 0x102e6ce0c uv__async_io [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
31: 0x102e7f5b0 uv__io_poll [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
32: 0x102e6d2dc uv_run [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
33: 0x10249d704 node::SpinEventLoop(node::Environment*) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
34: 0x10258914c node::NodeMainInstance::Run() [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
35: 0x10251a244 node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
36: 0x10251a4c8 node::Start(int, char**) [/Users/harsh/.nvm/versions/node/v18.14.1/bin/node]
37: 0x19b773f28 start [/usr/lib/dyld]
I removed the included vite plugin and tried using the @sentry/vite-plugin
package but with that as well I'm running into an error:
[vite:esbuild-transpile] Transform failed with 1 error:
chunks/navigation.js:31:38: ERROR: Unexpected ";"
Unexpected ";"
29 | const beforeNavigate = /* @__PURE__ */ client_method('before_navigate');
30 |
31 | const afterNavigate = /* @__PURE__ */ ;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5e427caf-9a64-4505-ad16-839083d14db9",e._sentryDebugIdIdentifier="sentry-dbid-5e427caf-9a64-4505-ad16-839083d14db9")}catch(e){}}();client_method('after_navigate');
| ^
32 |
33 | export { afterNavigate as a, beforeNavigate as b, goto as g };
✓ built in 7.78s
error during build:
Error: Transform failed with 1 error:
chunks/navigation.js:31:38: ERROR: Unexpected ";"
at failureErrorWithLog (/Users/harsh/Documents/GitHub/admin-app/node_modules/.pnpm/esbuild@0.17.19/node_modules/esbuild/lib/main.js:1636:15)
at /Users/harsh/Documents/GitHub/admin-app/node_modules/.pnpm/esbuild@0.17.19/node_modules/esbuild/lib/main.js:837:29
at responseCallbacks.<computed> (/Users/harsh/Documents/GitHub/admin-app/node_modules/.pnpm/esbuild@0.17.19/node_modules/esbuild/lib/main.js:697:9)
at handleIncomingPacket (/Users/harsh/Documents/GitHub/admin-app/node_modules/.pnpm/esbuild@0.17.19/node_modules/esbuild/lib/main.js:752:9)
at Socket.readFromStdout (/Users/harsh/Documents/GitHub/admin-app/node_modules/.pnpm/esbuild@0.17.19/node_modules/esbuild/lib/main.js:673:7)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
I got the same error. For now I'll disable the upload of source maps :(
Same error here while using Sentry. Any way to fix this?
[vite:esbuild-transpile] Transform failed with 1 error:
chunks/navigation.js:78:38: ERROR: Unexpected ";"
Unexpected ";"
76 | * @returns {void}
77 | */
78 | const afterNavigate = /* @__PURE__ */ ;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d6bcd9af-b593-4ef1-5115-b7a8e1cabaa2",e._sentryDebugIdIdentifier="sentry-dbid-d6bcd9af-b593-4ef1-5115-b7a8e1cabaa2")}catch(e){}}();client_method('after_navigate');
| ^
79 |
80 | export { afterNavigate as a, goto as g, invalidate as i };
✓ built in 13.82s
error during build:
Error: Transform failed with 1 error:
chunks/navigation.js:78:38: ERROR: Unexpected ";"
at failureErrorWithLog (/builds/xxxx/front/node_modules/esbuild/lib/main.js:1636:15)
at /builds/xxxx/front/node_modules/esbuild/lib/main.js:837:29
at responseCallbacks.<computed> (/builds/xxxx/front/node_modules/esbuild/lib/main.js:697:9)
at handleIncomingPacket (/builds/xxxx/front/node_modules/esbuild/lib/main.js:752:9)
at Socket.readFromStdout (/builds/xxxx/front/node_modules/esbuild/lib/main.js:673:7)
at Socket.emit (node:events:511:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:332:12)
at readableAddChunk (node:internal/streams/readable:305:9)
at Readable.push (node:internal/streams/readable:242:10)
@arnaudgtn @lim3 if you manually use @sentry/vite-plugin (version 2.x), please make sure to upgrade to the latest version. The bug described in your snippets should be fixed with version 2.2.2.
As for the original bug, I still haven't been able to reproduce unfortunately.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog
or Status: In Progress
, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
The bug described in your snippets should be fixed with version 2.2.2.
Thank you @Lms24. Yes, using the vite-plugin circumvents the sourcemap upload problem in the sveltekit plugin.
Also, I tested the upload again on the latest package @sentry/sveltekit: 7.57.0
and I still get the same out of heap memory error.
Full transparency: I still have no idea what's causing the out of memory errors here. Without a proper, minimal reproduction we can't really investigate this unfortunately.
(Removing the Waiting for: Product Owner
label because this just needs more information)
Hi, we released version 7.65.0 which bumps the Sentry Vite plugin to a version where we believe we fixed a memory leak. If you still experience this issue, please upgrade to the latest SDK version and give this another try. Let us know how it goes - Thanks!
Thanks @Lms24 I'll take a look!
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/sveltekit
SDK Version
7.53.1
Framework Version
1.18.0
Link to Sentry event
No response
SDK Setup
vite.config.ts
:Steps to Reproduce
I'm trying to integrate sentry's sveltekit SDK into my app. Everything works fine except the sourcemap upload part. When configured to upload sourcemaps, the build process crashes with "JavaScript heap out of memory" after sourcemaps are uploaded successfully.
Expected Result
I expect the build process to complete succesfully
Actual Result
Build log: