Basilisk 2022.08.06 - Memory Leak
Moderator: Basilisk-Dev
Basilisk 2022.08.06 - Memory Leak
Hi Folks,
I have discovered a memory leak in Basilisk for Linux.
Not exactly sure why, but when you open the link below, the ram usage skyrockets and the browser freezes.
https://waxisdead.com/shop/wax-is-dead-ceramic-foam/
Cheers,
your (fat)boy
I have discovered a memory leak in Basilisk for Linux.
Not exactly sure why, but when you open the link below, the ram usage skyrockets and the browser freezes.
https://waxisdead.com/shop/wax-is-dead-ceramic-foam/
Cheers,
your (fat)boy
Systemd Free - MX Linux, Antix Linux & Artix Linux
Re: Basilisk 2022.08.06 - Memory Leak
This is not a memory leak.
This is a well-known problem in the mutation observer.
This is a well-known problem in the mutation observer.
Re: Basilisk 2022.08.06 - Memory Leak
If it is what I think it is, then it's not a problem in the mutation observer code itself other than the fact that it doesn't forcefully terminate bad recursive use of mutation observers (website issue).
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Basilisk 2022.08.06 - Memory Leak
https://waxisdead.com/wp-content/cache/ ... 1659706780
Code: Select all
var targetMutation=$target[0],
config={attributes:!0,childList:!0,subtree:!0};
var callbackMutation=function(mutationsList,observer){for(var mutation of mutationsList){if('attributes'===mutation.type){$target[0].style.height='auto'}}};
var observer=new MutationObserver(callbackMutation);
observer.observe(targetMutation,config);
- Basilisk-Dev
- Lunatic
- Posts: 321
- Joined: 2022-03-23, 16:41
- Location: Chamber of Secrets
- Contact:
Re: Basilisk 2022.08.06 - Memory Leak
Every now and then you might meet a site owner that cares about supporting Pale Moon (I have met two), but vast majority of websites have made it clear that they don't care about us at all. They usually only care about Chromium, Firefox, and Safari.
Re: Basilisk 2022.08.06 - Memory Leak
If you feel like providing code to dodge it in the browser itself, then by all means, go ahead. it should still throw a console warning at the very least to inform webmasters that they are Doing It Wrong™. if you don't feel that you're able to get this into the Observer C++ code, then a front-end patch would also work. In fact, I'd prefer an easy to update/maintain bit of code for this over digging into the DOM guts.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Basilisk 2022.08.06 - Memory Leak
Yes, I looked at the sources. This problem is solved in FF, starting from version 63. There are many changes in the layout/style folder. Maybe later I can help a bit... not now.
Re: Basilisk 2022.08.06 - Memory Leak
I see Pale Moon show similar behaviour to Basilisk? It also has a memory leak on the same website?
Systemd Free - MX Linux, Antix Linux & Artix Linux