Bug 429433 - Falkon tends to bind large memory usage over time
Summary: Falkon tends to bind large memory usage over time
Status: CONFIRMED
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: 3.1.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-21 09:18 UTC by ivan.planinar
Modified: 2021-07-30 21:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivan.planinar 2020-11-21 09:18:33 UTC
SUMMARY

Over time Falkon uses more and more memory, without ever releasing it. Closing the tabs will close QWEProcesses but not make the main program free some memory.

What started with just ~120mb, after hours of usage Falkon is now allocating over 2gb of ram!

STEPS TO REPRODUCE
1. Just work with Falkon for hours without closing it. Check the memory.
2. Notice the main program will never release the memory, no matter how many tabs you close.

OBSERVED RESULT

Memory leak or simply a build up over time. It's possible that Nvidia hardware acceleration makes Falkon use more memory. However, in my findings it's not more than 50-100mb extra ram being used.

EXPECTED RESULT

Memory optimization, releasing RAM allocation. Just as an example, Firefox uses around 250-500mb all the time. Compared to 2.1GB and growing of Falkon, it's WAY above normal.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1
Kernel Version: 5.9.9-arch1-1
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31,4 GiB of RAM
Graphics Processor: GeForce GTX 1060 6GB/PCIe/SSE2
Comment 1 Michael Mounteney 2021-01-02 01:09:29 UTC
I have also observed this.
Comment 2 Juraj 2021-03-09 18:42:07 UTC
This is a known behaviour.
Sadly I do not know the fix, it requires deeper investigation.
Comment 3 Jesse McClure 2021-07-30 21:45:36 UTC
FYI, we're tracking what is likely the same issue here:

https://bbs.archlinux.org/viewtopic.php?id=268398

In that thread you can find a very simple tiny bit of code that should replicate the issue.

I'd be curious too if Falkon users see worse symptoms of this problem on wayland than on X11.