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

Kodi 19.4 shutter with PAplayer due memory leak #21526

Closed
bitstreamout opened this issue Jun 8, 2022 · 5 comments
Closed

Kodi 19.4 shutter with PAplayer due memory leak #21526

bitstreamout opened this issue Jun 8, 2022 · 5 comments
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@bitstreamout
Copy link

bitstreamout commented Jun 8, 2022

Bug report

I'm hearing the radio station JukeBox Radio 2 https://maggie.torontocast.com:8076/flac with the help of the PVR IPTC simple client and experience after a while shutter in the audio.

Describe the bug

After checking the memory consumption I've seen that the memory consumption has increased a lot and the shutter happens if kodi becomes a swapping process. Compare with https://forum.kodi.tv/showthread.php?tid=368535&pid=3100690#pid3100690
I had also tried to use memory buffer instead of the default stream file but this makes no difference on the result.

Expected Behavior

No memory leak and no shutter in the audio stream of the flac radio station.

Actual Behavior

Kodi is leaking memory which results after 15 minutes into shutter on the FLAC radio channel

Possible Fix

To Reproduce

Steps to reproduce the behavior:

  1. Play the Radio channel https://maggie.torontocast.com:8076/flac for more than 20 minutes
  2. Compare memory consumption with top or free -s
  3. Listen upto the shutter happen.

Debuglog

The debuglog can be found here: I can attach log file

Screenshots

Here are some links or screenshots to help explain the problem:

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Your Environment

Used Operating system:

  • [x ] Linux QNAP NAS HD-Station

  • Operating system version/name: QNAP QTS 5.0.0 ... HD-Station 4.2.2 (latest does not work for Kodi 19.4)

  • Linux dataslide 5.10.60-qnap #1 SMP Thu Mar 24 11:02:00 CST 2022 x86_64 GNU/Linux

  • Kodi version: 19.4.1.0

The HD-Station is a container which starts Kodi in its own namespace (had worked perfect with Kodi Leia)

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Jun 8, 2022
@bitstreamout
Copy link
Author

duplicate of #21603

@bitstreamout bitstreamout closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2022
@bitstreamout
Copy link
Author

bitstreamout commented Jun 28, 2022

Just run a test on an OpenSUSE Tumbleweed x86_64 with a plain installed kodi 19.4 and the command lines

kodi https://maggie.torontocast.com:8076/flac

and in an other terminal

top -d 20 | tee -a /tmp/kodi.log

and I see that the kodi process is eating memory:

12581 werner    20   0 3506332 242684 121880 S 25.00 3.000   0:49.85 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3506332 244732 121880 S 21.72 3.026   0:54.20 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3506332 246780 121880 R 21.72 3.051   0:58.55 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3506332 248828 121880 R 22.07 3.076   1:02.97 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 254468 121880 S 22.60 3.146   1:07.50 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 257768 121880 S 5.389 3.187   1:08.58 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 260824 121880 S 3.197 3.224   1:09.22 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 262872 121880 S 3.345 3.250   1:09.89 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 266968 121880 S 3.347 3.300   1:10.56 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 269016 121880 S 3.397 3.326   1:11.24 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 271064 121880 S 3.343 3.351   1:11.91 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 273112 121880 S 3.347 3.376   1:12.58 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 275160 121880 S 3.194 3.402   1:13.22 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 281280 121880 S 3.345 3.477   1:13.89 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 283328 121880 S 3.297 3.503   1:14.55 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 285432 121880 S 3.395 3.529   1:15.23 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 289528 121880 S 3.393 3.579   1:15.91 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 295636 121880 S 3.195 3.655   1:16.55 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 297684 121880 S 3.194 3.680   1:17.19 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 299732 121880 S 3.144 3.705   1:17.82 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 301780 121880 S 3.248 3.731   1:18.47 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 303828 121880 S 3.345 3.756   1:19.14 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 307924 121880 S 3.293 3.807   1:19.80 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 309972 121880 S 3.295 3.832   1:20.46 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 312112 121880 S 3.343 3.859   1:21.13 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 314160 121880 S 3.247 3.884   1:21.78 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac                                                
12581 werner    20   0 3507848 316208 121880 S 3.094 3.909   1:22.40 /usr/lib64/kodi/kodi.bin https://maggie.torontocast.com:8076/flac  ```

@bitstreamout
Copy link
Author

The leak is there even without any visualizer and even on https://maggie.torontocast.com:8076/mp3

@bitstreamout
Copy link
Author

Replace ffio_ensure_seekback() from current ffmpeg source tree for Matrix with a version which avoids allocation/freeing huge memory areas all the time with ogg based streams!

https://git.ffmpeg.org/gitweb/ffmpeg.git...uf.c#l1055

@bitstreamout
Copy link
Author

#21603

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

1 participant