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

gulp test-coverage ends with an error #11763

Closed
piotrj-rtbh opened this issue Jun 11, 2024 · 1 comment · Fixed by #11792
Closed

gulp test-coverage ends with an error #11763

piotrj-rtbh opened this issue Jun 11, 2024 · 1 comment · Fixed by #11792

Comments

@piotrj-rtbh
Copy link
Contributor

Type of issue

gulp fatal error

Description

gulp test-coverage ends with
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Steps to reproduce

Open master branch, do npm ci and then gulp test-coverage.

Test page

Expected results

No errors at the end

Actual results

[12:38:02] Using gulpfile ~/projects/prebid/Prebid.js/gulpfile.js
[12:38:02] Starting 'test-coverage'...
[12:38:02] Starting 'clean'...
[12:38:02] Finished 'clean' after 129 ms
[12:38:02] Starting 'testCoverage'...
Starting chunk 1 of 1: From test/spec/AnalyticsAdapter_spec.js to test/spec/video_spec.js

START:
Webpack bundling...
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

<--- Last few GCs --->

[116518:0x6f43c20]   130236 ms: Scavenge (reduce) 2039.3 (2084.0) -> 2038.7 (2084.3) MB, 6.4 / 0.0 ms  (average mu = 0.135, current mu = 0.122) allocation failure; 
[116518:0x6f43c20]   130324 ms: Scavenge (reduce) 2039.5 (2084.3) -> 2039.0 (2084.5) MB, 8.5 / 0.0 ms  (average mu = 0.135, current mu = 0.122) allocation failure; 
[116518:0x6f43c20]   130394 ms: Scavenge (reduce) 2039.7 (2084.5) -> 2039.2 (2084.8) MB, 8.8 / 0.0 ms  (average mu = 0.135, current mu = 0.122) allocation failure; 


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xb85bc0 node::Abort() [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
 2: 0xa94834  [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
 3: 0xd66d10 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
 4: 0xd670b7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
 5: 0xf447c5  [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
 6: 0xf456c8 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
 7: 0xf55bd3  [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
 8: 0xf56a48 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
 9: 0xf313ae v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
10: 0xf32777 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
11: 0xf1394a v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
12: 0x12d8caf v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
13: 0x1705b39  [/home/piotr/.nvm/versions/node/v18.18.2/bin/node]
[12:40:13] Finished 'testCoverage' after 2.19 min
[12:40:13] Finished 'test-coverage' after 2.19 min

Platform details

OS: Ubuntu 20.04.6 LTS
Node 18.18.2
NPM 9.8.1

Other information

@osazos
Copy link
Collaborator

osazos commented Jun 11, 2024

Hi, I use this:

NODE_OPTIONS="--max-old-space-size=8096" npx gulp test-coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants