Jump to content

Music Library - library sync thread has exited


nurgle

Recommended Posts

nurgle

Hi,

 

I'm trying to setup Kodi 16.1 using the Emby for Kodi addon v2.2.12 and I keep getting library sync thread has excited when scanning the music library. Movies and TV all scan OK but once I get to adding Music I get the library sync thread has excited at the same place every time.

 

12:52:19 T:140588070450944  NOTICE: EMBY MusicTools -> getting song ID3 tags for /storage/.kodi/temp/01 - Lady Gaga - Bad Romance.mp3
12:52:19 T:140588070450944  NOTICE: EMBY MusicTools -> getAdditionalSongTags --> embyid: 271ea1474ec84fef505b75ca763fe83e - emby_rating: 1 - file_rating: 0 - current rating in kodidb: None
12:52:19 T:140588070450944  NOTICE: EMBY Music -> ADD song itemid: 271ea1474ec84fef505b75ca763fe83e - Title: Bad Romance
12:52:22 T:140588070450944  NOTICE: EMBY MusicTools -> getting song ID3 tags for /storage/.kodi/temp/01 - Freddie Mercury & Montserrat Caballé - Barcelona.mp3
12:52:23 T:140588070450944   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: log() takes at most 3 arguments (4 given)
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.emby/default.py", line 141, in <module>
                                                Main()
                                              File "/storage/.kodi/addons/plugin.video.emby/default.py", line 123, in __init__
                                                librarysync.ManualSync().sync(dialog=True)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 1023, in sync
                                                return self.fullSync(manualrun=True, forceddialog=dialog)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 287, in fullSync
                                                completed = self.music(embycursor, musiccursor, pDialog)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 1446, in music
                                                process[data_type][1](embyitem)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/itemtypes.py", line 1994, in add_updateSong
                                                rating, comment, hasEmbeddedCover = musicutils.getAdditionalSongTags(itemid, rating, API, kodicursor, emby_db, self.enableimportsongrating, self.enableexportsongrating, self.enableupdatesongrating)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/musicutils.py", line 79, in getAdditionalSongTags
                                                file_rating, comment, hasEmbeddedCover = getSongTags(filename)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/musicutils.py", line 225, in getSongTags
                                                log("Exception in getSongTags", str(e),0)
                                            TypeError: log() takes at most 3 arguments (4 given)
                                            -->End of Python script error report<--
12:52:23 T:140588070450944 WARNING: CPythonInvoker(3, /storage/.kodi/addons/plugin.video.emby/default.py): the python script "/storage/.kodi/addons/plugin.video.emby/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon4xbmc7MonitorE,N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon9xbmcaddon5AddonE
12:52:23 T:140589264087168   ERROR: GetDirectory - Error getting plugin://plugin.video.emby/?mode=manualsync
12:52:23 T:140589264087168   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.emby/?mode=manualsync) failed
12:52:24 T:140588070450944  NOTICE: EMBY Artwork -> Using Image Cache Thread Count: 0
12:52:24 T:140588070450944  NOTICE: EMBY Default -> plugin.video.emby started
12:52:24 T:140588070450944  NOTICE: EMBY Default -> Parameter string:
12:52:24 T:140588070450944  NOTICE: EMBY Default -> plugin.video.emby stopped
12:53:56 T:140589264087168  NOTICE: NFS is idle. Closing the remaining connections.
 
The music library is quite large 33656 songs so i'm not sure if that has something to do with it. I have the same problem on different devices (Nvidia Shield TV and Linux using LibreElec 7.0.2). It seems to process artists and albums and then once it gets to songs this is where it bombs out. Any help would be appreciated.
 
Many thanks,
 
Nurgle
Link to comment
Share on other sites

Angelblue05

Thanks for reporting. I will correct this error.

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

nurgle

Thank you!

 

I've managed to work around the issue for now by disabling the "Import Music Song Rating Directly From Files" option.

Link to comment
Share on other sites

  • 2 weeks later...
carpediem

@@nurgle

 

If you can test this build - let me know.

Angelblue05,

 

Thanks for this build! I was finally able to sync my Music Collection today without the Library Sync Thread exit error after 3 months! Funny thing is I installed the same version on 2 clients and one still failed. That's OK though, I'll just copy the database over. Can you please shed some light on what is causing this issue?

  • Like 1
Link to comment
Share on other sites

Angelblue05

Edit: in this case, it was just a typo in the code causing the crash. But this error only was in one build - nothing that would resolve a crash that's been happening for 3 months... Hmm

 

 

Sent from my iPhone using Tapatalk

Edited by Angelblue05
Link to comment
Share on other sites

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