v17 LE 7.95.1 Out of memory
#1
Using the last several beta versions of LE I am running out of memory. The free ram keeps dropping until it gets below 100mb free and the menus start getting sluggish. Then eventually it drops down so low that KODI freezes and I can not connect by SSH. I pieced together a script to restart the KODI service once the free ram drops to 65mb free and store the log files. I am using emby for KODI so I do not know if that is causing the issue or not. I have a log from KODI and bcmstat attached.

kodi log
http://sprunge.us/DebX

bcmstat.sh log
http://sprunge.us/eFZD
Reply
#2
Can you report output of
Code:
top -o %MEM
after free memory starts to get low.
Reply
#3
Here is the logs from another pi2 when the gui started lagging with the output of the top command.

output of top
http://sprunge.us/bSbg

kodi log
http://sprunge.us/SQIU

bcmstat.sh log
http://sprunge.us/bDjN
Reply
#4
Looks like a memory leak in kodi, but it may be triggered by an add-on.
I think you will need to test disabling different add-ons to track this down.

I'd start with disabling emby and just trying to use kodi to play files locally or from network.
Does memory still leak?
Reply
#5
I disabled all the emby plugins and the added a media source directly to the nfs share.
Playing episodes directly from the file list of the share and then going to the next one the available ram did not decrease.
With the emby plugins still disabled I browsed around the movie and tvshows libraries. The ram usage would increase to a certain point and would stop. If I then played a movie, go back to the home screen, and wait for the widgets to update and then scroll though them it would again increase in ram usage. After repeating this several times the gui started freezing after the available ram decreased to far.

kodi log
http://sprunge.us/faWU

bcmstat log
http://sprunge.us/AaiS
Reply
#6
Can you confirm what you are doing when memory usage increases?
Are you playing a video in the background whilst browsing widgets (e.g. recently added) from estuary homescreen?

Does the problem still occur if you stop video first?

Does removing "<recentlyaddeditems>50</recentlyaddeditems>" from advancedsettings.xml help?

Emby does still seem to be present. e.g.
Code:
22:43:38.486 T:1426060192   DEBUG: CCurlFile::GetMimeType - http://192.168.3.78:8096/emby/Items/c437844e1d69c11ed6efdbb7e4077e58/Images/Primary/0?MaxWidth=10000&MaxHeight=10000&Format=original&Tag=16ea7233d4fab7114bb5e1c795edf9fc -> image/jpeg
22:43:38.488 T:1426060192   DEBUG: CFileCache::Open - opening <emby/Items/c437844e1d69c11ed6efdbb7e4077e58/Images/Primary/0> using cache
Reply
#7
I was just browsing the gui with no movie playing and the memory usage increases to a certain point and stops. If I then play a movie, stop the movie and go to the homescreen and once the widgets update if I browse through them again the usage increases again.

I only have <recentlyaddeditems>50</recentlyaddeditems> on two of my rpi2's the other two do not have it and they are doing the same thing.

The emby plugins are disabled but the database files that are created when it is synced are still there that point to the video files on the nfs share and the art work that is stored on the server.
Reply

Logout Mark Read Team Forum Stats Members Help
LE 7.95.1 Out of memory0