-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sveltekit SDK: Build process crashes when uploading sourcemaps using the vite plugin. #8262
Comments
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 |
Here's a list of the map files:
|
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 |
Nope, it still fails:
|
I removed the included vite plugin and tried using the
|
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?
|
@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 "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
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 |
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. |
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:
The text was updated successfully, but these errors were encountered: