Skip to content

Memory leak with nuxt build #16482

Open
Open
@SwartZCoding

Description

@SwartZCoding

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nuxt

SDK Version

"@sentry/browser": "^9.25.1",
"@sentry/nuxt": "^9.19.0",

Framework Version

nuxt 3.16.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

Hello guys ! Since i have installed sentry on my nuxt project. My github action run out of memory...

I think this is the same issue of but on nextjs : #12317

I have already try to increase on my actions the NODE_OPTIONS=--max_old_space_size=8192

My sentry client config :

import * as Sentry from "@sentry/nuxt";

Sentry.init({
// If set up, you can use your runtime config here
// dsn: useRuntimeConfig().public.sentry.dsn,
dsn: "",

// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,

beforeSend(event, hint) {
const error = hint.originalException;
if (
error &&
typeof error.message === 'string' &&
error.message.includes("window.webkit.messageHandlers")
) {
return null; // ignore
}
return event;
}
});

Config on nuxt.config :

sentry: {
sourceMapsUploadOptions: {
org: 'XXXXX',
project: 'XXXXX',
authToken: "XXXX",
}
},

sourcemap: {
client: 'hidden'
}

Steps to Reproduce

  1. Create a nuxt project
  2. setup a sentry into it
  3. Try to build it with github actions

Expected Result

Don't get out of memory...

Actual Result

[6/6] RUN npm run build:
127.9 <--- JS stacktrace --->
127.9
127.9 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
127.9 ----- Native stack trace -----
127.9
159.4 npm error path /app/front
159.4 npm error command failed
159.4 npm error signal SIGABRT

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions