Possible Memory leak

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
dtoxic
Moon lover
Moon lover
Posts: 94
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Possible Memory leak

Unread post by dtoxic » 2019-09-19, 14:12

Sorry if posted in the wrong section

can some one confirm if there is a memory leak with this site https://windowsreport.com/lightweight-email-clients/

memory usage constantly going up until pale moon cant be used at all.

Windows 7 SP1 x64 with PM 28.7.1 x64

And the installed extensions
about:config Buttons 1.1.3.1-signed true
Add Bookmark Helper 1.0.6 true
Cookies Exterminator 2.9.5 true
File and Folder Shortcuts 1.4.1-signed.1-signed true
Menu Icons Plus 3.2.1-signed.1-signed true
Menu Wizard 5.11 true
Modern Download Manager 0.2.2 true
Pale Moon Commander 3.0.1 true
Password Backup Tool 1.2.1 true
Popup Blocker Ultimate 8.1 true
S3.Google Translator 5.35 true
Session Manager 0.8.1.13 true
Super Start Speed Dial 8.0.1 true
uBlock Origin 1.16.4.11 true
uBlock Origin Updater 1.6.6 true
Werewolf 1.1 true
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
therube
Board Warrior
Board Warrior
Posts: 1651
Joined: 2018-06-08, 17:02

Re: Possible Memory leak

Unread post by therube » 2019-09-19, 16:27

memory usage constantly going up
Up to what?
And what is PM CPU usage at these times?

Does PM actually crash?

User avatar
dtoxic
Moon lover
Moon lover
Posts: 94
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: Possible Memory leak

Unread post by dtoxic » 2019-09-19, 16:32

therube wrote:
2019-09-19, 16:27
memory usage constantly going up
Up to what?
And what is PM CPU usage at these times?

Does PM actually crash?
up to as along there is memory [16gb on my system] as to if it crashes i don't know, i force terminate it trough task manager because it becomes unresponsive, cpu usage in task manager is 13% nothing unusual i think
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
Nigaikaze
Board Warrior
Board Warrior
Posts: 1322
Joined: 2014-02-02, 22:15
Location: Chicagoland

Re: Possible Memory leak

Unread post by Nigaikaze » 2019-09-19, 17:09

dtoxic wrote:
2019-09-19, 14:12
memory usage constantly going up until pale moon cant be used at all.
Does it still happen when you access that site in Pale Moon's safe mode (Help > Restart in Safe Mode)?

When you get to the point where Pale Moon is not responding, see if you can use WhatIsHang to get further details as per the info in this post:

viewtopic.php?f=3&t=49
Nichi nichi kore ko jitsu = Every day is a good day.

User avatar
dtoxic
Moon lover
Moon lover
Posts: 94
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: Possible Memory leak

Unread post by dtoxic » 2019-09-19, 17:38

Nigaikaze wrote:
2019-09-19, 17:09
dtoxic wrote:
2019-09-19, 14:12
memory usage constantly going up until pale moon cant be used at all.
Does it still happen when you access that site in Pale Moon's safe mode (Help > Restart in Safe Mode)?

When you get to the point where Pale Moon is not responding, see if you can use WhatIsHang to get further details as per the info in this post:

viewtopic.php?f=3&t=49
Here you go
Hang report for C:\Program Files\PaleMoon\Bin\Palemoon\Palemoon.exe
Generated by using WhatIsHang on 19/9/2019 7:37:55 PM
Web site: http://www.nirsoft.net


Remarks:
* The program probably hangs because there is an infinite loop, very long loop, or recursive calls.


Strings found in the stack:
stMessagP°i
general.smoothScroll.currentVelocityWeighting


Modules found in the stack:
C:\Program Files\PaleMoon\Bin\Palemoon\xul.dll , Mozilla Foundation , Pale,
C:\Program Files\PaleMoon\Bin\Palemoon\nss3.dll , Mozilla Foundation , Pale,
C:\windows\system32\MSCTF.dll , Microsoft Corporation , Microsoft® Windows® Operating System, MSCTF Server DLL
C:\Program Files\PaleMoon\Bin\Palemoon\mozglue.dll , Mozilla Foundation , Pale,
C:\Program Files\PaleMoon\Bin\Palemoon\ucrtbase.DLL , Microsoft Corporation , Microsoft® Windows® Operating System, Microsoft® C Runtime Library
C:\windows\system32\KERNELBASE.dll , Microsoft Corporation , Microsoft® Windows® Operating System, Windows NT BASE API Client DLL
Will i lose the settings if i use safe mode? meaning palemoon settings and extensions etc?
i could try with a clean PM portable see what happens
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: 2017-06-06, 07:38

Re: Possible Memory leak

Unread post by adesh » 2019-09-19, 17:43

You'll not lose any settings. Testing with portable version is also a good option.

User avatar
Nigaikaze
Board Warrior
Board Warrior
Posts: 1322
Joined: 2014-02-02, 22:15
Location: Chicagoland

Re: Possible Memory leak

Unread post by Nigaikaze » 2019-09-19, 17:45

dtoxic wrote:
2019-09-19, 17:38
Will i lose the settings if i use safe mode? meaning palemoon settings and extensions etc?
When you restart in Safe Mode, you will be asked if you want to make any of the Safe Mode changes permanent. As long as you do not choose to do that, you will not lose anything.
Nichi nichi kore ko jitsu = Every day is a good day.

User avatar
dtoxic
Moon lover
Moon lover
Posts: 94
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: Possible Memory leak

Unread post by dtoxic » 2019-09-19, 17:49

Nigaikaze wrote:
2019-09-19, 17:45
dtoxic wrote:
2019-09-19, 17:38
Will i lose the settings if i use safe mode? meaning palemoon settings and extensions etc?
When you restart in Safe Mode, you will be asked if you want to make any of the Safe Mode changes permanent. As long as you do not choose to do that, you will not lose anything.
adesh wrote:
2019-09-19, 17:43
You'll not lose any settings. Testing with portable version is also a good option.
Alright so i just did a test with a Clean PM portable and the safe mode, same story with a difference it needs a lot more time to reach high memory usage[stoped it at around 2.5gb did not see the reason to continue], on the clean PM portable only that page and start page where open, no extensions or anything
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
Nigaikaze
Board Warrior
Board Warrior
Posts: 1322
Joined: 2014-02-02, 22:15
Location: Chicagoland

Re: Possible Memory leak

Unread post by Nigaikaze » 2019-09-19, 18:48

How long does it take before your Pale Moon becomes unresponsive? And are you doing any other navigation on that windowsreport.com site, or just letting that specfic URL stay open in a window/tab?

I'm not able to replicate this (yet). Yes, I see a clean new PM portable on that URL using a royal metric boatload more RAM than my own installation of PM, but even with both of them having that URL open I only used about 5.5 gig out of 16 gig of RAM. And these are PM 28.7.1 x64 versions on x64 Win7.
Nichi nichi kore ko jitsu = Every day is a good day.

User avatar
dtoxic
Moon lover
Moon lover
Posts: 94
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: Possible Memory leak

Unread post by dtoxic » 2019-09-19, 19:02

Nigaikaze wrote:
2019-09-19, 18:48
How long does it take before your Pale Moon becomes unresponsive? And are you doing any other navigation on that windowsreport.com site, or just letting that specfic URL stay open in a window/tab?

I'm not able to replicate this (yet). Yes, I see a clean new PM portable on that URL using a royal metric boatload more RAM than my own installation of PM, but even with both of them having that URL open I only used about 5.5 gig out of 16 gig of RAM. And these are PM 28.7.1 x64 versions on x64 Win7.
Hmmm can tell for sure at around 3-4gb i notice slowdowns and occasional hangs for a couple of seconds [10-15s] experienced a complete hang at around 6gb maybe 7gb, was not paying attention at the time.
just so we are clear i don't need that site at all just reporting here cause thought it my be a bug with PM, probably is a badly optimized site would be my guess
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2409
Joined: 2012-08-19, 20:32

Re: Possible Memory leak

Unread post by back2themoon » 2019-09-19, 19:14

No leak here.

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 943
Joined: 2017-12-14, 12:59

Re: Possible Memory leak

Unread post by gepus » 2019-09-19, 20:01

Can't confirm. Tested with a vanilla install of Pale Moon 28.7.1 portable running in PB mode on Win7 x64.
Total memory consumption varies between 1.44 - 1.48 GB wherefrom over 1 GB is used by the OS.

With my regular install (active ad blocker/uBlock0) memory consumption is lower.

doofy
Astronaut
Astronaut
Posts: 650
Joined: 2017-08-14, 23:43

Re: Possible Memory leak

Unread post by doofy » 2019-09-19, 21:31

Can't reproduce - either on my standard install, or on vanilla portable.
In both cases, 28.7.1 on win7 pro 64 bit.

Sure, the site runs more scripts than it needs to - but that's a given - and memory usage drifts up a bit, but it's not significant. And closing the site drops the RAM back down.
On my primary install, I gave the site full focus for 68 minutes and walked away. Closed site, opened portable, gave it 40 minutes. Closed portable and memory usage is currently showing slightly less than it was 2 hours ago.

User avatar
dtoxic
Moon lover
Moon lover
Posts: 94
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: Possible Memory leak

Unread post by dtoxic » 2019-09-19, 21:33

doofy wrote:
2019-09-19, 21:31
Can't reproduce - either on my standard install, or on vanilla portable.
In both cases, 28.7.1 on win7 pro 64 bit.

Sure, the site runs more scripts than it needs to - but that's a given - and memory usage drifts up a bit, but it's not significant. And closing the site drops the RAM back down.
On my primary install, I gave the site full focus for 68 minutes and walked away. Closed site, opened portable, gave it 40 minutes. Closed portable and memory usage is currently showing slightly less than it was 2 hours ago.
Yeap once the ofending site is closed memory going up stops and starts slowly to fall down, still doing some testing but i thing its these heavy script sites that are to blame
Windows 7 SP1 X64
Windows 10 LTSC X64

doofy
Astronaut
Astronaut
Posts: 650
Joined: 2017-08-14, 23:43

Re: Possible Memory leak

Unread post by doofy » 2019-09-19, 21:55

My definition of "leak" is when the browser don't give the RAM back when a problem site is closed.
Dunno if that's the techie definition, but it works for me.

If you are having probs with script heavy sites, then consider uMatrix (Github) or eMatrix (PM addons site) and disable 3rd party scripts by default.
Sites will break and you'll need to unbreak as and when, but it makes the interweb a whole lot more useable.

User avatar
Cassette
Lunatic
Lunatic
Posts: 395
Joined: 2015-05-08, 14:30
Location: Wichita, KS

Re: Possible Memory leak

Unread post by Cassette » 2019-09-20, 01:58

I'm able to reproduce this with a vanilla profile on Pale Moon portable. Not only does the RAM usage increase over time, the CPU usage is unusually high. On my regular profile it doesn't do it. I left the page open for over an hour and RAM usage was stable. I suspect my ad blocker is stopping whatever nonsense is causing the issue.

Edit: Scratch the suspicion. I disabled only my ad blocker (ublock Origin) and the issue immediately started up on refresh. It's just an issue of figuring out which filter list is stopping it.

User avatar
dtoxic
Moon lover
Moon lover
Posts: 94
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: Possible Memory leak

Unread post by dtoxic » 2019-09-20, 08:54

Cassette wrote:
2019-09-20, 01:58
I'm able to reproduce this with a vanilla profile on Pale Moon portable. Not only does the RAM usage increase over time, the CPU usage is unusually high. On my regular profile it doesn't do it. I left the page open for over an hour and RAM usage was stable. I suspect my ad blocker is stopping whatever nonsense is causing the issue.

Edit: Scratch the suspicion. I disabled only my ad blocker (ublock Origin) and the issue immediately started up on refresh. It's just an issue of figuring out which filter list is stopping it.
Thx for the info, will se what list causes the problem if any, i usually have them all enabled so it's a bit strange it wont stop it on my setup.
Maybe have some custom settings setup in ublock?
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
Cassette
Lunatic
Lunatic
Posts: 395
Joined: 2015-05-08, 14:30
Location: Wichita, KS

Re: Possible Memory leak

Unread post by Cassette » 2019-09-20, 09:51

It looks like it might be a filter in "Hello, Goodbye!" that's making the difference. Specifically, it's blocking consensu.org. Try creating this filter and see what happens.

Code: Select all

||*.consensu.org/*

User avatar
dtoxic
Moon lover
Moon lover
Posts: 94
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: Possible Memory leak

Unread post by dtoxic » 2019-09-20, 10:11

Cassette wrote:
2019-09-20, 09:51
It looks like it might be a filter in "Hello, Goodbye!" that's making the difference. Specifically, it's blocking consensu.org. Try creating this filter and see what happens.

Code: Select all

||*.consensu.org/*
Well thank you Mr. Wizard :) bingo memory is stable at acceptable 250-300 mb, a few mb's going up and down but that is normal, no 4-5-6gb for a single page :D

thx again you got the right one! :thumbup:
Windows 7 SP1 X64
Windows 10 LTSC X64

The Aussie

Re: Possible Memory leak

Unread post by The Aussie » 2019-11-24, 23:20

I have this same problem on Win 7 32bit, when I first started to use PM about 12 months ago it seemed ok then after an update memory use went thru the roof, am currently on 28.7.1 and scared to update further in case it gets worse, how do you create the script you mentioned, here is a screen shot from task manager showing PM maxing out my memory
Attachments
Palemoon.jpg

Locked