2021-01-30, 21:17
I run Kodi using OSMC on a RPi 3B. About once a week, I'm encountering a problem where the Pi locks up. It can be pinged, but I can't SSH into it. It's unresponsive to keyboard inputs. I was able to locate "old" Kodi logs from that date. Below is an excerpt:
2021-01-27 23:34:01.240 T:1916207120 NOTICE: Samba is idle. Closing the remaining connections
2021-01-28 02:52:09.924 T:1552883936 WARNING: Unable to determine channel type. Defaulting to TV.
2021-01-28 03:28:03.968 T:1689243872 WARNING: Previous line repeats 612 times.
2021-01-28 03:28:03.968 T:1689243872 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.OSError'>
Error Contents: [Errno 12] Cannot allocate memory
Traceback (most recent call last):
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/service.py", line 38, in <module>
m = update_service.Main()
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 244, in __init__
self._daemon()
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 270, in _daemon
self.update_now()
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 898, in update_now
if self.check_for_unsupported_version() == 'alpha': return
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 1500, in check_for_unsupported_version
process = subprocess.call(['/usr/bin/dpkg-query', '-l', 'rbp-mediacenter-osmc'], stderr=fnull, stdout=fnull)
File "/usr/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 938, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
-->End of Python script error report<--
2021-01-28 08:29:43.843 T:1552883936 WARNING: Unable to determine channel type. Defaulting to TV.
I've posted this problem on the OSMC forum here. There is a suggestion that it may be a Kodi issue, so I've decided to post it here as well. Apologies if I've posted here in error.
Thanks for any help.
2021-01-27 23:34:01.240 T:1916207120 NOTICE: Samba is idle. Closing the remaining connections
2021-01-28 02:52:09.924 T:1552883936 WARNING: Unable to determine channel type. Defaulting to TV.
2021-01-28 03:28:03.968 T:1689243872 WARNING: Previous line repeats 612 times.
2021-01-28 03:28:03.968 T:1689243872 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.OSError'>
Error Contents: [Errno 12] Cannot allocate memory
Traceback (most recent call last):
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/service.py", line 38, in <module>
m = update_service.Main()
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 244, in __init__
self._daemon()
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 270, in _daemon
self.update_now()
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 898, in update_now
if self.check_for_unsupported_version() == 'alpha': return
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 1500, in check_for_unsupported_version
process = subprocess.call(['/usr/bin/dpkg-query', '-l', 'rbp-mediacenter-osmc'], stderr=fnull, stdout=fnull)
File "/usr/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 938, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
-->End of Python script error report<--
2021-01-28 08:29:43.843 T:1552883936 WARNING: Unable to determine channel type. Defaulting to TV.
I've posted this problem on the OSMC forum here. There is a suggestion that it may be a Kodi issue, so I've decided to post it here as well. Apologies if I've posted here in error.
Thanks for any help.