Crashes, and out of memory message in logs

I would like some pointers as to where to report the crashes I experienced.
If more information is needed, please let me know.

Updated to latest OSMC; running on Pi.

uname -a: Linux mediaplayer 4.9.29-13-osmc #1 SMP PREEMPT Thu Dec 21 17:18:07 UTC 2017 armv7l GNU/Linux

I experienced some crashes since.

In the logs I see:

kernel: Out of memory: Kill process 2268 (kodi.bin) score 845 or sacrifice child

but I am not experienced enough to know what this means or what to do to solve this problem, and whether or not it is actually related to the crashes. I suspect the crashes are possibly caused by an add-on but I don’t know how to triage that either. (sorry :frowning:)

full logs here: https://paste.osmc.tv/haqekadiyo

Is this something OSMC-related, do you think?

The device is running low on free memory

Thanks, @sam_nazarko, for the quick reply!

I found some commands which show available memory, and ran free en cat /proc/meminfo. If I am interpreting this correctly (am I?) it seems there’s 454 Mb available.
Does that confirm your diagnosis?

I ran:

osmc@mediaplayer:~$ free --mega
              total        used        free      shared  buff/cache   available
Mem:            765         136         454          15         175         575
Swap:             0           0           0

And:

osmc@mediaplayer:~$ cat /proc/meminfo
MemTotal:         765848 kB
MemFree:          453804 kB
MemAvailable:     575340 kB
Buffers:           21748 kB
Cached:           144400 kB
SwapCached:            0 kB
Active:           174240 kB
Inactive:         104612 kB
Active(anon):     114196 kB
Inactive(anon):    13840 kB
Active(file):      60044 kB
Inactive(file):    90772 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        112736 kB
Mapped:            63612 kB
Shmem:             15300 kB
Slab:              20140 kB
SReclaimable:       9024 kB
SUnreclaim:        11116 kB
KernelStack:        1504 kB
PageTables:         2312 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      382924 kB
Committed_AS:     756624 kB
VmallocTotal:    1294336 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
CmaTotal:           8192 kB
CmaFree:            6800 kB

Correct. The free command shows 454 MB free, but that’s after the oom-killer has killed kodi.bin. This also suggests that kodi.bin was very likely to have been the memory hog.

You might find that the out-of-memory problem is related to one or more “greedy” Kodi add-ons, assuming you’ve installed some. You should be able to disable add-ons one at a time to see if/when the problem disappears.

Alternatively, it could be an application that you’ve installed that is the issue.

Thanks @dillthedog, I have learned something :slight_smile:!

I suspect it can only be one particular add-on: I only have 2 installed AFAIK, and only really use one of these (Dutch iPlayer), and was using just that one, when the crashes occurred.

Thanks.
I’ll report to the add-on developer.

I’d recommend you get some further concrete information before going to the developer. One occurrence is insufficient evidence. Also ensure that the other add-on is disabled, so you can reasonably point out that it’s the only active add-on you have.

Thanks!

Will do as you advice.
I think I’m pretty certain I’m able to reproduce the crash, but can’t at the moment test that, because somebody is using OSMC at the moment and doesn’t want to relinquish the remote just now. :smile:

((BTW: Tell Sam to get some sleep :wink: .))

Try capturing full logs when you experience the problem again.

I get plenty of sleep.