Gui crashes after advancedsettings is installed

I have three osmc devices - one RPI4, one Vero 4K and the new Vero V.

I installed the advancedsettings.xml, sources.xml and passwords.xml

The Gui now hangs in an restart loop…

if i remove advancedsettings.xml, the restart loop stopps.

Here’s the kodi.log

2025-06-05 20:02:47.363 T:4543     info <general>: -----------------------------------------------------------------------
2025-06-05 20:02:47.363 T:4543     info <general>: Starting Kodi (21.2). Platform: Linux ARM 32-bit (version for Vero)
2025-06-05 20:02:47.363 T:4543     info <general>: Using Release Kodi x32
2025-06-05 20:02:47.363 T:4543     info <general>: Kodi compiled 2025-02-20 by GCC 10.2.1 for Linux ARM 32-bit version 5.10.158 (330398)
2025-06-05 20:02:47.363 T:4543     info <general>: Running on OSMC Vero V with Open Source Media Center 2025.03-1, kernel: Linux ARM 32-bit version 4.9.269-80-o
smc
2025-06-05 20:02:47.363 T:4543     info <general>: FFmpeg version/source: 6.0.1-Kodi
2025-06-05 20:02:47.363 T:4543     info <general>: 4 CPU cores available
2025-06-05 20:02:47.363 T:4543     info <general>: ARM Features: Neon disabled
2025-06-05 20:02:47.363 T:4543     info <general>: special://xbmc/ is mapped to: /usr/share/kodi
2025-06-05 20:02:47.363 T:4543     info <general>: special://xbmcbin/ is mapped to: /usr/lib/kodi
2025-06-05 20:02:47.363 T:4543     info <general>: special://xbmcbinaddons/ is mapped to: /usr/lib/kodi/addons
2025-06-05 20:02:47.363 T:4543     info <general>: special://masterprofile/ is mapped to: /home/osmc/.kodi/userdata
2025-06-05 20:02:47.363 T:4543     info <general>: special://envhome/ is mapped to: /home/osmc
2025-06-05 20:02:47.363 T:4543     info <general>: special://home/ is mapped to: /home/osmc/.kodi
2025-06-05 20:02:47.364 T:4543     info <general>: special://temp/ is mapped to: /home/osmc/.kodi/temp
2025-06-05 20:02:47.364 T:4543     info <general>: special://logpath/ is mapped to: /home/osmc/.kodi/temp
2025-06-05 20:02:47.364 T:4543     info <general>: Webserver extra whitelist paths:
2025-06-05 20:02:47.364 T:4543     info <general>: The executable running is: /usr/lib/kodi/kodi.bin
2025-06-05 20:02:47.364 T:4543     info <general>: Local hostname: vero4k-wz
2025-06-05 20:02:47.364 T:4543     info <general>: Log File is located: /home/osmc/.kodi/temp/kodi.log
2025-06-05 20:02:47.364 T:4543     info <general>: -----------------------------------------------------------------------
2025-06-05 20:02:47.364 T:4543     info <general>: loading settings
2025-06-05 20:02:47.365 T:4543     info <general>: special://profile/ is mapped to: special://masterprofile/
2025-06-05 20:02:47.391 T:4543     info <general>: Loaded settings file from special://xbmc/system/advancedsettings.xml
2025-06-05 20:02:47.393 T:4543     info <general>: Contents of special://xbmc/system/advancedsettings.xml are...
                                                   <?xml version="1.0" encoding="UTF-8" ?>
                                                   <!-- Do not modify! These are OSMC optimised settings for your device  !-->
                                                   <!-- If you wish to override any of these values, then create a file in /home/osmc/.kodi/userdata/advancedsettings.xml !-->
                                                   <!-- It will override these settings, and your settings will be preserved across OSMC updates !-->
                                                   <advancedsettings version="1.0">
                                                     <imageres>540</imageres>
                                                     <fanartres>720</fanartres>
                                                     <splash>false</splash>
                                                     <handlemounting>false</handlemounting>
                                                     <samba>
                                                       <clienttimeout>30</clienttimeout>
                                                     </samba>
                                                     <cputempcommand>/bin/sed -e &apos;s/\([0-9]*\)[0-9]\{3\}.*/\1 C/&apos; /sys/class/thermal/thermal_zone0/temp</cputempcommand>
                                                     <gputempcommand>/bin/sed -e &apos;s/\([0-9]*\)[0-9]\{3\}.*/\1 C/&apos; /sys/class/thermal/thermal_zone0/temp</gputempcommand>
                                                     <gamesgeneral>
                                                       <enable>true</enable>
                                                     </gamesgeneral>
                                                     <videoscreen>
                                                       <screen>0</screen>
                                                     </videoscreen>
                                                     <myvideos>
                                                       <usetags>false</usetags>
                                                     </myvideos>
                                                     <video>
                                                       <excludefromscan action="append">
                                                         <regexp>(?i)(@eadir|system.volume.information|\$recycle)</regexp>
                                                       </excludefromscan>
                                                       <excludefromlisting action="append">
                                                         <regexp>(?i)(@eadir|system.volume.information|\$recycle)</regexp>
                                                       </excludefromlisting>
                                                     </audio>
                                                   </advancedsettings>

2025-06-05 20:02:47.395 T:4543     info <general>: Loaded settings file from special://profile/advancedsettings.xml
2025-06-05 20:02:47.396 T:4543     info <general>: Contents of special://profile/advancedsettings.xml are...
                                                   <?xml version="1.0" encoding="utf-8" ?>
                                                   <advancedsettings>
                                                     <loglevel>5</loglevel>
                                                     <videodatabase>
                                                       <type>mysql</type>
                                                       <name>kodivideodb</name>
                                                       <host>192.168.2.73</host>
                                                       <port>3306</port>
                                                       <user>kodi</user>
                                                       <pass>*****</pass>
                                                     </videodatabase>
                                                     <musicdatabase>
                                                       <type>mysql</type>
                                                       <name>kodimusicdb</name>
                                                       <host>192.168.2.73</host>
                                                       <port>3306</port>
                                                       <user>kodi</user>
                                                       <pass>*****</pass>
                                                     </musicdatabase>
                                                     <videolibrary>
                                                       <importwatchedstate>true</importwatchedstate>
                                                       <importresumepoint>true</importresumepoint>
                                                     </videolibrary>
                                                     <pathsubstitution>
                                                       <substitute>
                                                         <from>special://masterprofile/sources.xml</from>
                                                         <to>nfs://192.168.2.73/kodidb/settings/sources.xml</to>
                                                       </substitute>
                                                       <substitute>
                                                         <from>special://masterprofile/passwords.xml</from>
                                                         <to>nfs://192.168.2.73/kodidb/settings/passwords.xml</to>
                                                       </substitute>
                                                     </pathsubstitution>
                                                   </advancedsettings>

2025-06-05 20:02:47.396 T:4543    debug <general>: Configuring path substitutions
2025-06-05 20:02:47.396 T:4543    debug <general>:   Registering substitution pair:
2025-06-05 20:02:47.396 T:4543    debug <general>:     From: [/home/osmc/.kodi/userdata/sources.xml]
2025-06-05 20:02:47.396 T:4543    debug <general>:     To:   [nfs://192.168.2.73/kodidb/settings/sources.xml]
2025-06-05 20:02:47.396 T:4543    debug <general>:   Registering substitution pair:
2025-06-05 20:02:47.396 T:4543    debug <general>:     From: [/home/osmc/.kodi/userdata/passwords.xml]
2025-06-05 20:02:47.396 T:4543    debug <general>:     To:   [nfs://192.168.2.73/kodidb/settings/passwords.xml]
2025-06-05 20:02:47.396 T:4543  warning <general>: VIDEO database configuration is experimental.
2025-06-05 20:02:47.396 T:4543  warning <CSettingsManager>: missing version attribute
2025-06-05 20:02:47.397 T:4543     info <general>: Default Video Player: VideoPlayer
2025-06-05 20:02:47.397 T:4543     info <general>: Default Audio Player: paplayer
2025-06-05 20:02:47.397 T:4543     info <general>: Disabled debug logging due to GUI setting. Level 1.

There’s no more log

and that’s my advancedsettings.xml

<?xml version="1.0" encoding="utf-8"?>
<advancedsettings>
        <loglevel>5</loglevel>
        <videodatabase>
                <type>mysql</type>
                <name>kodivideodb</name>
                <host>192.168.2.73</host>
                <port>3306</port>
                <user>kodi</user>
                <pass>****</pass>
        </videodatabase>
        <musicdatabase>
                <type>mysql</type>
                <name>kodimusicdb</name>
                <host>192.168.2.73</host>
                <port>3306</port>
                <user>kodi</user>
                <pass>*****</pass>
        </musicdatabase>
        <videolibrary>
                <importwatchedstate>true</importwatchedstate>
                <importresumepoint>true</importresumepoint>
        </videolibrary>
        <pathsubstitution>
                <substitute>
                        <from>special://masterprofile/sources.xml</from>
                        <to>nfs://192.168.2.73/kodidb/settings/sources.xml</to>
                </substitute>
                <substitute>
                        <from>special://masterprofile/passwords.xml</from>
                        <to>nfs://192.168.2.73/kodidb/settings/passwords.xml</to>
                </substitute>
        </pathsubstitution>
</advancedsettings>

Please provide a little more information about the context. The log excerpt shown is for the Vero-V, that is clear.

Does this particular version of advancedsettings.xml work ok with the RPI4, one Vero 4K ?

To identify the cause of the GUI hang (for the Vero-V at least) you could start with the a minimal version of advancedsettings.xml adding a few lines at a time, of what you require in advancedsettings.xml and restarting each time. This way you should be able to identify the configuration that is causing the GUI to hang.

2 Likes

I did that meanwhile and this

                <substitute>
                        <from>special://masterprofile/passwords.xml</from>
                        <to>nfs://192.168.2.73/kodidb/settings/passwords.xml</to>
                </substitute>

seems to be the problem…

is this a kodi problem or a vero V problem?

Kodi problem I think.

Take a look at https://kodi.wiki/view/Path_substitution and Issue with path substitution.

I’m guessing, but shouldn’t the path strings be paths rather than path+filename ?

It 100% is a Kodi thing but not a bug so much as your trying to do something unsupported. I think I recall looking into this type of thing last year and found some stuff on Kodi’s forum where a dev stated that path subbing credentials to a network path wouldn’t work for technical reasons. If you really wanted that to work you might try making a system mount with autofs and then symlink those two files bypassing the need to sub with Kodi entirely. I don’t know if this will work, but I’d think it is your best shot at it.

ok - thanks - what about a little automount support in osmc then (i know how to do it, but for the others)

Well we have written a very detailed How-to for autofs that is used quite frequently.
if you are referring to a add on or app to do it we are always happy for code contribution