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

Memory leak/issues when right-clicking (flatpak) #427

Open
Reinachan opened this issue Apr 28, 2023 · 0 comments
Open

Memory leak/issues when right-clicking (flatpak) #427

Reinachan opened this issue Apr 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Reinachan
Copy link

Reinachan commented Apr 28, 2023

Describe the bug
When you go to various pages and open the right-click menu, the RAM utilisation keeps increasing and doesn't really decrease.

I cannot reproduce this in my browser (Firefox). It does happen to some extent when you don't right-click, but it's significantly less noticable. I was easily able to go from ~60-80MB RAM usage when opening the app to 350MB RAM usage when navigating and right clicking. When not right-clicking I was only able to reach ~150MB RAM usage and it took much more time to increase. HOWEVER, the moment I right-clicked after doing all that navigation, it suddenly went from 150MB to 422MB usage!

Reloading the page does free the RAM, only way to free up the RAM is to restart the app.

To Reproduce

  1. Open Jellyfin Media Player, the RAM consumption is ~80MB (understandable, as it's a webview)
  2. Right-click and then click outside the menu
  3. Go to another page (ideally one with a lot of entries in it) and open and close the right-click menu
  4. Keep doing the above steps on more pages and observe that the memory consumption keeps going up every time you do it on a page with new things on it (most likely different images).

Alternatively

  1. navigate through many pages
  2. right-click anywhere.
  3. See memory consumption shoot up.

Expected behavior
When you navigate to another page, the things on the previous page should always be freed from memory. Right-clicking shouldn't increase RAM usage.

Desktop (please complete the following information):

  • OS: Fedora Linux 38 (Workstation Edition) (Linux 6.2.11-300.fc38.x86_64)
  • App version: 1.9.1
  • Installation Method: Flatpak

Additional context
This also gets even worse if you open a stream during the same session. Oftentimes, it doesn't seem to free up all the used memory after a stream either (usually some gets freed though). The reason I noticed this in the first place was because Jellyfin Media Player was using 1.2GB RAM on the homepage at one point after having watched multiple episodes in a row.

@Reinachan Reinachan added the bug Something isn't working label Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant