Skip to content
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

Next.js 15 - Out of memory #1338

Closed
AlonMiz opened this issue Jan 7, 2025 · 1 comment
Closed

Next.js 15 - Out of memory #1338

AlonMiz opened this issue Jan 7, 2025 · 1 comment
Labels
wontfix This will not be worked on

Comments

@AlonMiz
Copy link

AlonMiz commented Jan 7, 2025

trying to upgrade my project into next 15...
keep getting out of memory. raised it from 4gb to 8gb and 16gb... wasn't helpful

    "cypress": "13.17.0",
    "next": "15.1.2",
      - name: Run Component Tests (Cypress)
        uses: cypress-io/github-action@v6
        with:
          env: |
            CYPRESS_INTERNAL_BROWSER_CONNECT_TIMEOUT=120000
            NODE_OPTIONS=--max_old_space_size=16384
          install: false
          component: true

using experimentalJustInTimeCompile

  component: {
    retries: {
      runMode: 2,
      openMode: 0,
    },
    video: false,
    devServer: {
      framework: 'next',
      bundler: 'webpack',
    },
    specPattern: '**/*.test.component.{js,jsx,ts,tsx}',
    // https://github.com/cypress-io/cypress/issues/28644#issuecomment-2313404171
    experimentalJustInTimeCompile: true,
  },
Running:  Comp.test.component.tsx                       (24 of 29)
<i> [webpack-dev-middleware] wait until bundle finished: /__cypress/src/index.html
24 assets
7535 modules
client (webpack 5.96.1) compiled successfully in 25219 ms

<--- Last few GCs --->

[2306:0x67f3eb0]   238034 ms: Scavenge 2007.9 (2049.0) -> 2006.3 (2049.3) MB, 10.80 / 0.00 ms  (average mu = 0.358, current mu = 0.369) allocation failure; 
[2306:0x67f3eb0]   239136 ms: Scavenge (reduce) 2010.9 (2051.2) -> 2008.4 (2045.3) MB, 12.01 / 0.00 ms  (average mu = 0.358, current mu = 0.369) allocation failure; 
[2306:0x67f3eb0]   239278 ms: Scavenge (reduce) 2009.2 (2045.3) -> 2008.6 (2045.1) MB, 12.16 / 0.00 ms  (average mu = 0.358, current mu = 0.369) allocation failure; 


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0xb8ced1 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [Cypress: Config Manager]
 2: 0xf06460 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [Cypress: Config Manager]
 3: 0xf06747 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [Cypress: Config Manager]
 4: 0x11182e5  [Cypress: Config Manager]
 5: 0x111[887](https://github.com/Pecancy/next-crm/actions/runs/12647808171/job/35240890452#step:5:888)4 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [Cypress: Config Manager]
 6: 0x112f764 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*) [Cypress: Config Manager]
 7: 0x112ff7c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [Cypress: Config Manager]
 8: 0x11320da v8::internal::Heap::HandleGCRequest() [Cypress: Config Manager]
 9: 0x109d747 v8::internal::StackGuard::HandleInterrupts() [Cypress: Config Manager]
10: 0x153fe9a v8::internal::Runtime_StackGuard(int, unsigned long*, v8::internal::Isolate*) [Cypress: Config Manager]
11: 0x7fc84f4d9ef6
@MikeMcC399
Copy link
Collaborator

@AlonMiz

Cypress does not yet support Next.js 15 for Component Testing. It is planned for Cypress 14.x which has not yet been released.

See https://docs.cypress.io/app/component-testing/get-started#Supported-Frameworks for currently supported frameworks.

This is not an issue for cypress-io/github-action and cannot be resolved here in this repo.

I suggest to wait for the Cypress 14 release and if you still have a problem, then you can report this in https://github.com/cypress-io/cypress/issues

@MikeMcC399 MikeMcC399 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2025
@MikeMcC399 MikeMcC399 added the wontfix This will not be worked on label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants