Jump to content

Sync Error message "Library thread has exited restart kodi"


Recommended Posts

Posted

Hi,

does someone know how to fix this?

 

Kodi for Emby Sync exits at startup. The renew of the local Kodi DB doesn´t worked in this case.

 

 

Kodi.log: http://xbmclogs.com/peqzhkojg

 

 

 

Kind regards

Tom

Posted

Same here. Started after 1.1.75. I think this part of the log is relevant:

21:32:14 T:9248  NOTICE: Using Image Cache Thread Count: 0 -> 1
21:32:14 T:9248  NOTICE: Previous line repeats 1 times.
21:32:14 T:9248  NOTICE: EMBY Music -> Update playstate for song: Fresh Off The Runway
21:32:14 T:9248  NOTICE: Emby musictools -> getting song ID3 tags for \\west\music\Rihanna\Unapologetic\Rihanna - Fresh Off The Runway.mp3
21:32:16 T:17256  NOTICE: metahandler: No SQLite rows requiring update
21:32:17 T:9248  NOTICE: Previous line repeats 1 times.
21:32:17 T:9248   ERROR: Exception in thread Thread-10:
                                            Traceback (most recent call last):
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner
                                                self.run()
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1123, in run
                                                self.run_internal()
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1217, in run_internal
                                                self.incrementalSync()
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1076, in incrementalSync
                                                doupdate = items_process.itemsbyId(items, type, pDialog)
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 197, in itemsbyId
                                                actions[process](item)
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 2191, in updateUserdata
                                                rating, comment = self.getSongRatingAndComment(itemid, rating, API)
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 2231, in getSongRatingAndComment
                                                file_rating = int(round(file_rating,0))
                                            TypeError: a float is required
21:32:19 T:14808  NOTICE: EMBY WebSocket_Client -> Message: {"MessageType":"LibraryChanged","Data":{"FoldersAddedTo":[],"FoldersRemovedFrom":[],"ItemsAdded":[],"ItemsRemoved":[],"ItemsUpdated":[]}}
21:32:35 T:17256   ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out
21:32:35 T:17256  NOTICE: metahandler: No SQLite rows requiring update
21:32:50 T:17256  NOTICE: Previous line repeats 3 times.
21:32:50 T:17256   ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out
21:32:50 T:17256  NOTICE: metahandler: No SQLite rows requiring update
21:33:08 T:17256   ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out
21:33:08 T:17256   ERROR: metahandler: ************* Error Date conversion failed: time data u'N/A' does not match format '%d %b %Y'
21:33:08 T:17256   ERROR: metahandler: ************* Error Date conversion failed: time data u'N/A' does not match format '%b %Y'
21:33:08 T:17256  NOTICE: metahandler: No SQLite rows requiring update
21:33:19 T:17256  NOTICE: Previous line repeats 1 times.
21:33:19 T:17256   ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out
21:33:19 T:17256  NOTICE: metahandler: No SQLite rows requiring update
21:33:33 T:17256  NOTICE: Previous line repeats 2 times.
21:33:33 T:17256   ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out
21:33:33 T:17256  NOTICE: metahandler: No SQLite rows requiring update

Angelblue05
Posted

Where did you guys get this build from?

 

 

Sent from my iPhone using Tapatalk

Posted

Same error here with 1.1.75. I guess it was updated automatically, at least I didn't update it manually.

Posted (edited)

Where did you guys get this build from?

 

 

Sent from my iPhone using Tapatalk

 

1.0.4 Beta repo as usual ;)

Edited by denethor
Angelblue05
Posted

Ah, I'm just getting up. I wasn't aware we had already pushed to beta. Looking into it.

Angelblue05
Posted (edited)

Want to give this build a try? Let me know if you still encounter the issue. Thanks

Edited by Angelblue05
Posted

Want to give this build a try? Let me know if you still encounter the issue. Thanks

 

 

Still fails but different story, "TypeError: a float is required" :

00:02:48 T:14488   ERROR: JSONRPC: Failed to parse '{ "jsonrpc": "2.0", "method" : "Files.GetDirectory", "params": { "properties": ["title","art","thumbnail"], "directory": "v:\Kodi\userdata\playlists\music\PartyMode.xsp", "media": "files", "limits": {"end":250}, "sort": { "order": "ascending", "method": "random", "ignorearticle": true } }, "id":1 }'
00:02:50 T:16396   ERROR: Exception in thread Thread-10:
                                            Traceback (most recent call last):
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner
                                                self.run()
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1123, in run
                                                self.run_internal()
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1217, in run_internal
                                                self.incrementalSync()
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1076, in incrementalSync
                                                doupdate = items_process.itemsbyId(items, type, pDialog)
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 197, in itemsbyId
                                                actions[process](item)
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 1957, in add_updateSong
                                                rating, comment = self.getSongRatingAndComment(itemid, rating, API)
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 2231, in getSongRatingAndComment
                                                file_rating = int(round(file_rating,0))
                                            TypeError: a float is required
00:02:51 T:6872  NOTICE: metahandler: No SQLite rows requiring update
Posted

Hello,

 

I had the same problem after the last update. So I made a patch but I am not certain there is no side effect. This allows a full sync when waiting a more official correction. For the brave only ;)

 

 

plugin.video.emby-1.1.75.zip

Angelblue05
Posted (edited)

I'm still looking into it, but as I'm not familiar with the code... @@marcelveldt

 

I tried removing this from musicutils line 87:

if rating:
    rating = int(round(rating,0))

The rating is returned as an integer. And that's why I thought file_rating gave an error that it requires a float. But seems to not resolve the issue.

Edited by Angelblue05
Posted (edited)

Hi angel,

 

The problem is when the currentvalue is 0. The script test if file_rating is none and if currentvalue is none or if it's true (line 2226 in itemtypes.py). But 0 is not true and not none, and we have a file_rating with a none value in a round function. The crash is inevitable. My patch force the script to consider 0 as a correct value when file_rating is none.

Edited by lekekoo
  • Like 2
Posted (edited)

Maybe it's link with the last update of the server

Edited by lekekoo
Angelblue05
Posted (edited)

Here we go: Test this version, confirm it works so I can push to beta. Thanks :)

 

@ no it's not your images.

 

Edit: The fix is in beta, version 1.1.76

Edited by Angelblue05
  • Like 1
Posted

Here we go: Test this version, confirm it works so I can push to beta. Thanks :)

 

@ no it's not your images.

 

 

Also confirmed here ;) Thanks once again for the ultra fast responses

  • Like 2
Posted

Here we go: Test this version, confirm it works so I can push to beta. Thanks :)

 

@ no it's not your images.

 

Not working for me, still the same error.

Angelblue05
Posted (edited)

@@Crular

 

Your error is different. Can you try this build? Let me know if it resolves your issue.

 

Edit: The fix is in beta 1.1.76.

Edited by Angelblue05
Posted

@@Crular

 

Your error is different. Can you try this build? Let me know if it resolves your issue.

Yes, no more error and sync worked again.

  • Like 1
Guest
This topic is now closed to further replies.
×
×
  • Create New...