Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Possible caching problem with QT #162

Closed
aJesus37 opened this issue Dec 2, 2017 · 6 comments
Closed

Possible caching problem with QT #162

aJesus37 opened this issue Dec 2, 2017 · 6 comments

Comments

@aJesus37
Copy link

aJesus37 commented Dec 2, 2017

Description:

Not sure if it occurs with other web services, but using Deezer, after some time of use (like 1 or 2 hours), the app start getting some freezings on the sound. When it start ocurring, if you go into MellowPlayer, the service itself will be freezing making it impossible to use it. Looking at taskmanager, MellowPlayer will be ok, with common use of memory (like 300MB), and Qt will have a separated proccess, having almost 2GB of use of memory. So I think, it's a Qt issue handling Deezer's cache, making all of it go into memory and overloading MellowPlayer.

Steps To Reproduce:

  1. Open MellowPlayer with Deezer service
  2. Use it for something between 1 and 2 hours.

Log Files

js.log => https://pastebin.com/KHzi9xxw

Additional Informations:

@ColinDuquesnoy
Copy link
Owner

ColinDuquesnoy commented Dec 3, 2017

That's weird. I use to let MellowPlayer run for days (with Deezer) and never had such freezes...

The issue might be somewhere else. Do you have an NVIDIA graphics card? If yes, does it help if you run sudo nvidia-xconfig (see #128 which looks similar)

@aJesus37
Copy link
Author

aJesus37 commented Dec 3, 2017

Actually I have a NVIDA GPU, but i do not use any nvidia proprietary driver, so I can't use any video aceleration here. But as I said before, it seems like some caching issues, because the proccess get growing with time, and reaching more than 1.5GB of use of RAM, it starts freezing.

And if you were thinking about recommend installing some NVIDIA driver, it's not possible with my setup, it's a hybrid graphics card, this one specifically is not friendly to Linux.

@ColinDuquesnoy
Copy link
Owner

I don't know what's happening, one thing is sure is that it seems to be very specific to your system. Here is a snapshot of my task manager showing a MellowPlayer instance with an uptime of 4 days running with deezer on CentOS 7 (with an NVIDIA GPU powered by the open source drivers):

screenshot

Here are a few extra things to try:

  • try with a new fresh user (just to make sure there isn't a configuration issue or broken QtWebEngine cache)
  • make sure flash player is up to date
  • make sure graphics drivers are up to date
  • make sure Qt is up to date. If it is, maybe try reinstalling Qt WebEngine
  • try with the latest app image from a Continuous Release

I am going to close this issue because I feel like the issue cannot be fixed in the mellowplayer's code base. Feel free to comment here if you find a fix or if you have any other questions.

@ColinDuquesnoy
Copy link
Owner

@JesusFromHellz I've just learned that Deezer does not need flash anymore if you activate the HTML5 player. I'd suggest you uninstall flash, install non free codecs (and maybe a non free version of QtWebEngine) and try again. I don't know how to install all these stuff on Debian and if you manage to install them, I'd be interested to know how you did it.

@aJesus37
Copy link
Author

aJesus37 commented Dec 8, 2017

I'll read about it and try doing so. Thanks for the tip.
Having any luck, I'll forward it in this issue.

@ColinDuquesnoy
Copy link
Owner

@JesusFromHellz FYI

From what I tested, I can say that the issue is with the Deezer HTML5 Player only. There is no problem if you use Deezer Flash Player or if you use other services that use HTML5 codecs (e.g. Mixcloud). I could reproduce the same issue on Windows 7 using google chrome so I reported the issue to Deezer.

The workaround is to activate flash player in Deezer. It is not enough to install pepper flash on your system, you also have to explicitly disable Deezer HTML5 Player:

screenshot from 2017-12-25 13-39-17

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

No branches or pull requests

2 participants