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 (?) on Ubuntu Linux #1122

Closed
rodrigomessiasbarros opened this issue Jan 20, 2025 · 8 comments · Fixed by #1124
Closed

Memory Leak (?) on Ubuntu Linux #1122

rodrigomessiasbarros opened this issue Jan 20, 2025 · 8 comments · Fixed by #1124
Assignees

Comments

@rodrigomessiasbarros
Copy link

rodrigomessiasbarros commented Jan 20, 2025

Hello,

I'm using MusicPod on Ubuntu 24.04.01 LTS and when I add some podcasts to the playlist (I thought it was a feature to favorite the podcast and not include ALL the episodes of a podcast in the playlist, anyway) when I go to the Playlist and scroll with the mouse, the application reaches 23GB of RAM consumption. I believe there is some memory leak happening here.

How to reproduce the problem.

Open the application, add 2 or 3 podcasts to the playlist and go to the playlist and scroll to the end. Monitor the memory consumption in a resource manager.

Here when I start the application:

Image

Here when I reproduce the problem:

Image

History of memory consumption: (up and down)

Consumption Up

Image

Consumption Down

(when I quit the app)

Image

Image

About my system:

MusicPod version: 0+git.07e2a34

System Report


Detalhes do relatório

  • Data em que foi gerado: 2025-01-20 13:48:40

Informações de hardware:

  • Modelo do hardware: ASUSTeK COMPUTER INC. PRIME H310M-E R2.0/BR
  • Memória: 32,0 GiB
  • Processador: Intel® Core™ i7-9700KF × 8
  • Gráficos: NVIDIA GeForce RTX™ 2060 SUPER
  • Capacidade de disco: 512,1 GB

Informações de software:

  • Versão do firmware: 2208
  • Nome do SO: Ubuntu 24.04.1 LTS
  • Compilação do SO: (null)
  • Tipo do SO: 64 bits
  • Versão do GNOME: 46
  • Sistema de janelas: X11
  • Verificação do kernel: Linux 6.8.0-51-generic
@Feichtmeier
Copy link
Member

Hello,

I'm using MusicPod on Ubuntu 24.04.01 LTS and when I add some podcasts to the playlist (I thought it was a feature to favorite the podcast and not include ALL the episodes of a podcast in the playlist, anyway) when I go to the Playlist and scroll with the mouse, the application reaches 23GB of RAM consumption. I believe there is some memory leak happening here.

How to reproduce the problem.

Open the application, add 2 or 3 podcasts to the playlist and go to the playlist and scroll to the end. Monitor the memory consumption in a resource manager.

Here when I start the application:

Image

Here when I reproduce the problem:

Image

History of memory consumption: (up and down)

Consumption Up

Image

Consumption Down

(when I quit the app)

Image

Image

About my system:

MusicPod version: 0+git.07e2a34

System Report

Detalhes do relatório

* **Data em que foi gerado:**                      2025-01-20 13:48:40

Informações de hardware:

* **Modelo do hardware:**                          ASUSTeK COMPUTER INC. PRIME H310M-E R2.0/BR

* **Memória:**                                               32,0 GiB

* **Processador:**                                         Intel® Core™ i7-9700KF × 8

* **Gráficos:**                                                NVIDIA GeForce RTX™ 2060 SUPER

* **Capacidade de disco:**                         512,1 GB

Informações de software:

* **Versão do firmware:**                          2208

* **Nome do SO:**                                      Ubuntu 24.04.1 LTS

* **Compilação do SO:**                            (null)

* **Tipo do SO:**                                         64 bits

* **Versão do GNOME:**                            46

* **Sistema de janelas:**                           X11

* **Verificação do kernel:**                       Linux 6.8.0-51-generic

hi thanks for the very detailed report!
This button should not be there for podcasts, for podcasts there is the 🔔 icon to add it to the sidebar and update it : D
sorry!

@Feichtmeier Feichtmeier self-assigned this Jan 20, 2025
@Feichtmeier
Copy link
Member

@rodrigomessiasbarros could you help me with more steps
I precisely chose podcasts with many episodes and did what you said but my memory stay under 200mb allocation

Bildschirmaufzeichnung.vom.2025-01-20.18-12-22.mp4

@rodrigomessiasbarros
Copy link
Author

I can definitely help you, what would these steps be?

@Feichtmeier
Copy link
Member

I can definitely help you, what would these steps be?

For instance which podcasts did you add to what playlist?

(And for now if you want to subscribe to a podcast which adds it to your library, just press the bell 🔔 icon. I'll make the iconography more clear)

@Feichtmeier
Copy link
Member

And what icon did you press

@rodrigomessiasbarros
Copy link
Author

OK, I add this podcast:

  • Project N (Brazilian Podcast about Nintendo),
  • Ultra N Podcast (Nintendo too),
  • Conexao Nintendo (Nintendo too)
  • N-Blast-Cast - Podcast Nintendo Brasil (off course Nintendo)
  • Nintendo POWdcast (Nintendo too, I known I have a problem).

Inside a PodCast Banner, I click on tree dot menu [More Options], then "Add to Playlist" button:

Image

I hope this make help find this bug.

@Feichtmeier
Copy link
Member

OK, I add this podcast:

* Project N (Brazilian Podcast about Nintendo),

* Ultra N Podcast (Nintendo too),

* Conexao Nintendo (Nintendo too)

* N-Blast-Cast - Podcast Nintendo Brasil (off course Nintendo)

* Nintendo POWdcast (Nintendo too, I known I have a problem).

Inside a PodCast Banner, I click on tree dot menu [More Options], then "Add to Playlist" button:

Image

I hope this make help find this bug.

Thanks! xD
No you dont have a problem, its nice to be happy about a hobby ^^

so I couldntreproduce a real leak, but indeed the memory consumtion increases for a while, then shrinks again though. I think what happens is the podcasts you have use very high quality images and since I did not design playlist pages to include podcasts (yet) those images are fully loaded, evenif resized, though cached. Since I didnt thought this through (because I thought the bell would be clear but clearly it isnt and the icon was a bad idea) I didnt look into the large images for those tiles yet. I disabled this for now, sorry! This is what you should do instead:

  • press on the bell to sub to a podcast (in the snap edge channel a fix is soon in which changes this to a plus icon)
  • find your subbed podcasts in the sidebar and on the podcasts library page

Image

the playlist feature is currently only designed around local audio files, for podcasts there is a special page which looks like this:

Image

I keep this issue here opened to remind me to properly feature this for people who might want to create playlists with podcasts!

@rodrigomessiasbarros
Copy link
Author

@Feichtmeier Thank you very much for all the help and explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants