Closed sishrad closed 4 years ago
I have tried the plugin with kodi 18.4 and the current git version, not so different from 0.8.0.2, but i have found no crashes. Can you send me the url you sent to the server? In the log it should be some line before the error. If it doesn't appear, you have to activate notice level in xbmc debug. If the url is correct, it seems an urlib2 error. The function simply send a request to the server for a song. The only problem we could have is incorrect url ( unsupported protocol(plugin) ) . Maybe reinstalling the plugin and check the configuration should help, but without the url i cannot check the corrrectness of the procedure.
Ok, i have found that this plugin have some problem with network failures, i will work on it
I have committed a better connection error handling, test it if your crashes disappear
Sorry for the delay in response. I've updated to master.zip and am trying to replicate the error.
Some server requests, if it helps: 10:21:01.966 T:1507382176 NOTICE: http://twomprfm/server/xml.server.php?action=album_songs&auth=925a8bec994a9da459193a46028ca87c&limit=5000&offset=0&filter=4149 10:21:09.230 T:1857033120 NOTICE: http://twomprfm/server/xml.server.php?action=song&auth=925a8bec994a9da459193a46028ca87c&limit=5000&offset=0&filter=49562 10:23:25.870 T:1601880992 NOTICE: http://twomprfm/server/xml.server.php?action=song&auth=925a8bec994a9da459193a46028ca87c&limit=5000&offset=0&filter=49563 10:26:25.761 T:1515770784 NOTICE: http://twomprfm/server/xml.server.php?action=song&auth=925a8bec994a9da459193a46028ca87c&limit=5000&offset=0&filter=49552 10:29:54.135 T:1857033120 NOTICE: http://twomprfm/server/xml.server.php?action=song&auth=925a8bec994a9da459193a46028ca87c&limit=5000&offset=0&filter=49550
I will post any error messages if I encounter any. Thank you.
The requests seem regulars
I have changed the play_track structure and get rid of the call that cause this problem. The plugin only support 18.4. The crashes are a kodi bug, not an ampache plugin bug, i have found the same bug with other plugin. I explain, if you call another function when a setresolvedurl is called, kodi crashes. So i will wait, as anyone, that kodi team fix this bug.
TL;DR This most often occurs at the end of a song but has occurred when launching the plugin. During playback, the playlist proceeds to the next song once the timeout period has elapsed and the error notification is shown.
Environment: RaspPi Zero W running Kodi 17.6 and ampache-xbmc-plugin 0.8.0.2
Everything was running fine (except for the minor scrobble issue I raised last year). However when I recently upgraded Kodi to 18.4 I encountered frequent crashes. So I wiped the memory card and reinstalled 17.6. Then this issue began. I cannot think of how this install differs from the original.
I have run update on the server and restarted it, to no avail (I noticed it updated some Python libraries).
From kodi.log: 16:05:12.178 T:1543500704 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--