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

Large Monorepo OOM Errors with Turbosnap Enabled #1029

Open
ChrisSargent opened this issue Aug 29, 2024 · 2 comments
Open

Large Monorepo OOM Errors with Turbosnap Enabled #1029

ChrisSargent opened this issue Aug 29, 2024 · 2 comments
Labels
bug Classification: Something isn't working CLI needs triage Tracking: Issue needs confirmation

Comments

@ChrisSargent
Copy link

ChrisSargent commented Aug 29, 2024

Bug report

We are seeing OOM errors during the Chromatic build process if we have Turbosnap enabled. In particular this seems to happen if there's any package.json change causing a change to the yarn.lock file.

We have tried setting max-old-space pretty high but it still happens.

Critical Logs are below, nothing interesting in the stacktrace.

Found 99 manifest/lockfile pairs to diff

<--- Last few GCs --->

[4282:0x6cc28b0]   194031 ms: Scavenge (reduce) 3924.3 (4142.0) -> 3923.9 (4142.3) MB, 5.7 / 0.0 ms  (average mu = 0.144, current mu = 0.066) allocation failure; 
[4282:0x6cc28b0]   194042 ms: Scavenge (reduce) 3924.8 (4142.3) -> 3924.4 (4142.5) MB, 5.2 / 0.0 ms  (average mu = 0.144, current mu = 0.066) allocation failure; 
[4282:0x6cc28b0]   194051 ms: Scavenge (reduce) 3925.2 (4142.5) -> 3924.8 (4142.8) MB, 4.8 / 0.0 ms  (average mu = 0.144, current mu = 0.066) allocation failure; 


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Aborted (core dumped)

This started happening after this upgrade (and we also started getting errors about the traceChanged option seemingly changed from expand to expanded.

Screenshot 2024-08-29 at 20 31 12
@ChrisSargent ChrisSargent added bug Classification: Something isn't working needs triage Tracking: Issue needs confirmation labels Aug 29, 2024
@ChrisSargent ChrisSargent changed the title Large Monorepp OOM Errors with Turbosnap Enabled Large Monorepo OOM Errors with Turbosnap Enabled Aug 29, 2024
@codykaup codykaup removed the Migrated label Oct 17, 2024
@cgbl-90
Copy link

cgbl-90 commented Nov 5, 2024

hello @ChrisSargent have you tried the workarounds described here: Why is my build failing with an Out of memory error?

@ChrisSargent
Copy link
Author

Hi @cgbl-90 - yes, we have 4gb of max old space size set in NODE_OPTIONS. We run in to the same issues locally on 16GB ram macbook pros.

FYI, we've also trying setting the max old space size much higher but it eventually dies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Classification: Something isn't working CLI needs triage Tracking: Issue needs confirmation
Projects
None yet
Development

No branches or pull requests

3 participants