Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Very high memory/CPU usage with few windows open #6588

Open
5 of 6 tasks
a666 opened this issue Jan 16, 2025 · 2 comments
Open
5 of 6 tasks

[Bug]: Very high memory/CPU usage with few windows open #6588

a666 opened this issue Jan 16, 2025 · 2 comments

Comments

@a666
Copy link

a666 commented Jan 16, 2025

Guidelines

  • I have encountered this bug in the latest release of FreeTube.
  • I have encountered this bug in the official downloads of FreeTube.
  • I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • This issue contains only one bug.

Describe the bug

  1. Open freetube
  2. Use middle click to open a few windows
  3. After a while, while sometimes doing nothing, CPU/memory usage just explodes, machine tries to compete with room radiator and fans channel their inner helicopter.

Example:
three freetube windows open, no playback, memory consumption almost jumped to 6.5GB before I could kill the process
image

Issue happens in both Windows(install) and Linux(flathub and AUR).

Expected Behavior

Random high CPU and memory usage ballooning for just 3 windows and no playback?
Seems rather extreme (even for an electron app).

Issue Labels

inconsistent behavior

FreeTube Version

v0.22.1

Operating System Version

Windows 10 Enterprise 22H2 19045.5247, Arch Linux kernel 6.6.70-1-lts

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

@a666 a666 added the bug Something isn't working label Jan 16, 2025
@github-project-automation github-project-automation bot moved this to To assign in Bug Reports Jan 16, 2025
@absidue
Copy link
Member

absidue commented Jan 16, 2025

Could you please clarify the reproduction steps, currently they are a bit vague.

  • "Use middle click to open a few windows": What are you middle clicking on?
  • "After a while, sometimes doing nothing: How long? Did you do anything else after opening the windows or did you just wait for it to happen, if you did anything what exactly did you do?

Do you have a lot of user data e.g. subscriptions, watch history and playlists?

Can you reproduce the issue on the latest nightly build on Windows (the flatpak version doesn't have nightlies)?

@a666
Copy link
Author

a666 commented Jan 16, 2025

  • "Use middle click to open a few windows": What are you middle clicking on?

I'm middle clicking on the videos either the image or the video name, generally from the subscriptions page.
Sometimes I middle-click on the subscriptions link to check if there's anything new, then middle click on anything interesting.

  • "After a while, sometimes doing nothing: How long?

Unsure, I open freetube pretty much right away once I log in, and I notice the memory issues once the computer begins to crawl and beg for mercy.
I'll try to get better data on this (current freetube process started around 2025-01-16 17:30 UTC, memory usage is ~1400MB with 4 videos open alongside the subscription page, CPU usage ~5% without any playback or loading).

  • Did you do anything else after opening the windows or did you just wait for it to happen, if you did anything what exactly did you do?

Pretty much just watch the videos, through some times I open them and leave them hanging without playback for some time.

Do you have a lot of user data e.g. subscriptions, watch history and playlists?

The "All channels" profile has 521 channels, there's 9 subchannels.
I have only one playlist named "Favorites" with 746 videos.
history.db is 30MB in the windows machine and 14-18MB in the linux ones.

In all machines, both playlists.db and profiles.db in Appdata/roaming/freetube and .config/freetube are symlinks to files being synchronized by syncthing.

Can you reproduce the issue on the latest nightly build on Windows (the flatpak version doesn't have nightlies)?

On it, I'll report back one I get a reliable connection to the windows machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To assign
Development

No branches or pull requests

2 participants