getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.88k stars 1.55k forks source link

Sveltekit SDK: Build process crashes when uploading sourcemaps using the vite plugin. #8262

Closed harshmandan closed 1 year ago

harshmandan commented 1 year ago

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:

...
plugins: [
    sentrySvelteKit({
      sourceMapsUploadOptions: {
        telemetry: false,
        debug: true,
        org: 'latitude-v6',
        project: 'lumiere-v4-admin-app',
        authToken: process.env.SENTRY_AUTH_TOKEN,
        cleanArtifacts: true,
        rewrite: false,
      },
    }),
    sveltekit(),
  ],
...

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:


vite v4.2.1 building for production...
✓ 2338 modules transformed.
.svelte-kit/output/client/_app/version.json                                                  0.03 kB

__LIST OF BUILD FILES__

Run npm run preview to preview your production build locally.

> Using @sveltejs/adapter-node
  ✔ done
✓ built in 28.97s
[sentry-vite-plugin] Info: Successfully created release.
All files deleted.
[sentry-vite-plugin] Info: Successfully cleaned previous artifacts.
[sentry-vite-plugin] Info: Uploading Sourcemaps.
> Found 4 files
> Analyzing 4 sources
> ~/index.js
> Analyzing completed in 0.002s
> Adding source map references
> Found 484 files
> Analyzing 484 sources
> ~/populateTriggers-a92cdd5f.js
> Found 372 files
> Analyzing 372 sources
> Analyzing completed in 0.016s
> Adding source map references
> Bundling completed in 0.022s
> Bundled 4 files for upload
> Bundle ID: e80e3e16-f814-5f7b-b4f3-4e06cac97658
> Optimizing completed in 0s
> Uploading files...
███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░  63.99KB/116.38KB (0s)
> Bundling files for upload... ~/app/_app/immutable/entry/app.3da26525.js.map
███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  164/372
> Bundling completed in 0.156s
> Bundled 484 files for upload
> Bundling completed in 0.385s
> Bundled 372 files for upload
> Bundle ID: fedea91d-c630-5deb-9981-6bf1d5b8cc1e
> Optimizing completed in 0.01s
> Uploading completed in 1.023s
> Uploaded files to Sentry
⠁ 
> Uploading files...
> Processing completed in 0.29s
> File upload complete (processing pending on server)
> Organization: __xxxxxxxxx__
> Project: __xxxxxxxxx__
> Release: f0e93fcd2ae54012af2c200afe2df826
> Dist: None
> Upload type: artifact bundle

Source Map Upload Report
  Minified Scripts
    ~/index.js (sourcemap at index.js.map)
    ~/manifest.js (sourcemap at manifest.js.map)
  Source Maps
> Uploading completed in 2.527s
> Uploaded files to Sentry
> Processing completed in 0.334s
> File upload complete (processing pending on server)
> Organization: __xxxxxxxxx__
> Project: __xxxxxxxxx__
> Release: f0e93fcd2ae54012af2c200afe2df826
> Dist: None
> Upload type: artifact bundle

Source Map Upload Report
  Minified Scripts
    ~/0-e187be4f.js (sourcemap at 0-e187be4f.js.map)
    ~/1-68d7865f.js (sourcemap at 1-68d7865f.js.map)
    ~/10-bdc2bdc0.js (sourcemap at 10-bdc2bdc0.js.map)
    ~/11-96cdaca6.js (sourcemap at 11-96cdaca6.js.map)
    ~/12-2bd12827.js (sourcemap at 12-2bd12827.js.map)
    ~/13-3004e75b.js (sourcemap at 13-3004e75b.js.map)
    ~/14-5e805aa3.js (sourcemap at 14-5e805aa3.js.map)
    ~/15-b4e3dc36.js (sourcemap at 15-b4e3dc36.js.map)
    ~/16-9be46b96.js (sourcemap at 16-9be46b96.js.map)
    ~/17-d288bf55.js (sourcemap at 17-d288bf55.js.map)
    ~/18-bef05d20.js (sourcemap at 18-bef05d20.js.map)
    ~/19-6da873d1.js (sourcemap at 19-6da873d1.js.map)
    ~/2-5199c1b2.js (sourcemap at 2-5199c1b2.js.map)
    ~/20-21247255.js (sourcemap at 20-21247255.js.map)
    ~/21-b9871961.js (sourcemap at 21-b9871961.js.map)
    ~/22-3cc98f0d.js (sourcemap at 22-3cc98f0d.js.map)
    ~/23-67484f3e.js (sourcemap at 23-67484f3e.js.map)
    ~/24-33eeece6.js (sourcemap at 24-33eeece6.js.map)
    ~/25-3e124983.js (sourcemap at 25-3e124983.js.map)
    ~/26-0efef710.js (sourcemap at 26-0efef710.js.map)
    ~/27-42e53b9f.js (sourcemap at 27-42e53b9f.js.map)
    ~/28-1d605a2d.js (sourcemap at 28-1d605a2d.js.map)
    ~/29-d7a445ac.js (sourcemap at 29-d7a445ac.js.map)
    ~/3-1fac15c3.js (sourcemap at 3-1fac15c3.js.map)
    ~/30-de5c8e4e.js (sourcemap at 30-de5c8e4e.js.map)
    ~/31-4d0c0310.js (sourcemap at 31-4d0c0310.js.map)
    ~/32-1a4a9318.js (sourcemap at 32-1a4a9318.js.map)
    ~/33-7975cb00.js (sourcemap at 33-7975cb00.js.map)
    ~/34-06e7343b.js (sourcemap at 34-06e7343b.js.map)
    ~/35-76f513bf.js (sourcemap at 35-76f513bf.js.map)
    ~/36-e4ff05ca.js (sourcemap at 36-e4ff05ca.js.map)
    ~/37-18f2dbd7.js (sourcemap at 37-18f2dbd7.js.map)
    ~/38-d8d7f564.js (sourcemap at 38-d8d7f564.js.map)
    ~/39-d647d0a5.js (sourcemap at 39-d647d0a5.js.map)
    ~/4-a805a325.js (sourcemap at 4-a805a325.js.map)
    ~/40-3feb1342.js (sourcemap at 40-3feb1342.js.map)
    ~/41-95dc2495.js (sourcemap at 41-95dc2495.js.map)
    ~/42-2b93ebc3.js (sourcemap at 42-2b93ebc3.js.map)
    ~/43-3955700e.js (sourcemap at 43-3955700e.js.map)
    ~/44-791fe5de.js (sourcemap at 44-791fe5de.js.map)
    ~/45-0f23800a.js (sourcemap at 45-0f23800a.js.map)
    ~/46-eb36666d.js (sourcemap at 46-eb36666d.js.map)
    ~/47-b2554441.js (sourcemap at 47-b2554441.js.map)
    ~/48-c6f896d8.js (sourcemap at 48-c6f896d8.js.map)
    ~/49-cce6ad82.js (sourcemap at 49-cce6ad82.js.map)
    ~/5-cbd875d5.js (sourcemap at 5-cbd875d5.js.map)
    ~/50-0a04df66.js (sourcemap at 50-0a04df66.js.map)
    ~/51-20064010.js (sourcemap at 51-20064010.js.map)
    ~/52-609e74d8.js (sourcemap at 52-609e74d8.js.map)
    ~/53-6411a947.js (sourcemap at 53-6411a947.js.map)
    ~/54-fccca56d.js (sourcemap at 54-fccca56d.js.map)
    ~/55-ed3bf53c.js (sourcemap at 55-ed3bf53c.js.map)
    ~/56-03d7cdde.js (sourcemap at 56-03d7cdde.js.map)
    ~/57-9f5886e3.js (sourcemap at 57-9f5886e3.js.map)
    ~/58-f58b7c31.js (sourcemap at 58-f58b7c31.js.map)
    ~/59-bd6eea80.js (sourcemap at 59-bd6eea80.js.map)
    ~/6-b8dbb202.js (sourcemap at 6-b8dbb202.js.map)
    ~/60-471ca9f5.js (sourcemap at 60-471ca9f5.js.map)
    ~/61-acc35842.js (sourcemap at 61-acc35842.js.map)
    ~/62-6bc2c721.js (sourcemap at 62-6bc2c721.js.map)
    ~/63-1d8f373e.js (sourcemap at 63-1d8f373e.js.map)
    ~/64-815b62ce.js (sourcemap at 64-815b62ce.js.map)
    ~/65-07a1d4b8.js (sourcemap at 65-07a1d4b8.js.map)
    ~/66-176b3c00.js (sourcemap at 66-176b3c00.js.map)
    ~/67-10522476.js (sourcemap at 67-10522476.js.map)
    ~/68-987918b7.js (sourcemap at 68-987918b7.js.map)
    ~/69-10af6ca0.js (sourcemap at 69-10af6ca0.js.map)
    ~/7-fda33ca4.js (sourcemap at 7-fda33ca4.js.map)
    ~/70-2b580f34.js (sourcemap at 70-2b580f34.js.map)
    ~/8-50fab9fe.js (sourcemap at 8-50fab9fe.js.map)
    ~/9-e526f641.js (sourcemap at 9-e526f641.js.map)
    ___MORE FILES HERE___    
    ~/wait-afc08268.js (sourcemap at wait-afc08268.js.map)
  Source Maps
    ~/0-e187be4f.js.map
    ~/1-68d7865f.js.map
    ~/10-bdc2bdc0.js.map
    ~/11-96cdaca6.js.map
    ~/12-2bd12827.js.map
    ~/13-3004e75b.js.map
    ~/14-5e805aa3.js.map
    ~/15-b4e3dc36.js.map
    ~/16-9be46b96.js.map
    ~/17-d288bf55.js.map
    ~/18-bef05d20.js.map
    ~/19-6da873d1.js.map
    ~/2-5199c1b2.js.map
    ~/20-21247255.js.map
    ~/21-b9871961.js.map
    ~/22-3cc98f0d.js.map
    ~/23-67484f3e.js.map
    ~/24-33eeece6.js.map
    ~/25-3e124983.js.map
    ~/26-0efef710.js.map
    ~/27-42e53b9f.js.map
    ~/28-1d605a2d.js.map
    ~/29-d7a445ac.js.map
    ~/3-1fac15c3.js.map
    ~/30-de5c8e4e.js.map
    ~/31-4d0c0310.js.map
    ~/32-1a4a9318.js.map
    ~/33-7975cb00.js.map
    ~/34-06e7343b.js.map
    ~/35-76f513bf.js.map
    ~/36-e4ff05ca.js.map
    ~/37-18f2dbd7.js.map
    ~/38-d8d7f564.js.map
    ~/39-d647d0a5.js.map
    ~/4-a805a325.js.map
    ~/40-3feb1342.js.map
    ~/41-95dc2495.js.map
    ~/42-2b93ebc3.js.map
    ~/43-3955700e.js.map
    ~/44-791fe5de.js.map
    ~/45-0f23800a.js.map
    ~/46-eb36666d.js.map
    ~/47-b2554441.js.map
    ~/48-c6f896d8.js.map
    ~/49-cce6ad82.js.map
    ~/5-cbd875d5.js.map
    ~/50-0a04df66.js.map
    ~/51-20064010.js.map
    ~/52-609e74d8.js.map
    ~/53-6411a947.js.map
    ~/54-fccca56d.js.map
    ~/55-ed3bf53c.js.map
    ~/56-03d7cdde.js.map
    ~/57-9f5886e3.js.map
    ~/58-f58b7c31.js.map
    ~/59-bd6eea80.js.map
    ~/6-b8dbb202.js.map
    ~/60-471ca9f5.js.map
    ~/61-acc35842.js.map
    ~/62-6bc2c721.js.map
    ~/63-1d8f373e.js.map
    ~/64-815b62ce.js.map
    ~/65-07a1d4b8.js.map
    ~/66-176b3c00.js.map
    ~/67-10522476.js.map
    ~/68-987918b7.js.map
    ~/69-10af6ca0.js.map
    ~/7-fda33ca4.js.map
    ~/70-2b580f34.js.map
    ~/8-50fab9fe.js.map
    ~/9-e526f641.js.map
    ___MORE FILES HERE___    
    ~/timer-e5ae0f1c.js.map
> Uploading completed in 2.868s
> Uploaded files to Sentry
> Processing completed in 0.399s
> File upload complete (processing pending on server)
> Organization: __xxxxxxxxx__
> Project: __xxxxxxxxx__
> Release: f0e93fcd2ae54012af2c200afe2df826
> Dist: None
> Upload type: artifact bundle

Source Map Upload Report
  Minified Scripts
    ~/app/_app/immutable/chunks/67.10988856.js (sourcemap at 67.10988856.js.map)
    ~/app/_app/immutable/chunks/68.10988856.js (sourcemap at 68.10988856.js.map)
    ~/app/_app/immutable/chunks/index.1af4151e.js (sourcemap at index.1af4151e.js.map)
    ~/app/_app/immutable/chunks/index.1ec31adb.js (sourcemap at index.1ec31adb.js.map)
    ~/app/_app/immutable/chunks/index.4b66ec56.js (sourcemap at index.4b66ec56.js.map)
    ~/app/_app/immutable/chunks/index.83b8c1a3.js (sourcemap at index.83b8c1a3.js.map)
    ~/app/_app/immutable/chunks/index.9b2b17cc.js (sourcemap at index.9b2b17cc.js.map)
    ~/app/_app/immutable/chunks/index.af06245d.js (sourcemap at index.af06245d.js.map)
    ~/app/_app/immutable/chunks/index.b1f5b21f.js (sourcemap at index.b1f5b21f.js.map)
    ~/app/_app/immutable/chunks/index.b3384b81.js (sourcemap at index.b3384b81.js.map)
    ~/app/_app/immutable/chunks/index.bc666b89.js (sourcemap at index.bc666b89.js.map)
    ~/app/_app/immutable/chunks/index.c61c8d00.js (sourcemap at index.c61c8d00.js.map)
    ~/app/_app/immutable/chunks/index.cf58f407.js (sourcemap at index.cf58f407.js.map)
    ~/app/_app/immutable/chunks/index.esm.3d1049fb.js (sourcemap at index.esm.3d1049fb.js.map)
    ___MORE FILES HERE___    
    ~/app/_app/immutable/nodes/0.4035964d.js (sourcemap at 0.4035964d.js.map)
    ~/app/_app/immutable/nodes/1.97e55d83.js (sourcemap at 1.97e55d83.js.map)
    ~/app/_app/immutable/nodes/10.deac1b43.js (sourcemap at 10.deac1b43.js.map)
    ~/app/_app/immutable/nodes/11.946f1a41.js (sourcemap at 11.946f1a41.js.map)
    ~/app/_app/immutable/nodes/12.8a8260d3.js (sourcemap at 12.8a8260d3.js.map)
    ~/app/_app/immutable/nodes/13.0758bada.js (sourcemap at 13.0758bada.js.map)
    ~/app/_app/immutable/nodes/14.cbbb30af.js (sourcemap at 14.cbbb30af.js.map)
    ~/app/_app/immutable/nodes/15.07422775.js (sourcemap at 15.07422775.js.map)
    ~/app/_app/immutable/nodes/16.d18ae92e.js (sourcemap at 16.d18ae92e.js.map)
    ~/app/_app/immutable/nodes/17.7f4d3d52.js (sourcemap at 17.7f4d3d52.js.map)
    ~/app/_app/immutable/nodes/18.a3c0c89b.js (sourcemap at 18.a3c0c89b.js.map)
    ~/app/_app/immutable/nodes/19.11730c8f.js (sourcemap at 19.11730c8f.js.map)
    ~/app/_app/immutable/nodes/2.ac4fa4d7.js (sourcemap at 2.ac4fa4d7.js.map)
    ~/app/_app/immutable/nodes/20.5941fd39.js (sourcemap at 20.5941fd39.js.map)
    ~/app/_app/immutable/nodes/21.258567f6.js (sourcemap at 21.258567f6.js.map)
    ~/app/_app/immutable/nodes/22.97e55d83.js (sourcemap at 22.97e55d83.js.map)
    ~/app/_app/immutable/nodes/23.04045cf7.js (sourcemap at 23.04045cf7.js.map)
    ~/app/_app/immutable/nodes/24.2dafccef.js (sourcemap at 24.2dafccef.js.map)
    ~/app/_app/immutable/nodes/25.69ca881e.js (sourcemap at 25.69ca881e.js.map)
    ~/app/_app/immutable/nodes/26.496779b1.js (sourcemap at 26.496779b1.js.map)
    ~/app/_app/immutable/nodes/27.5dbc3195.js (sourcemap at 27.5dbc3195.js.map)
    ~/app/_app/immutable/nodes/28.9b6f3235.js (sourcemap at 28.9b6f3235.js.map)
    ~/app/_app/immutable/nodes/29.75e22254.js (sourcemap at 29.75e22254.js.map)
    ~/app/_app/immutable/nodes/3.211afbfe.js (sourcemap at 3.211afbfe.js.map)
    ~/app/_app/immutable/nodes/30.ee38f6ba.js (sourcemap at 30.ee38f6ba.js.map)
    ~/app/_app/immutable/nodes/31.9b6f3235.js (sourcemap at 31.9b6f3235.js.map)
    ~/app/_app/immutable/nodes/32.9b6f3235.js (sourcemap at 32.9b6f3235.js.map)
    ~/app/_app/immutable/nodes/33.9b6f3235.js (sourcemap at 33.9b6f3235.js.map)
    ~/app/_app/immutable/nodes/34.9b6f3235.js (sourcemap at 34.9b6f3235.js.map)
    ~/app/_app/immutable/nodes/35.9b6f3235.js (sourcemap at 35.9b6f3235.js.map)
    ~/app/_app/immutable/nodes/36.c5f0e12d.js (sourcemap at 36.c5f0e12d.js.map)
    ~/app/_app/immutable/nodes/37.ae356641.js (sourcemap at 37.ae356641.js.map)
    ~/app/_app/immutable/nodes/38.e6d858d2.js (sourcemap at 38.e6d858d2.js.map)
    ~/app/_app/immutable/nodes/39.f15b92b6.js (sourcemap at 39.f15b92b6.js.map)
    ~/app/_app/immutable/nodes/4.9e7b0317.js (sourcemap at 4.9e7b0317.js.map)
    ~/app/_app/immutable/nodes/40.3c4a02dc.js (sourcemap at 40.3c4a02dc.js.map)
    ~/app/_app/immutable/nodes/41.950a3dd6.js (sourcemap at 41.950a3dd6.js.map)
    ~/app/_app/immutable/nodes/42.d4356e03.js (sourcemap at 42.d4356e03.js.map)
    ~/app/_app/immutable/nodes/43.f2d39b29.js (sourcemap at 43.f2d39b29.js.map)
    ~/app/_app/immutable/nodes/44.9b6f3235.js (sourcemap at 44.9b6f3235.js.map)
    ~/app/_app/immutable/nodes/45.cba7e569.js (sourcemap at 45.cba7e569.js.map)
    ~/app/_app/immutable/nodes/46.9442607e.js (sourcemap at 46.9442607e.js.map)
    ~/app/_app/immutable/nodes/47.d53ea080.js (sourcemap at 47.d53ea080.js.map)
    ~/app/_app/immutable/nodes/48.7fa93989.js (sourcemap at 48.7fa93989.js.map)
    ~/app/_app/immutable/nodes/49.83eac40d.js (sourcemap at 49.83eac40d.js.map)
    ~/app/_app/immutable/nodes/5.349da4c8.js (sourcemap at 5.349da4c8.js.map)
    ~/app/_app/immutable/nodes/50.13941af9.js (sourcemap at 50.13941af9.js.map)
    ~/app/_app/immutable/nodes/51.25ebd726.js (sourcemap at 51.25ebd726.js.map)
    ~/app/_app/immutable/nodes/52.a083e5d3.js (sourcemap at 52.a083e5d3.js.map)
    ~/app/_app/immutable/nodes/53.1202eb15.js (sourcemap at 53.1202eb15.js.map)
    ~/app/_app/immutable/nodes/54.00466374.js (sourcemap at 54.00466374.js.map)
    ~/app/_app/immutable/nodes/55.c84101ff.js (sourcemap at 55.c84101ff.js.map)
    ~/app/_app/immutable/nodes/56.5aef5c9d.js (sourcemap at 56.5aef5c9d.js.map)
    ~/app/_app/immutable/nodes/57.29663047.js (sourcemap at 57.29663047.js.map)
    ~/app/_app/immutable/nodes/58.0ab2daf0.js (sourcemap at 58.0ab2daf0.js.map)
    ~/app/_app/immutable/nodes/59.fb6a9a27.js (sourcemap at 59.fb6a9a27.js.map)
    ~/app/_app/immutable/nodes/6.97e55d83.js (sourcemap at 6.97e55d83.js.map)
    ~/app/_app/immutable/nodes/60.eb4db25c.js (sourcemap at 60.eb4db25c.js.map)
    ~/app/_app/immutable/nodes/61.2fd6d388.js (sourcemap at 61.2fd6d388.js.map)
    ~/app/_app/immutable/nodes/62.c2e6489b.js (sourcemap at 62.c2e6489b.js.map)
    ~/app/_app/immutable/nodes/63.789ef275.js (sourcemap at 63.789ef275.js.map)
    ~/app/_app/immutable/nodes/64.7e945435.js (sourcemap at 64.7e945435.js.map)
    ~/app/_app/immutable/nodes/65.f3ce5040.js (sourcemap at 65.f3ce5040.js.map)
    ~/app/_app/immutable/nodes/66.351d3bc2.js (sourcemap at 66.351d3bc2.js.map)
    ~/app/_app/immutable/nodes/69.c676169c.js (sourcemap at 69.c676169c.js.map)
    ~/app/_app/immutable/nodes/7.2b7c2020.js (sourcemap at 7.2b7c2020.js.map)
    ~/app/_app/immutable/nodes/70.47050beb.js (sourcemap at 70.47050beb.js.map)
    ~/app/_app/immutable/nodes/8.10500953.js (sourcemap at 8.10500953.js.map)
    ~/app/_app/immutable/nodes/9.b422f4cb.js (sourcemap at 9.b422f4cb.js.map)
  Source Maps
    ~/app/_app/immutable/chunks/67.10988856.js.map
    ~/app/_app/immutable/chunks/68.10988856.js.map
    ___MORE FILES HERE___    
    ~/app/_app/immutable/nodes/0.4035964d.js.map
    ~/app/_app/immutable/nodes/1.97e55d83.js.map
    ~/app/_app/immutable/nodes/10.deac1b43.js.map
    ~/app/_app/immutable/nodes/11.946f1a41.js.map
    ~/app/_app/immutable/nodes/12.8a8260d3.js.map
    ~/app/_app/immutable/nodes/13.0758bada.js.map
    ~/app/_app/immutable/nodes/14.cbbb30af.js.map
    ~/app/_app/immutable/nodes/15.07422775.js.map
    ~/app/_app/immutable/nodes/16.d18ae92e.js.map
    ~/app/_app/immutable/nodes/17.7f4d3d52.js.map
    ~/app/_app/immutable/nodes/18.a3c0c89b.js.map
    ~/app/_app/immutable/nodes/19.11730c8f.js.map
    ~/app/_app/immutable/nodes/2.ac4fa4d7.js.map
    ~/app/_app/immutable/nodes/20.5941fd39.js.map
    ~/app/_app/immutable/nodes/21.258567f6.js.map
    ~/app/_app/immutable/nodes/22.97e55d83.js.map
    ~/app/_app/immutable/nodes/23.04045cf7.js.map
    ~/app/_app/immutable/nodes/24.2dafccef.js.map
    ~/app/_app/immutable/nodes/25.69ca881e.js.map
    ~/app/_app/immutable/nodes/26.496779b1.js.map
    ~/app/_app/immutable/nodes/27.5dbc3195.js.map
    ~/app/_app/immutable/nodes/28.9b6f3235.js.map
    ~/app/_app/immutable/nodes/29.75e22254.js.map
    ~/app/_app/immutable/nodes/3.211afbfe.js.map
    ~/app/_app/immutable/nodes/30.ee38f6ba.js.map
    ~/app/_app/immutable/nodes/31.9b6f3235.js.map
    ~/app/_app/immutable/nodes/32.9b6f3235.js.map
    ~/app/_app/immutable/nodes/33.9b6f3235.js.map
    ~/app/_app/immutable/nodes/34.9b6f3235.js.map
    ~/app/_app/immutable/nodes/35.9b6f3235.js.map
    ~/app/_app/immutable/nodes/36.c5f0e12d.js.map
    ~/app/_app/immutable/nodes/37.ae356641.js.map
    ~/app/_app/immutable/nodes/38.e6d858d2.js.map
    ~/app/_app/immutable/nodes/39.f15b92b6.js.map
    ~/app/_app/immutable/nodes/4.9e7b0317.js.map
    ~/app/_app/immutable/nodes/40.3c4a02dc.js.map
    ~/app/_app/immutable/nodes/41.950a3dd6.js.map
    ~/app/_app/immutable/nodes/42.d4356e03.js.map
    ~/app/_app/immutable/nodes/43.f2d39b29.js.map
    ~/app/_app/immutable/nodes/44.9b6f3235.js.map
    ~/app/_app/immutable/nodes/45.cba7e569.js.map
    ~/app/_app/immutable/nodes/46.9442607e.js.map
    ~/app/_app/immutable/nodes/47.d53ea080.js.map
    ~/app/_app/immutable/nodes/48.7fa93989.js.map
    ~/app/_app/immutable/nodes/49.83eac40d.js.map
    ~/app/_app/immutable/nodes/5.349da4c8.js.map
    ~/app/_app/immutable/nodes/50.13941af9.js.map
    ~/app/_app/immutable/nodes/51.25ebd726.js.map
    ~/app/_app/immutable/nodes/52.a083e5d3.js.map
    ~/app/_app/immutable/nodes/53.1202eb15.js.map
    ~/app/_app/immutable/nodes/54.00466374.js.map
    ~/app/_app/immutable/nodes/55.c84101ff.js.map
    ~/app/_app/immutable/nodes/56.5aef5c9d.js.map
    ~/app/_app/immutable/nodes/57.29663047.js.map
    ~/app/_app/immutable/nodes/58.0ab2daf0.js.map
    ~/app/_app/immutable/nodes/59.fb6a9a27.js.map
    ~/app/_app/immutable/nodes/6.97e55d83.js.map
    ~/app/_app/immutable/nodes/60.eb4db25c.js.map
    ~/app/_app/immutable/nodes/61.2fd6d388.js.map
    ~/app/_app/immutable/nodes/62.c2e6489b.js.map
    ~/app/_app/immutable/nodes/63.789ef275.js.map
    ~/app/_app/immutable/nodes/64.7e945435.js.map
    ~/app/_app/immutable/nodes/65.f3ce5040.js.map
    ~/app/_app/immutable/nodes/66.351d3bc2.js.map
    ~/app/_app/immutable/nodes/69.c676169c.js.map
    ~/app/_app/immutable/nodes/7.2b7c2020.js.map
    ~/app/_app/immutable/nodes/70.47050beb.js.map
    ~/app/_app/immutable/nodes/8.10500953.js.map
    ~/app/_app/immutable/nodes/9.b422f4cb.js.map
[sentry-vite-plugin] Info: Successfully uploaded source maps.
[sentry-vite-plugin] Info: Successfully finalized release.

<--- Last few GCs --->

[24440:0x148040000]    45737 ms: Mark-sweep 3985.4 (4115.0) -> 3974.1 (4109.2) MB, 1500.6 / 0.0 ms  (average mu = 0.118, current mu = 0.020) task; scavenge might not succeed
[24440:0x148040000]    47278 ms: Mark-sweep 4020.0 (4129.3) -> 4012.3 (4132.8) MB, 1503.6 / 0.0 ms  (average mu = 0.073, current mu = 0.024) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x102f4ce4c node::Abort() [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
 2: 0x102f4d03c node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
 3: 0x1030a39dc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
 4: 0x10324e958 v8::internal::EmbedderStackStateScope::EmbedderStackStateScope(v8::internal::Heap*, v8::internal::EmbedderStackStateScope::Origin, cppgc::EmbedderStackState) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
 5: 0x103252560 v8::internal::Heap::CollectSharedGarbage(v8::internal::GarbageCollectionReason) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
 6: 0x10324f554 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*, v8::GCCallbackFlags) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
 7: 0x10324c9ac v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
 8: 0x1032416e4 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
 9: 0x103241f14 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
10: 0x10322762c v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
11: 0x1032212d4 v8::internal::MaybeHandle<v8::internal::SeqTwoByteString> v8::internal::FactoryBase<v8::internal::Factory>::NewRawStringWithMap<v8::internal::SeqTwoByteString>(int, v8::internal::Map, v8::internal::AllocationType) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
12: 0x103229c14 v8::internal::Factory::NewStringFromUtf8(v8::base::Vector<char const> const&, v8::internal::AllocationType) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
13: 0x1030c5be4 v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
14: 0x103008068 node::StringBytes::Encode(v8::Isolate*, char const*, unsigned long, node::encoding, v8::Local<v8::Value>*) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
15: 0x102f2bf38 void node::Buffer::(anonymous namespace)::StringSlice<(node::encoding)1>(v8::FunctionCallbackInfo<v8::Value> const&) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
16: 0x1031142ec v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
17: 0x103113de8 v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
18: 0x103113614 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
19: 0x10390118c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
20: 0x1082e0d94 
21: 0x1082e760c 
22: 0x108f1fd38 
23: 0x10388a4d0 Builtins_JSEntryTrampoline [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
24: 0x10388a164 Builtins_JSEntry [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
25: 0x1031d012c v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
26: 0x1031cf660 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
27: 0x1030bfa04 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
28: 0x102e9cefc 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/joe/.nvm/versions/node/v18.14.1/bin/node]
29: 0x102eb1bd8 node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
30: 0x102f51fd4 node::fs::FSReqCallback::Resolve(v8::Local<v8::Value>) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
31: 0x102f525a8 node::fs::AfterNoArgs(uv_fs_s*) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
32: 0x102f49254 node::MakeLibuvRequestCallback<uv_fs_s, void (*)(uv_fs_s*)>::Wrapper(uv_fs_s*) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
33: 0x103869664 uv__work_done [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
34: 0x10386ce0c uv__async_io [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
35: 0x10387f5b0 uv__io_poll [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
36: 0x10386d2dc uv_run [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
37: 0x102e9d704 node::SpinEventLoop(node::Environment*) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
38: 0x102f8914c node::NodeMainInstance::Run() [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
39: 0x102f1a244 node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
40: 0x102f1a4c8 node::Start(int, char**) [/Users/joe/.nvm/versions/node/v18.14.1/bin/node]
41: 0x19b773f28 start [/usr/lib/dyld]
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  build@0.3.2 build: `vite build`
Command failed with signal "SIGABRT"
 ELIFECYCLE  Command failed.
Lms24 commented 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 🤔

harshmandan commented 1 year ago

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 commented 1 year ago

@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.

Lms24 commented 1 year ago

Hmm shot in the dark but does this still appear if you set rewrite: true?

harshmandan commented 1 year ago

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]
harshmandan commented 1 year ago

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)
lim3 commented 1 year ago

I got the same error. For now I'll disable the upload of source maps :(

arnaudgtn commented 1 year ago

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)
Lms24 commented 1 year ago

@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.

github-actions[bot] commented 1 year ago

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 🥀

harshmandan commented 1 year ago

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.

Lms24 commented 1 year ago

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)

Lms24 commented 1 year ago

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!

harshmandan commented 1 year ago

Thanks @Lms24 I'll take a look!