MIBORE99 1 Posted November 23, 2023 Share Posted November 23, 2023 Hi guys, it seems that the plugin does not work on the latest kodi v21, it gives an error when installing, and cannot configure the server after installation. Kodi v21 has better support for Dolby, making it difficult to choose. Reinstalled, same result. Android. Bellow is log from kodi 2023-11-10 10:15:11.330 T:1320 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'xml.etree.ElementTree.ParseError'> Error Contents: not well-formed (invalid token): line 46, column 0 Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.emby-next-gen/service.py", line 6, in <module> hooks.monitor.StartUp() File "/storage/.kodi/addons/plugin.video.emby-next-gen/hooks/monitor.py", line 781, in StartUp Ret = setup() ^^^^^^^ File "/storage/.kodi/addons/plugin.video.emby-next-gen/hooks/monitor.py", line 745, in setup xmls.sources() File "/storage/.kodi/addons/plugin.video.emby-next-gen/helper/xmls.py", line 18, in sources xmlData = xml.etree.ElementTree.fromstring(xmlData) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 1338, in XML xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 46, column 0 -->End of Python script error report<-- 2023-11-10 10:15:11.331 T:1320 info <general>: CPythonInvoker(1, /storage/.kodi/addons/plugin.video.emby-next-gen/service.py): waiting on thread 546081205952 installed addon from stable and beta repository, behavior is the same. Link to comment Share on other sites More sharing options...
quickmic 1348 Posted November 23, 2023 Share Posted November 23, 2023 For some reason an upgrade to Kodi 21 seems to corrupt the sources.xml file (in Kodi's userdata folder) . You can delete the file and restart Kodi. This should solve the issue. BEFORE you delete the file, send the corrupt one to me for review, thanks. Link to comment Share on other sites More sharing options...
MIBORE99 1 Posted November 23, 2023 Author Share Posted November 23, 2023 3 hours ago, quickmic said: For some reason an upgrade to Kodi 21 seems to corrupt the sources.xml file (in Kodi's userdata folder) . You can delete the file and restart Kodi. This should solve the issue. BEFORE you delete the file, send the corrupt one to me for review, thanks. See attachment for source.xml After deletion, Kodi cannot be opened. After reinstalling Kodi, I reinstalled the plug-in and still got the error: 2023-11-23 14:17:58.856 T:16248 info <general>: EMBY.hooks.monitor: [ Start Emby-next-gen ] 2023-11-23 14:17:58.856 T:16248 info <general>: EMBY.hooks.webservice: -->[ Init ] 2023-11-23 14:17:58.864 T:16248 info <general>: EMBY.hooks.webservice: --<[ Init ] 2023-11-23 14:17:58.883 T:16248 info <general>: EMBY.helper.utils: Copied special://xbmc/system/library/video/ 2023-11-23 14:17:58.903 T:16248 info <general>: EMBY.helper.utils: Copied special://xbmc/system/library/music/ 2023-11-23 14:17:58.924 T:16248 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'xml.etree.ElementTree.ParseError'> Error Contents: not well-formed (invalid token): line 26, column 0 Traceback (most recent call last): File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.emby-next-gen/service.py", line 6, in <module> hooks.monitor.StartUp() File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.emby-next-gen/hooks/monitor.py", line 781, in StartUp Ret = setup() ^^^^^^^ File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.emby-next-gen/hooks/monitor.py", line 745, in setup xmls.sources() File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.emby-next-gen/helper/xmls.py", line 18, in sources xmlData = xml.etree.ElementTree.fromstring(xmlData) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.11/lib/python3.11/xml/etree/ElementTree.py", line 1338, in XML parser.feed(text) xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 26, column 0 -->End of Python script error report<-- 2023-11-23 14:17:58.925 T:16248 info <general>: CPythonInvoker(2, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.emby-next-gen/service.py): waiting on thread 519370194096 2023-11-23 14:17:59.513 T:16122 error <general>: CCurlFile::Open - <https://embydata.com/downloads/addons/xbmb3c/multi-repo/beta-nexus/plugin.video.embycon/icon.png> Failed with code 404: 2023-11-23 14:18:04.032 T:14558 info <general>: CActiveAESink::OpenSink - initialize sink 2023-11-23 14:18:04.033 T:14558 info <general>: Trying to open: samplerate: 44100, channelMask: 12, encoding: 4 2023-11-23 14:18:04.038 T:14558 info <general>: Minimum size we need for stream: 28288 Bytes 2023-11-23 14:18:04.038 T:14558 info <general>: Audiotrack buffer params are: period time = 40.091 ms, period size = 14144 bytes, num periods = 4 2023-11-23 14:18:04.038 T:14558 info <general>: Created Audiotrackbuffer with playing time of 160.362812 ms min buffer size: 56576 bytes 2023-11-23 14:18:04.065 T:14558 info <general>: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 56576 m_frames: 1768 m_frameSize: 8 channels: 2 2023-11-23 14:18:08.044 T:12436 info <general>: CAndroidUtils: Preferred refresh rate: 60.000004 2023-11-23 14:18:08.044 T:12436 info <general>: CAndroidUtils: Current resolution: 3044x1440 3044x1440 @ 60.000004 - Full Screen 2023-11-23 14:18:09.024 T:14268 info <general>: CWinSystemAndroid::DestroyWindow 2023-11-23 14:18:09.225 T:12436 warning <general>: CPeripheralBusAndroid: failed to update input device with ID 84 because it couldn't be found sources.xml Link to comment Share on other sites More sharing options...
MIBORE99 1 Posted November 23, 2023 Author Share Posted November 23, 2023 log file kodi.log Link to comment Share on other sites More sharing options...
Solution quickmic 1348 Posted November 23, 2023 Solution Share Posted November 23, 2023 The sourcefile is still corrupted. Try this one (replace the file). Kodi must shutdown before replacement. sources.xml Link to comment Share on other sites More sharing options...
quickmic 1348 Posted November 24, 2023 Share Posted November 24, 2023 Kodi bug, seems all xmls are affected. -> favourites.xml too. https://github.com/xbmc/xbmc/issues/24135 Link to comment Share on other sites More sharing options...
TeamB 2353 Posted November 24, 2023 Share Posted November 24, 2023 I can see and verify this is happeneing. it is adding a 00 null to the end of the xml files, it does not appread to be effecting the Kodi xml parser so not sure if they will consider this a bug or not. 1 Link to comment Share on other sites More sharing options...
quickmic 1348 Posted November 25, 2023 Share Posted November 25, 2023 (edited) 6 hours ago, TeamB said: not sure if they will consider this a bug or not. Probably not, that's why I usually don't report Kodi issues any more. There are so many, but every time I point it out they play dumb. I replaced the xml parser in next version with my own code. The xml lib is quite picky and not too stable. 6 hours ago, TeamB said: it does not appread to be effecting the Kodi xml parser Even if, it's still a corrupt/invalid file which could lead to side effects nobody can know yet. Could be also an issue in their "standard" file io code, if they have something like that. Maybe all files written by Kodi are affected. Anyway, they should check it. Edited November 25, 2023 by quickmic Link to comment Share on other sites More sharing options...
TeamB 2353 Posted November 25, 2023 Share Posted November 25, 2023 2 hours ago, quickmic said: Probably not, that's why I usually don't report Kodi issues any more. There are so many, but every time I point it out they play dumb. yeah same 2 hours ago, quickmic said: I replaced the xml parser in next version with my own code. The xml lib is quite picky and not too stable. be careful implementing your own parser, it is fraught with gotchas and pitfalls. might be better to just sanitise the file data before feeding it to the standard xml parser. Link to comment Share on other sites More sharing options...
MIBORE99 1 Posted November 26, 2023 Author Share Posted November 26, 2023 On 2023/11/23 at PM5点13分, quickmic said: 源文件仍然损坏。试试这个(替换文件)。更换前必须关闭 Kodi。 来源.xml 1.62 KB · 3次下载 Great, this works,thanks 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now