Mastermindzh / tidal-hifi

The web version of Tidal running in electron with hifi support thanks to widevine.
Other
918 stars 53 forks source link

high CPU usage #345

Closed gerbrent closed 4 months ago

gerbrent commented 4 months ago

Seeing today for the first time very high CPU usage

image

Current settings:

image

system, version:

flatpak on NixOS

flatpak list: TIDAL Hi-Fi com.mastermindzh.tidal-hifi 5.8.0 stable system

Context

Hard to say what initiated this state. Tidal has been open for 2 or so days, paused mid-song currently (REM Out of Time for your curiosity..).

gerbrent commented 4 months ago

Is there anything i can do to gather more helpful info when/if this happen again? Launch w some type of logging or...?

Mastermindzh commented 4 months ago

Hey,

If you launch it from the terminal the log will be output into the terminal itself 😄. From what you show I can think of 1 or 2 things this can be:

  1. Your CPU is doing the rasterization (e.g. GPU rendering), which can take a quick hit if it opens
  2. Your system might be doing lots of file IO because of the notification/album update (this is fixed in 5.9.0

I'd be interested if the logging brings something.

BTW: looking at your load averages seems to indicate that this is an infrequent occurrence. Your load average for the last 15 minutes was just under 4 cores (or +- 45%) for the entire system, you ram usage is also quite high indicating that you've got quite a few things open so a load average of 4 isn't entirely weird.

gerbrent commented 4 months ago

great insights! Will launch 5.8.0 with terminal until 5.9.0 hits flathub.

gerbrent commented 4 months ago

re load averages & additional context:

The high CPU usage was discovered by my laptop's cooling efforts spinning up to slightly-annoying levels, hence the investigation. Here are the load averages after quitting and restarting Tidal Hi-Fi, i.e. considerably lower, w very little other change to any other application (ram usage mostly from a browser tab addiction):

image

Mastermindzh commented 4 months ago

5.9.0 will hit flathub tonight. Mar0Xy usually takes care of those but if she doesn't get to it by tonight then I will have a look myself 😄

Mastermindzh commented 4 months ago

@gerbrent how is the cpu usage? For me it's been fine 😄

gerbrent commented 4 months ago

fine so far! But it's one of those intermittent issues... will keep an 👀 on it and report if it comes back!