Vero 4K: Kodi hangs after scanning for 10 min, SSH stops responding a few minutes later

Hi guys,

I have had my Vero4K for a few years and take it out now and again to try new things. I am currently trying to get it to play nice with rclone.

I did a clean install, fully updated per the GUI, using default skin an nothing else installed.
I installed rclone an mounted my cloud drive and set Kodi to scan on startup.
I have disable Kodi (mediacenter) from starting up on boot (systemctl disabled service). This is because rclone needs to start and refresh the directory tree before anything scans it. It saves the directory tree in RAM so if you went to the top level and did someting like “find .” it would traverse the directory tree in a few seconds.
I have a cronjob that loads the directory tree into RAM (VFS refresh) and then starts Kodi/mediacenter (service mediacenter start)

Kodi loads up and starts scanning. It scans initially for changes, finds them and then I see it adding the content. This works away for about 10 - 15 minutes and then the screen freezes. I can still SSH in a this point but it is extremely slow. Like if I typed “ls” the letters would show up one by one after about 30 seconds. If I try to do anything such as stop/restart mediacenter it does not work or freezes altogether. If I try to kill -9 pidOfMediacenter it will also freeze. If I do nothing at all it will still freeze about 5 min after Kodi feezes.

Process of elimiation that it is Mediacenter/Kodi: If I never start Mediacenter the Vero will not freeze and I can ssh in any time and it works as expected. If I share out the rclone mount over samba/cifs that also works as expected so no issues accessing the data.

I opened up the SystemInfo the last few times and I see the RAM gradually get used up. Bt the time it freezes after 10 min the RAM is at 500MB so still plenty.

I also did a tail -f of the Kodi log file and this is all I saw…

2024-04-22 18:12:06.659 T:3137    error <general>: GetDirectory - Error getting special://profile/addon_data/pvr.sledovanitv.cz/
2024-04-22 18:12:06.659 T:3137    error <general>: GetDirectory - Error getting /home/osmc/.kodi/userdata/addon_data/pvr.vbox/
2024-04-22 18:12:06.659 T:3137    error <general>: GetDirectory - Error getting special://profile/addon_data/pvr.vbox/
2024-04-22 18:12:06.660 T:3137    error <general>: GetDirectory - Error getting /home/osmc/.kodi/userdata/addon_data/pvr.vuplus/
2024-04-22 18:12:06.660 T:3137    error <general>: GetDirectory - Error getting special://profile/addon_data/pvr.vuplus/
2024-04-22 18:12:06.939 T:3137     info <general>: VideoInfoScanner: Starting scan ..
2024-04-22 18:12:24.484 T:3130     info <general>: [service.upnext] UpNextMonitor -> Service started
2024-04-22 18:12:39.466 T:3129    error <general>: Window Translator: Can't find window videolibrary
2024-04-22 18:12:42.125 T:3117     info <general>: [ script.embuary.helper ] Service: Started
2024-04-22 18:12:42.126 T:3117     info <general>: [ script.embuary.helper ] Service: Player monitor started
2024-04-22 18:12:48.994 T:3118     info <general>: [ script.embuary.info ] Refreshing next airing database
2024-04-22 18:12:54.109 T:3118     info <general>: [ script.embuary.info ] Finished next airing database refreshing
2024-04-22 18:15:15.168 T:3191    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'datetime.timedelta' object has no attribute 'tzinfo'
                                                   Traceback (most recent call last):
                                                     File "/home/osmc/.kodi/addons/script.embuary.info/default.py", line 7, in <module>
                                                       from resources.lib.helper import *
                                                     File "/home/osmc/.kodi/addons/script.embuary.info/resources/lib/helper.py", line 15, in <module>
                                                       import arrow
                                                     File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/__init__.py", line 2, in <module>
                                                       from .api import get, now, utcnow
                                                     File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/api.py", line 12, in <module>
                                                       from arrow.arrow import TZ_EXPR, Arrow
                                                     File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/arrow.py", line 1885, in <module>
                                                       Arrow.min = Arrow.fromdatetime(dt_datetime.min)
                                                     File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/arrow.py", line 324, in fromdatetime
                                                       if dt.tzinfo is None:
                                                   AttributeError: 'datetime.timedelta' object has no attribute 'tzinfo'
                                                   -->End of Python script error report<--

2024-04-22 18:16:27.650 T:3200    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'datetime.timedelta' object has no attribute 'tzinfo'
                                                   Traceback (most recent call last):
                                                     File "/home/osmc/.kodi/addons/script.embuary.info/default.py", line 7, in <module>
                                                       from resources.lib.helper import *
                                                     File "/home/osmc/.kodi/addons/script.embuary.info/resources/lib/helper.py", line 15, in <module>
                                                       import arrow
                                                     File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/__init__.py", line 2, in <module>
                                                       from .api import get, now, utcnow
                                                     File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/api.py", line 12, in <module>
                                                       from arrow.arrow import TZ_EXPR, Arrow
                                                     File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/arrow.py", line 1885, in <module>
                                                       Arrow.min = Arrow.fromdatetime(dt_datetime.min)
                                                     File "/home/osmc/.kodi/addons/script.module.arrow/lib/arrow/arrow.py", line 324, in fromdatetime
                                                       if dt.tzinfo is None:
                                                   AttributeError: 'datetime.timedelta' object has no attribute 'tzinfo'
                                                   -->End of Python script error report<--

2024-04-22 18:17:08.044 T:3083     info <general>: Loading skin file: Settings.xml, load type: KEEP_IN_MEMORY
2024-04-22 18:17:08.101 T:3129    error <general>: Window Translator: Can't find window videolibrary
2024-04-22 18:17:10.696 T:3083     info <general>: Loading skin file: SettingsCategory.xml, load type: KEEP_IN_MEMORY
2024-04-22 18:17:10.805 T:3129    error <general>: Window Translator: Can't find window videolibrary
2024-04-22 18:17:15.591 T:3083     info <general>: Loading skin file: SettingsSystemInfo.xml, load type: KEEP_IN_MEMORY
2024-04-22 18:17:15.678 T:3129    error <general>: Window Translator: Can't find window videolibrary

Am I expecting too much that this little box can run an rclone mount and Kodi at the same time? If I run HTOP the cpu is almost always maxed out.

Is it possible the device is overheating?

Hard to tell what’s going on from a log snippet

Hi @sam_nazarko . Thanks, could be. I wasnt sure what other logs I should be looking at. Should I be enabling debug in the Kodi advancedsettings xml or should I be looking somewhere else? Can I monitor the temps from Kodi or ssh?

Update: I should have looked at the stickied post. Logs here https://paste.osmc.tv/wasoboveto
I was running it with the fan below it and the temp never went above 69. Kodi is still crashing though every 10-20 minutes or so but at least this time it gave the sad face taking up a quarter of the screen and restarted and started scanning again. Not sure if its doing the same thing over and over as I am not watching it work but I added the logs after the last crash above.

Update2: Over an hour later Kodi is crashing les frequently now now, maybe once in the last 30 min and I think that was because I used a keyboard to go to the TV show library. It started loading the thumbnails and then crashed. Since it restarted I have not touched it and it is scanning away. Cpu temp climbed up to ~90 and is holding there for now and that is with the fan underneath it.

Lets see if this makes a difference. Not sure if better on top or below :slight_smile:

Update 3 : Its been a few hours now and it has not crashed but I turned off the fan and the cpu temp is up to 104 spiking to 107 now and again. But it seems happy enough.