mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Application log window memory usage is unlimited #7487
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#7487
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zeule on GitHub (Jul 6, 2018).
qBittorrent version and Operating System
master, Linux/amd64
If on linux, libtorrent and Qt version
master, 5.11.1
What is the problem
There is no limit for the log messages, therefore qBt can eat unlimited amount of memory. Found it with 31GiB used after a few weeks (log full of network change messages).
What is the expected behavior
Unimportant messages like "qBittorrent is successfully listening on interface %1 port: %2/%3" are not kept forever.
Steps to reproduce
Leave qBt working in a changing environment.
@glassez commented on GitHub (Jul 6, 2018):
Why not just limit it and drop oldest messages?
Can't it become too long having only "important" messages?
@zeule commented on GitHub (Jul 6, 2018):
I would submit a PR if I knew the answers, but I can't decide.
@glassez commented on GitHub (Jul 6, 2018):
@Chocobo1, @thalieht, @sledgehammer999, what do you say?
@FranciscoPombal commented on GitHub (Jul 6, 2018):
@zeule older messages could be saved to the log instead of entirely discarded, since qbittorrent already has some basic logrotating functionality built-in.
Also, I assume this problem is only present on the GUI version?
@zeule commented on GitHub (Jul 6, 2018):
All the messages are copied to the log file already, AFAIK.
@ghost commented on GitHub (Jul 7, 2018):
@Chocobo1, @thalieht, @sledgehammer999, @FranciscoPombal and @zeule.
In my opinion each day should have a separate file (ex: qbittorrent-06_07_2018, qbittorrent-07_07_2018) and about the option to delete older logs (changing the default value from 1 month to 1 week) could be like this example:
We have the logs of one week(qbittorrent-01_07_2018 to 07_07_2018) and tomorrow the log of the day 01_07 should be automatically discarded because it's a new week.
Something like that.
@Piccirello commented on GitHub (Aug 14, 2019):
I think we should limit the log lines to a high value (is 10000 too high?). That way it's not likely to be a burden but also not unbounded.
@sledgehammer999 commented on GitHub (Aug 15, 2019):
IMO, since those are logged to a file then a limit should exist in the widget view. Now, if the user has disabled logging to file, an bigger limit should exist. (or maybe filter based on logline importance).
@xavier2k6 commented on GitHub (Mar 18, 2025):
This ticket has been closed.
Closure Reason: being "out-of-date", and thus either most likely resolved in recent versions or no longer applicable.
If you experience the reported problem or similar in the latest version, please open a new issue report with the requested information in the issue template.
Due to the changes made to the qBittorrent code and its dependencies over time, the exact cause of your problem could be totally different than the original one, despite the visible symptoms of the bug being similar.
Thus, providing relevant updated information is crucial to find and fix the root cause of a recurrent problem or regression.
A new issue report with relevant updated data gathered from the latest version is preferable to necroing an old report with a comment like "still happens in version x.y.z", even if you think the bug is the same, or suspect of a regression.
Thank you for your contribution(s).