BtbN / vlc-htsp-plugin

Plugin for VLC to access TVHeadend via HTSP.
GNU Lesser General Public License v2.1
58 stars 32 forks source link

Memory leak #35

Open TRPB opened 8 years ago

TRPB commented 8 years ago

This seems to be an issue with this plugin. Whenever I'm watching a TVHeadend stream via HTSP the memory usages for buff/cache grows and grows here's me running free over the space of about 1 minute:

[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.0G         11G        2.5G        2.8G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.0G         11G        2.6G        2.9G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.0G         11G        2.6G        3.0G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.0G         11G        2.7G        3.1G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.0G         11G        2.8G        3.1G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.0G         11G        2.8G        3.2G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.0G         11G        2.8G        3.2G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.0G         11G        3.0G        3.3G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G         11G        3.0G        3.4G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G         11G        3.1G        3.4G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G         10G        3.2G        3.6G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G         10G        3.3G        3.6G         11G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G         10G        3.3G        3.7G         10G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G         10G        3.5G        3.8G         10G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G        6.9G        7.2G        7.6G        7.0G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G        6.8G        7.2G        7.6G        7.0G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G        6.8G        7.3G        7.7G        6.9G
Swap:           14G         38M         14G
[media@media ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        1.1G        6.8G        7.3G        7.7G        6.9G
Swap:           14G         38M         14G
[media@media ~]$ 

Eventually VLC crashes when it runs out of memory. This may be something to do with timeshifting as I have that enabled in TVHeadened, but as that's the only reason to run HTSP instead of HTTP it's unlikely nobody else has encountered this.