OSMC Settings error after 1.2.16 update

Let me know if you need more logs than this.

19:42:01 167.696060 T:1750807584  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> Starting NextUp Service
19:42:01 167.696457 T:1750807584  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> ======== START NEXTUP SERVICE NOTIFICATION ========
19:42:01 167.696823 T:1750807584  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> KODI Version: 15.2
19:42:01 168.045639 T:1750807584  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> NEXTUP SERVICE NOTIFICATION Version: 1.0.14
19:42:01 168.047440 T:1750807584  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> Platform: Linux/RPi
19:42:02 168.747360 T:1649882144  NOTICE:  StorageServer Module loaded RUN
19:42:02 168.747971 T:1649882144  NOTICE: StorageClient-2.5.4 Starting server
19:42:02 169.237152 T:1536947232  NOTICE: -->Python Interpreter Initialized<--
19:42:05 172.325790 T:1692087328  NOTICE: service.libraryautoupdate-0.9.8 : Creating timer for Video Library
19:42:05 172.567993 T:1742418976  NOTICE: script.grab.fanart: Grab Fanart Service Started
19:42:11 178.219589 T:1675310112  NOTICE: Thread LanguageInvoker start, auto delete: false
19:42:13 179.909943 T:1675310112  NOTICE: -->Python Interpreter Initialized<--
19:42:17 184.040604 T:1784362016   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: invalid literal for int() with base 10: ''
                                            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/CompLogger.py", line 61, in wrapper
                                                func(*args, **kwargs)
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 284, in _daemon
                                                self.position_icon()
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py", line 529, in position_icon
                                                screen_width  = int(screen_width)
                                            ValueError: invalid literal for int() with base 10: ''
                                            -->End of Python script error report<--
19:43:18 244.749405 T:1658270752  NOTICE: Thread JobWorker start, auto delete: true
19:46:00 407.186005 T:1957773872  NOTICE: Previous line repeats 5 times.
19:46:00 407.186218 T:1957773872   ERROR: GetDirectory - Error getting /usr/share/kodi/sounds/
19:46:00 407.186310 T:1957773872   ERROR: GetDirectory - Error getting special://xbmc/sounds/
19:46:00 407.232727 T:1957773872   ERROR: GetDirectory - Error getting /usr/share/kodi/sounds/
19:46:00 407.232910 T:1957773872   ERROR: GetDirectory - Error getting special://xbmc/sounds/
19:46:18 425.035736 T:1480586272  NOTICE: Thread LanguageInvoker start, auto delete: false
19:46:18 425.134003 T:1480586272  NOTICE: -->Python Interpreter Initialized<--
19:46:19 426.482239 T:1666921504   ERROR: EXCEPTION: Non-Existent Control 300
19:46:28 434.657440 T:1369437216  NOTICE: Thread LanguageInvoker start, auto delete: false
19:46:28 434.736115 T:1369437216  NOTICE: -->Python Interpreter Initialized<--
19:46:28 434.736481 T:1369437216 WARNING: CPythonInvoker(19): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
19:46:28 434.911438 T:1369437216  NOTICE: OSMC settings sending response, update
19:46:28 434.914764 T:1369437216   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: (2, 'No such file or directory')
                                            Traceback (most recent call last):
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/call_parent.py", line 18, in <module>
                                                sock.connect(address)
                                              File "/usr/lib/python2.7/socket.py", line 224, in meth
                                                return getattr(self._sock,name)(*args)
                                            error: (2, 'No such file or directory')
                                            -->End of Python script error report<--
19:46:46 453.022675 T:1536947232  NOTICE: Thread LanguageInvoker start, auto delete: false
19:46:46 453.098175 T:1536947232  NOTICE: -->Python Interpreter Initialized<--
19:46:46 453.098541 T:1536947232 WARNING: CPythonInvoker(20): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
19:46:46 453.274780 T:1536947232  NOTICE: OSMC settings sending response, update
19:46:46 453.278015 T:1536947232   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: (2, 'No such file or directory')
                                            Traceback (most recent call last):
                                              File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/call_parent.py", line 18, in <module>
                                                sock.connect(address)
                                              File "/usr/lib/python2.7/socket.py", line 224, in meth
                                                return getattr(self._sock,name)(*args)
                                            error: (2, 'No such file or directory')
                                            -->End of Python script error report<--

Update: Rebooting again seemed to fix the 2nd type of error, where it wouldn’t scan for updates. Don’t know how to test the first.

CC @Karnage

What skin?

Confluence

What resolution display?

1920x1080

If the problem was repeatable then that error would show on every boot. It must be some rare timing issue, where the screen height is available but not the width (yet). In any case, the next update should have an accommodation for this, with an estimate being used in place of the missing width (the width isnt as important as the height).