OSMC setting app not working at all

After playing with Alpha 4 for couple of hours I cannot open OSMC setting program anymore. It says Script fails on screen and this is what I get in log

14:56:19 T:2774529056 NOTICE: Thread LanguageInvoker start, auto delete: false
14:56:19 T:2774529056 NOTICE: -->Python Interpreter Initialized<–
14:56:19 T:2774529056 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘socket.error’>
Error Contents: (11, ‘Resource temporarily unavailable’)
Traceback (most recent call last):
File “/usr/share/kodi/addons/service.osmc.settings/default.py”, line 11, in
sock.connect(address)
File “/usr/lib/python2.7/socket.py”, line 224, in meth
return getattr(self._sock,name)(*args)
error: (11, ‘Resource temporarily unavailable’)
–>End of Python script error report<–
16:36:11 T:2799694880 NOTICE: Thread JobWorker start, auto delete: true

It worked before, it even downloaded some updates.

Is your Pi 256MB or 512MB, and is it still doing it after a reboot ?

If so enable debugging in System preferences, reproduce the problem then post a FULL debug log by using:

paste-log /home/osmc/.kodi/temp/kodi.log

This will upload your log and give you a URL to paste here.

It is 512 MB (B+)
I rebooted, allowed debugging and tried to invoke OSMC settings
http://paste.osmc.io/yilidogiva

I am using confluence skin, behavior is the same also in OSMC.

Hi I have the same problem. I’m using RPi 2. Bellow is log

19:11:32 T:1585443872   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x73074f70

19:11:32 T:1585443872 DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(81920), nBufferAlignmen(16)
19:11:32 T:1585443872 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x73071828
19:11:32 T:1585443872 DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
19:11:32 T:1585443872 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x73074f70
19:11:32 T:1585443872 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x73071828
19:11:32 T:1585443872 DEBUG: DecodeJpegToTexture: decoded special://masterprofile/Thumbnails/f/f0fca090.jpg 256x256
19:11:33 T:1950830592 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
19:11:33 T:1950830592 DEBUG: OnKey: return (0xf00d) pressed, action is Select
19:11:33 T:1950830592 DEBUG: ------ Window Init (DialogAddonInfo.xml) ------
19:11:33 T:1950830592 INFO: Loading skin file: DialogAddonInfo.xml, load type: KEEP_IN_MEMORY
19:11:35 T:1950830592 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:35 T:1950830592 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:35 T:1950830592 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
19:11:35 T:1950830592 DEBUG: OnKey: return (0xf00d) pressed, action is Select
19:11:35 T:1558967328 NOTICE: Thread LanguageInvoker start, auto delete: false
19:11:35 T:1558967328 INFO: initializing python engine.
19:11:35 T:1558967328 DEBUG: CPythonInvoker(45, /usr/share/kodi/addons/service.osmc.settings/default.py): start processing
19:11:35 T:1558967328 NOTICE: -->Python Interpreter Initialized<–
19:11:35 T:1558967328 DEBUG: CPythonInvoker(45, /usr/share/kodi/addons/service.osmc.settings/default.py): the source file to load is “/usr/share/kodi/addons/service.osmc.settings/default.py”
19:11:35 T:1558967328 DEBUG: CPythonInvoker(45, /usr/share/kodi/addons/service.osmc.settings/default.py): setting the Python path to /usr/share/kodi/addons/service.osmc.settings:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0
19:11:35 T:1558967328 DEBUG: CPythonInvoker(45, /usr/share/kodi/addons/service.osmc.settings/default.py): entering source directory /usr/share/kodi/addons/service.osmc.settings
19:11:35 T:1558967328 DEBUG: CPythonInvoker(45, /usr/share/kodi/addons/service.osmc.settings/default.py): instantiating addon using automatically obtained id of “service.osmc.settings” dependent on version 2.1.0 of the xbmc.python api
19:11:35 T:1558967328 DEBUG: default started
19:11:35 T:1558967328 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘socket.error’>
Error Contents: (11, ‘Resource temporarily unavailable’)
Traceback (most recent call last):
File “/usr/share/kodi/addons/service.osmc.settings/default.py”, line 11, in
sock.connect(address)
File “/usr/lib/python2.7/socket.py”, line 224, in meth
return getattr(self._sock,name)(*args)
error: (11, ‘Resource temporarily unavailable’)
–>End of Python script error report<–
19:11:35 T:1950830592 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
19:11:35 T:1558967328 INFO: Python script stopped
19:11:35 T:1558967328 DEBUG: Thread LanguageInvoker 1558967328 terminating
19:11:35 T:1950830592 DEBUG: ------ Window Deinit (DialogAddonInfo.xml) ------
19:11:41 T:1950830592 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
19:11:53 T:1813972000 DEBUG: script.module.osmcsetting.updates : - blurp 898 - AddonBrowser.xml
19:12:02 T:1585443872 DEBUG: Thread JobWorker 1585443872 terminating (autodelete)
19:12:04 T:1950830592 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-arm.so)
19:12:04 T:1950830592 DEBUG: Unloading: /ImageLib-arm.so

http://paste.osmc.io/ulowijoqip

Hi,

We have identified and fixed some bugs in the OSMC settings update that is probably the cause of the errors you’re reporting. To fix this please run a full check for updates.

Depending on which version of the addon you currently have you might find the update function isn’t working so to manually install the latest updates run the following at the local console or via ssh:

sudo apt-get update; sudo systemctl start manual-update

This will kick off the automatic update service and then return you to Kodi.

Yes, that helped, I can open settings dialog again.

Just one minor bug introduced with this - in updates panel, last tab (manual controls) has three fields - scan now, install now and “grep osmc” . I assume the last one is not supposed to be there…

It didn’t help for me, here’s the log: http://paste.osmc.io/qokibepani

Correction - I was able to access it once. I browsed through tabs, I noticed some were corrected. I did not change anything, I clicked on search for updates. Later I wanted to go to settings again, it did not open again. Here is current log

http://paste.osmc.io/aluxemaxiy

Can you both try exiting out from Kodi, press ESC at the splash screen to log in as osmc/osmc, then run the following command:

rm -f /var/tmp/osmc.settings.*

This needs to be done while kodi is not running. Also while you’re there, check the version of mediacenter-addon-osmc that is installed with:

dpkg -l | grep osmc

You should have version 1.66 or later of mediacenter-addon-osmc.

Mine is 1.66.
In /var/tmp I see these
-rw-r–r-- 1 root root 253394 Feb 5 13:53 OSMC_python_apt_log.txt
srwxr-xr-x 1 osmc osmc 0 Jan 1 1970 osmc.settings.sockfile
srwxr-xr-x 1 osmc osmc 0 Jan 1 1970 osmc.settings.update.sockfile

I can do it only via ssh as I have no keyboard there. How do I stop kodi properly so that I cam remove those two files ?

To stop kodi:

sudo systemctl stop mediacenter

To start kodi again:

sudo systemctl start mediacenter

Mine is versio 1.66, too. I removed the files like you said (successfully, I checked the directory afterwards, it was empty). Then rebootet. Still no luck with OSMC settings.

In my case I found that it “broke” after I restored my userdata using

tar -czf backup.tar.gz .kodi/

and

tar -xzf backup.tar.gz

Here is the new log: http://paste.osmc.io/henomajibu

Nope, it did not help, still the same, cannot open app.

Sockets were created with current time, after a reboot they were again Jan 1 1970 which I assume is ok as it is created before I get time from NTP.

I have exactly the same problem on RPI2.
OSMC setting is working right after a reboot, but after a while i can’t access it anymore.

Edit:
I’m on a clean install (Alpha 4) on RPI2
V1.66
Using Confluence skin and have OSMC skin installed

Thanks for the hint - I just backed up the .kodi folder from my Raspbmc install on another Pi and restored it to osmc and I now see the same problem as you - the settings addon won’t launch and I get the same error in the log.

Investigating…

My backup comes from an earlier stage of OSMC alpha 4.
Maybe another hint: I’m using a HiFiBerry DAC (RPi B). At the moment it doesn’t work either. Since it’s activated via the settings app, maybe its failure is somehow related.

Can you confirm what skin you are using, also what other Skins you have installed ?

I am having the exact same problem. using a raspberry pi 2 only installed skin is confluence and rapier. tried the ssh force update and still nothing

As in other cases i’m using 1.66 version, deletition of socket didnt helped. I wasn’t using any kind of backup. It was a clear install with RPi2. I have installed conluence skin ( as default) and osmc skin. But osmc setting are not working in neither of skins. It’s exactly as thansen_dk said. Working right after the reebot ( if it’s launched as a first plugin) later on it’s impossible to launch it.

1 Like

I’m using the standard OSMC skin only, no other skins installed.