question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module versions (please complete the following information):

  • vue: 2.x
  • vue-i18n: 8.24.3

Reproduction Link https://github.com/PeterAlfredLee/vue_i18n_issue

To Reproduce

  1. Clone the project
  2. yarn && yarn serve
  3. Click show and destroy button
  4. Take memory snapshot, you can see there are more than one VueComponent

Expected behavior It should be just one VueComponent, because other VueComponent should be destroyed.

Additional context This issue is relate to #1151. After reverse #1151, everything works fine. Also, I can’t reproduce the leaking that #1044 describe.

conclusion I think we should reverse #1151. WDYT?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kazuponcommented, Apr 28, 2021

@PeterAlfredLee Thanks for your many and usual contributions. ✨

Do you have any work around solutions?

For the memory leak, unfortunately, I don’t have a workaround idea at the moment due to the prototyping of intlify devtools and vue-i18n-next more improvements (e.g. more type safe). 😞

now, I’m going to revert #1151 to avoid the current memory leaks issue.

1reaction
kazuponcommented, Apr 23, 2021

@PeterAlfredLee Thank you for your reporting! Related issue https://github.com/kazupon/vue-i18n/issues/1190

We need to work around the memory leak in another way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory leak - Wikipedia
In computer science, a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations in...
Read more >
What is Memory Leak? How can we avoid? - GeeksforGeeks
Memory leak occurs when programmers create a memory in heap and forget to delete it. The consequences of memory leak is that it...
Read more >
Definition of memory leak - PCMag
When memory is allocated, but not deallocated, a memory leak occurs (the memory has leaked out of the computer). If too many memory...
Read more >
Memory leak - OWASP Foundation
A memory leak is an unintentional form of memory consumption whereby the developer fails to free an allocated block of memory when no...
Read more >
Find a memory leak - Windows drivers - Microsoft Learn
A memory leak occurs when a process allocates memory from the paged or nonpaged pools, but doesn't free the memory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found