v19 Matrix and Nexus are very slow to start a file from URL
#1
Basically, I have a plugin that I've been working on that has Py2/3 compatibility, so it works on Krypton to Nexus with no code changes (slightly different code paths, but just updates for things like list item formats).
In Krypton and Leia, it starts immediately as if it was local, because it is, but via a URL through another service. In Matrix and Nexus, it takes like 5-10 seconds, and it seems to lag at the demuxer, based on the logs. I'm not digging up logs for all 4 versions, but here's Krypton and Nexus.

Nexus
Krypton

The Player class

I have used web-pdb and stopwatch logging, and it gets through the entire play_video function in under 1s, and then it passes off to Kodi, where it takes a long time to play. Any advice would be appreciated.
Developer for Shoko and Nakamori. Long time user of Kodi, before it was even called Kodi. My XBOX died long ago, but Windows is still just as broken and necessary. I obviously watch anime, given my first comment. Video games, manga, music, you name it.
Reply
#2
A very interesting update on this: I looked at the Krypton log again, and I had that going over the internet via my remote endpoint, and Nexus was running over LAN. It's fast over the internet but not LAN? I'm not sure how that works, but it's worth looking into.
Developer for Shoko and Nakamori. Long time user of Kodi, before it was even called Kodi. My XBOX died long ago, but Windows is still just as broken and necessary. I obviously watch anime, given my first comment. Video games, manga, music, you name it.
Reply
#3
Providing only fractions of the Kodi log file, which also do not seem to have 'debugging' enabled, will not give us the full picture.
Reply
#4
New, debuggier Nexus log

New, working Nexus log

I've been investigating it, myself. From that log, it seems like it might be the subtitle scanner trying to pick up that URL as if it were a normal directory, and then failing after 10s.

Sorry, forgot debug logs were a thing. It's been a few years since I've worked on kodi stuff.
Developer for Shoko and Nakamori. Long time user of Kodi, before it was even called Kodi. My XBOX died long ago, but Windows is still just as broken and necessary. I obviously watch anime, given my first comment. Video games, manga, music, you name it.
Reply
#5
I can confirm it happens on Krypton, Leia, Matrix, Nexus, and the Omega nightly from 2023-07-10.

I've been cleaning up the addon, so this log has a lot less deprecation garbage. Omega Log.

These are the lines that I worry about:
Lines of concern:

2023-07-11 18:18:53.502 T:24972   debug <general>: CUtil::ScanForExternalSubtitles: Searching for subtitles...
2023-07-11 18:18:53.502 T:24972   debug <general>: CurlFile::XFILE::CCurlFile::Open - <http://15.129.1.6:8111/Stream/83542/1/False/>
2023-07-11 18:18:53.563 T:19856   debug <general>: ------ Window Init (DialogBusy.xml) ------
2023-07-11 18:19:23.460 T:7780    debug <general>: Thread JobWorker 7780 terminating (autodelete)
2023-07-11 18:19:23.460 T:17280   debug <general>: Thread JobWorker 17280 terminating (autodelete)
2023-07-11 18:19:23.466 T:25588   debug <general>: Thread JobWorker 25588 terminating (autodelete)
2023-07-11 18:19:28.194 T:24972   error <general>: XFILE::CDirectory::GetDirectory - Error getting http://15.129.1.6:8111/Stream/83542/1/False/
2023-07-11 18:19:28.194 T:24972   debug <general>: CUtil::ScanForExternalSubtitles: END (total time: 34693 ms)

The file url is http://15.129.1.6:8111/Stream/83542/1/False/file.mkv

Might be related to https://github.com/xbmc/xbmc/issues/21193
Developer for Shoko and Nakamori. Long time user of Kodi, before it was even called Kodi. My XBOX died long ago, but Windows is still just as broken and necessary. I obviously watch anime, given my first comment. Video games, manga, music, you name it.
Reply

Logout Mark Read Team Forum Stats Members Help
Matrix and Nexus are very slow to start a file from URL0