Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] Memory leak when idle?
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Memory leak when idle?
30th Jun, 2023, 11:16 AM
Post: #1
grandcanyon Offline
Registered
Posts: 54
Joined: Dec 2022
Reputation: 0
Memory leak when idle?
I am running Xbian on a Rpi 3+ and Kodi will freeze and I see in dmesg that I get an out of memory error. I don't get a kernel panic. Kodi restarts but the previous screen stays on the TV so I can see it happens at random times.

PRETTY_NAME="XBian 11.0 - Bullseye"
NAME=XBian
VERSION_ID=11.0
VERSION="XBian 11.0 - Bullseye"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
uname = 6.1.28+
getconf LONG_BIT = 32

I don't see any memory leak warnings in the kodi.log file. I do run iptvsimple so I don't know if this is a source of my problem or something else.

I thought it could be this but it was already disabled sudo echo 0 > /sys/kernel/mm/lru_gen/enabled

Any pointers?
Find all posts by this user
1st Jul, 2023, 05:34 AM
Post: #2
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
Memory leak when idle?
Are you running a heavy skin?

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
1st Jul, 2023, 09:21 AM
Post: #3
grandcanyon Offline
Registered
Posts: 54
Joined: Dec 2022
Reputation: 0
RE: Memory leak when idle?
(1st Jul, 2023 05:34 AM)f1vefour Wrote:  Are you running a heavy skin?

No just the default Kodi skin Estuary is all I use. I don't have any other skins installed besides the two default ones.
Find all posts by this user
8th Jul, 2023, 06:23 AM
Post: #4
grandcanyon Offline
Registered
Posts: 54
Joined: Dec 2022
Reputation: 0
RE: Memory leak when idle?
I created a swapfile at /var/swapfile so now Kodi doesn't freeze or cause OOM_killer to kill Kodi. Looks like upstart zram-swap should create the swapfile but it doesn't. I believe it is due to the file system being btrfs. The upstart log doesn't give any info for zram-swap except /proc/self/fd/9: 43: echo: echo: I/O error
Find all posts by this user
13th Jul, 2023, 06:00 AM
Post: #5
Exnor Offline
Registered
Posts: 362
Joined: Aug 2013
Reputation: 8
RE: Memory leak when idle?
I have the same problem. As workaround i just increased the swap partition to 1.5GiB (default was 256MiB (?) or something like that).
Now Kodi does not crash or restarts.

I do notice that Swap usage can reach up to 700MB sometimes, and only a Kodi stop/start clears the swap back to zero.

:) :)
Find all posts by this user
13th Jul, 2023, 04:35 PM
Post: #6
Nehemiah Offline
Banned
Posts: 1
Joined: Jul 2023
RE: Memory leak when idle?
If you don't see any memory leak warnings in the kodi.log file. But it does run iptvsimple, so I think it is because of other reasons. It should be that there is something wrong with the system when you restart. I suggest shutting down again and then turning it on again later.chatgpt login
Find all posts by this user
14th Jul, 2023, 10:39 AM
Post: #7
grandcanyon Offline
Registered
Posts: 54
Joined: Dec 2022
Reputation: 0
RE: Memory leak when idle?
(13th Jul, 2023 06:00 AM)Exnor Wrote:  I have the same problem. As workaround i just increased the swap partition to 1.5GiB (default was 256MiB (?) or something like that).
Now Kodi does not crash or restarts.

I do notice that Swap usage can reach up to 700MB sometimes, and only a Kodi stop/start clears the swap back to zero.

My system wasn't creating any swap (0 GB) which was causing my problems. I created a swap but I was still getting some crashes and dmesg gave me an error about can't swap pagenets or something on a non-sub volume. I had to create a swap on a subvolume. Since then no crashes.
Find all posts by this user
19th Dec, 2024, 11:54 AM
Post: #8
mattrife Offline
Banned
Posts: 1
Joined: Dec 2024
RE: Memory leak when idle?
(30th Jun, 2023 11:16 AM)grandcanyon Wrote:  I am running Xbian on a Rpi 3+ and Kodi will freeze and I see in dmesg that I get an out of memory error. I don't get a kernel panic. Kodi restarts but the previous screen stays on the TV so I can see it happens at random Incredibox Colorbox Mustard times.

PRETTY_NAME="XBian 11.0 - Bullseye"
NAME=XBian
VERSION_ID=11.0
VERSION="XBian 11.0 - Bullseye"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
uname = 6.1.28+
getconf LONG_BIT = 32

I don't see any memory leak warnings in the kodi.log file. I do run iptvsimple so I don't know if this is a source of my problem or something else.

I thought it could be this but it was already disabled sudo echo 0 > /sys/kernel/mm/lru_gen/enabled

Any pointers?
The first step in fixing the memory leak problem with Kodi on your Raspberry Pi 3+ running Xbian is to use `top` or `htop` to monitor memory usage and see if any processes, such as `iptvsimple`, are using excessive amounts of memory. Make sure there is enough swap space, look for problems in the Kodi logs, and turn off the `iptvsimple` addon for a while to see whether the problem still exists. Last but not least, upgrade Kodi and your Xbian system to the most recent versions. You may also want to tweak Kodi's RAM and video cache settings to enhance performance.
Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  kodi memory leak rafhtl 12 20,875 17th Nov, 2023 07:44 PM
Last Post: lendminority

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 11th May, 2025, 05:25 PM Powered By MyBB, © 2002-2025 MyBB Group.