Solved: Memory leak when idle?
|
30th Jun, 2023, 11:16 AM
Post: #1
|
|||
|
|||
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? |
|||
1st Jul, 2023, 05:34 AM
Post: #2
|
|||
|
|||
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. |
|||
1st Jul, 2023, 09:21 AM
Post: #3
|
|||
|
|||
RE: Memory leak when idle? | |||
8th Jul, 2023, 06:23 AM
Post: #4
|
|||
|
|||
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
|
|||
13th Jul, 2023, 06:00 AM
Post: #5
|
|||
|
|||
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. :) :) |
|||
13th Jul, 2023, 04:35 PM
Post: #6
|
|||
|
|||
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
|
|||
14th Jul, 2023, 10:39 AM
Post: #7
|
|||
|
|||
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). 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. |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
kodi memory leak | rafhtl | 12 | 18,133 |
17th Nov, 2023 07:44 PM Last Post: lendminority |