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.

having retainers (possible memoryleak) when rendering multiple root elements

See original GitHub issue

Hi there

I’m trying out uhtml and i’ve ran into a specific issue (retainers) when rendering multiple root elements like: html`<div>1</div><div>2</div> it doesn’t happen when using an enclosed parent like: html`<div><div>1</div><div>2</div></div>

repro here:

https://github.com/fopsdev/retainers_in_uhtml_rendering

(i’ve also included a mp4 showing how i go after retainers)

Thanks for any enlightment 😃

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
WebReflectioncommented, Jun 13, 2022

The problem is that both PasswordAutofillAgent and AutofillAgent keep forms and input elements references.

yup, the problem is similar here with “static fragments” when these are referenced, even if the content they hook doesn’t exist anymore … but again, once you have these de-referenced, nothing like that bug should happen.

1reaction
fopsdevcommented, Jun 13, 2022

let’s see. will start porting one of the projects tomorrow so i can compare.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue memory leak when rendered components are removed
I have tried locating the issue with heap snapshots but it only shows a child component as retainer. I cannot locate what is...
Read more >
MemLab: An open source framework for finding JavaScript ...
MemLab traverses the heap and generates retainer traces for each leaked object. A retainer trace is an object reference chain from the GC...
Read more >
Temperature check on possible memory leak in Holistic JS ...
Hello! I'm using the Holistic web solution in a WebRTC streaming application. We've occasionally seen Holistic processing crash in a way ...
Read more >
Fixing Memory Leaks in AngularJS and other ... - dwmkerr.com
A page it is rendering may no longer need as much memory as it needed before, but that doesn't mean the browser needs...
Read more >
4 Types of Memory Leaks in JavaScript and How to Get Rid Of ...
In essence, memory leaks can be defined as memory that is not required by an application anymore that for some reason is not...
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