youtube-music icon indicating copy to clipboard operation
youtube-music copied to clipboard

app sucking too much performance in the background, even when not being used (or closed)

Open b-init opened this issue 3 years ago • 10 comments

image

Why is it sucking so much of my CPU in the background even after it's closed? It's on an i5-8265U processor

b-init avatar Apr 08 '21 11:04 b-init

I think this is because if you have this app in background, the page is hidden, but it needs to stay opened to continue playing music, as in the web version.

For project DEVs A beautiful thing to be implemented can be close the page (don't hide it) if not playing some music for (ex.) five minutes. (@th-ch)

Bellisario avatar Apr 08 '21 14:04 Bellisario

I've been running it for hours/days straight with no problem. [Windows 10 build 19042]

@Yeetus3141

  • what OS are you running?
  • what plugins do you have enabled?
  • is it always like that?

Araxeus avatar Apr 12 '21 18:04 Araxeus

I've been running it for hours/days straight with no problem. [Windows 10 build 19042]

@Yeetus3141

  • what OS are you running?
  • what plugins do you have enabled?
  • is it always like that?

I'm running Windows 10 (20H2) I've attached a screenshot of enabled plugins. That happens fairly rarely and I have not found a way to replicate it yet.

image

b-init avatar Apr 12 '21 18:04 b-init

I'm also using all those plugins except 'Discord' but I don't actually think its related to that

Upcoming dependencies update might solve some obscure bugs\

Hopefully it doesn't happen again.

Araxeus avatar Apr 12 '21 19:04 Araxeus

Hey @Yeetus3141, thanks for the feedback! I will try to have a look but Electron has an history of consuming many resources, especially when the app is left open, it might explain your situation - these types of bugs depend on many things (e.g. the OS but not only) so it might be hard to reproduce though.

Electron is updated as much as possible in the project, last time I checked the only blocker to go to the next major version was the broken downloader (FFmpeg issue to be exact).

th-ch avatar Apr 13 '21 20:04 th-ch

I found a similar problem on Ubuntu 18.04... Screenshot_2021-06-03_21-50-34 3GB of memory

cpiber avatar Jun 04 '21 06:06 cpiber

Windows 10 Home 1903 CPU: i5-9300H RAM: 24GB QQ截图20220216152452

SkyD666 avatar Feb 16 '22 07:02 SkyD666

After I disabled all plugins, the problem was solved.

SkyD666 avatar Feb 16 '22 07:02 SkyD666

I've tried replicating this, left youtube music open for 3 days

cpu&ram&disk usage was totally normal

(worth noting I tested with the new version v1.16.0 which has yet to be released)

Araxeus avatar Feb 16 '22 17:02 Araxeus

can you try using the latest version? https://github.com/th-ch/youtube-music/releases/tag/v1.16.0

Araxeus avatar Feb 20 '22 20:02 Araxeus