i18n icon indicating copy to clipboard operation
i18n copied to clipboard

Memory leak

Open Machine-Maker opened this issue 4 years ago • 8 comments

Version

nuxt-i18n: 6.18.0 nuxt: 2.14.12

Nuxt configuration

mode:

  • [x] universal
  • [ ] spa

Nuxt-i18n configuration

no configuration (aka whatever the defaults are)

Steps to reproduce

  1. yarn create nuxt-app <name>

  2. (settings used) image

  3. Added nuxt-i18n to buildModules in nuxt.config.js

  4. yarn dev

  5. Open whatever resource manager (task manager, system monitor, etc) and find the right node task

  6. navigate to localhost:3000 and refresh a bunch and watch the memory go up.

Note: I tried it w/o vuetify and it doesn't happen, and it doesn't happen with just vuetify, only when both are present.

EDIT: Use this repo to reproduce it.

What is Expected?

node shouldn't run out of memory.

What is actually happening?

NodeJS crash

Machine-Maker avatar Jan 23 '21 03:01 Machine-Maker

Ok, so it turns out that vuetify only speeds up the process significantly. I re-did the process w/o vuetify and added another page after project creation, then I just put location.reload() in the mounted() hook and let it run for a while, and the leak was still there.

Machine-Maker avatar Jan 23 '21 07:01 Machine-Maker

Same here

Br4x avatar Mar 05 '21 19:03 Br4x

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 02 '21 17:06 stale[bot]

Hello,

Can't reproduce, also it's 404:

EDIT: Use this repo to reproduce it.

Thanks!

divine avatar Jun 26 '21 17:06 divine

Update: It seems to happen in combination with vue-i18n in dev-mode. In prod-mode I can't reproduce it either. Still investigating, will report if I can reproduce again.

leonardlin avatar Oct 11 '21 21:10 leonardlin

I need to retract my reproduction-post (deleted). It was only reproducible in dev-mode and not in prod-mode. I found the issue somewhere else.

leonardlin avatar Oct 12 '21 05:10 leonardlin

Yeah, I knew it only happened in dev mode

Machine-Maker avatar Oct 14 '21 17:10 Machine-Maker

For me, the heap usage reduced by 50% when I just dropped those lines from nuxt.config.js.

    defaultLocale: 'ar',
    defaultDirection: 'rtl'

Abdulrahmanh995 avatar Oct 20 '21 12:10 Abdulrahmanh995