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
Memory grow with rollup 3.19 #4904
Comments
There was additional analysis added in 3.19.0 that might explain a moderate increase in memory consumption. |
Thanks for the reply, but I think the additional analysis take no less than 15% extra memory. Can we get a chance to see if we can optimize it? I am kind of disappointed whenI found out 2GB is not enough for my “demo projects” |
I also have what I believe is a related issue with building all my Nuxt projects (Related issue: unjs/nitro#1063) |
A maximum call stack exceeded error looks like an actual bug in Rollup. If we can have a reproduction for the issue, even a complicated one, then I can have a look. |
Hey @lukastaegert in case you're still looking for a reproduction there's this issue over on nuxt nuxt/nuxt#19824 containing a repro + CI logs |
I am looking for a reproduction for “Maximum call stack size exceeded”, not “JavaScript heap out of memory”. Those are very different problems. |
Me too, I restore to "rollup 3.10.0" that resolve this problems |
does this solved with the latest version? |
nuxt/nuxt#19783 (comment) @lukastaegert Looks like a nuxt user was able to figure out a repo in his comment for the callstack error. Found it after digging into myself why I was getting this issue and seems to point to rollup 3.19 as with rollup at 3.18, my build succeeds with no error. |
I believe I am experiening a similar/related issue sharing this log in hope it might help Edit: The issue is NOT RELATED TO ROLLUP! I had an issue with another library (@vueuse/core) where useTimeago caused it....instead using formattedtimeago.
|
From what I can tell, the issue seems to be caused by #4892. Here are two stackblitzes:
You can update the resolution to just 3.19.0 to reproduce the issue, if that's helpful to narrow down the issue. |
yes, you are right |
I created #4938 to improve the situation, feedback welcome. |
This issue has been resolved via #4938 as part of rollup@3.20.3-0. Note that this is a pre-release, so to test it, you need to install Rollup via |
This issue has been resolved via #4938 as part of rollup@3.20.3. You can test it via |
Rollup Version
3.19.1
Operating System (or Browser)
Ubuntu 22.04 (WSL)
Node Version (if applicable)
18.15.0
Link To Reproduction
vuepress-theme-hope/vuepress-theme-hope#2906
(vuepress-theme-hope/vuepress-theme-hope@f1beda0 is working fine)
Expected Behaviour
I am expecting Rollup can build.
All project using vite (which relies on rollup) run out of memory
I believe rollup have memory leak because webpack actually takes more memory comparing with vite, but all vite ci blows with rollup changing from 3.18.0 to 3.19.1.
If rollup itself runs well all time, perhaps vite can not handle rollup change? Anyway, I hope someone can check why the memory is increasing in my case (At least > 300MB with the version change)
Actual Behaviour
Run out of memory.
The text was updated successfully, but these errors were encountered: