Memory leak
See original GitHub issueModule versions (please complete the following information):
vue
: 2.xvue-i18n
: 8.24.3
Reproduction Link https://github.com/PeterAlfredLee/vue_i18n_issue
To Reproduce
- Clone the project
- yarn && yarn serve
- Click
show
anddestroy
button - 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:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@PeterAlfredLee Thanks for your many and usual contributions. ✨
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.
@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.