jluce50 118 Posted July 15, 2016 Share Posted July 15, 2016 This has been happening pretty regularly on two clients (FTV and Windows 10). I've read a few of the other reports and I don't think I've seen this particular error. 19:08:20 T:11836 NOTICE: EMBY Default -> plugin.video.emby started 19:08:20 T:11836 NOTICE: EMBY Default -> Parameter string: ?id=TV Shows&mode=nextup&limit=25&reload= 19:08:20 T:11344 NOTICE: script.tv.show.next.aired: ### getting series & episode info for #250793 - Ridiculousness 19:08:20 T:11836 NOTICE: EMBY Default -> plugin.video.emby stopped 19:08:21 T:11344 NOTICE: script.tv.show.next.aired: ### getting series info for #80379 - The Big Bang Theory 19:08:21 T:11344 NOTICE: script.tv.show.next.aired: ### getting series & episode info for #279121 - The Flash (2014) 19:08:21 T:11344 NOTICE: script.tv.show.next.aired: ### getting series info for #114701 - The League 19:08:21 T:11344 NOTICE: script.tv.show.next.aired: ### getting series & episode info for #71663 - The Simpsons 19:08:22 T:11344 NOTICE: script.tv.show.next.aired: ### getting series info for #95491 - The Vampire Diaries 19:08:23 T:11344 NOTICE: script.tv.show.next.aired: ### getting series info for #74608 - Top Gear 19:08:23 T:11344 NOTICE: script.tv.show.next.aired: ### data update finished 19:08:24 T:11824 NOTICE: EMBY WebSocket_Client -> Message: {"MessageType":"LibraryChanged","Data":{"FoldersAddedTo":[],"FoldersRemovedFrom":[],"ItemsAdded":[],"ItemsRemoved":[],"ItemsUpdated":[]}} 19:08:24 T:11972 NOTICE: EMBY Artwork -> Using Image Cache Thread Count: 0 19:08:24 T:11972 NOTICE: EMBY Default -> plugin.video.emby started 19:08:24 T:11972 NOTICE: EMBY Default -> Parameter string: ?id=TV Shows&mode=nextup&limit=25&reload=20160715000822 19:08:24 T:11972 NOTICE: EMBY Default -> plugin.video.emby stopped 19:08:25 T:11828 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\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 900, in run self.run_internal() File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 970, in run_internal librarySync = self.startSync() File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 89, in startSync completed = self.fastSync() File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 107, in fastSync lastSyncTime = utils.convertDate(lastSync) File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\utils.py", line 225, in convertDate date = datetime.strptime(date, "%Y-%m-%dT%H:%M:%SZ") ImportError: Failed to import _strptime because the import lockis held by another thread. 19:08:28 T:4700 NOTICE: Storing total System Uptime 19:08:28 T:4700 NOTICE: Saving settings 19:08:28 T:4700 NOTICE: stop all 19:08:28 T:11356 NOTICE: EMBY KodiMonitor -> Method: System.OnQuit Data: {"exitcode":0} 19:08:28 T:11444 ERROR: dll_fgets emulated function failed 19:08:29 T:4700 NOTICE: stop player 19:08:29 T:4700 NOTICE: ES: Stopping event server 19:08:29 T:4700 NOTICE: stopping upnp 19:08:29 T:11436 NOTICE: ES: UDP Event server stopped 19:08:29 T:11580 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.emby/?id=tv shows&mode=nextup&limit=25 19:08:29 T:4700 NOTICE: WebServer: Stopped the webserver I've attached the entire log file as well. kodi.old.old.log Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 15, 2016 Share Posted July 15, 2016 (edited) Thanks for the report. I've seen it as well, but haven't been able to reproduce it. Can you try this build, let me know if it helps. Edited July 16, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
jluce50 118 Posted July 15, 2016 Author Share Posted July 15, 2016 Thanks for the report. I've seen it as well, but haven't been able to reproduce it. Can you try this build, let me know if it helps. Okay, installed the test build and immediately got the same error. 08:02:02 T:15080 NOTICE: EMBY Service -> ======== START EMBY ======== 08:02:02 T:15080 NOTICE: EMBY Service -> Platform: Windows 08:02:02 T:15080 NOTICE: EMBY Service -> KODI Version: 16.1 Git:20160424-c327c53 08:02:02 T:15080 NOTICE: EMBY Service -> EMBY Version: 2.2.16~alpha 08:02:02 T:15080 NOTICE: EMBY Service -> Using plugin paths: False 08:02:02 T:15080 NOTICE: EMBY Service -> Log Level: 1 08:02:02 T:15080 NOTICE: EMBY VideoNodes -> Clearing nodes properties. 08:02:02 T:15080 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ImportError'> Error Contents: Failed to import _strptime because the import lockis held by another thread. Traceback (most recent call last): File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py", line 293, in <module> Service().ServiceEntryPoint() File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py", line 91, in ServiceEntryPoint datetime.strptime('2012-01-01', '%Y-%m-%d') ImportError: Failed to import _strptime because the import lockis held by another thread. -->End of Python script error report<-- 08:02:02 T:15080 WARNING: CPythonInvoker(9, C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py): the python script "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon 08:02:02 T:15864 NOTICE: [xbmcswift2] Request for "/" matches rule for function "show_movies" 08:02:08 T:15776 ERROR: XFILE::CDirectory::GetDirectory - Error getting &reload=20160715130208 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 15, 2016 Share Posted July 15, 2016 Ok thanks for letting me know. You can simply uninstall the addon and install the previous version or try to rollback. No need for any type of reset. I will keep looking for a solution to this python bug. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 16, 2016 Share Posted July 16, 2016 (edited) @@jluce50 Can you give this build a try? Let me know, as usual, thanks. Edited July 16, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
jluce50 118 Posted July 16, 2016 Author Share Posted July 16, 2016 (edited) @@Angelblue05 Okay, I deleted the old version, including settings, and then installed this one. It immediately threw this error (before the setup wizard started): 06:18:09 T:2920 NOTICE: [xbmcswift2] Request for "/" matches rule for function "show_movies" 06:18:17 T:9920 ERROR: XFILE::CDirectory::GetDirectory - Error getting &reload=20160716111816 06:18:34 T:10104 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.AttributeError'> Error Contents: 'module' object has no attribute 'timeIt' Traceback (most recent call last): File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py", line 24, in <module> import userclient File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\userclient.py", line 15, in <module> import downloadutils File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\downloadutils.py", line 27, in <module> class DownloadUtils(): File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\downloadutils.py", line 361, in DownloadUtils @utils.timeIt AttributeError: 'module' object has no attribute 'timeIt' -->End of Python script error report<-- kodi2.log Edited July 16, 2016 by jluce50 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 16, 2016 Share Posted July 16, 2016 Grr, I thought I removed that line before packing the zip. Ok, I will rezip it without the typo, I'm sorry about this. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
jluce50 118 Posted July 16, 2016 Author Share Posted July 16, 2016 No worries. Just let me know when it's ready and I'll try again :-) 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 16, 2016 Share Posted July 16, 2016 (edited) @@jluce50 This build should work correctly. Now, just to know if it also fixes the striptime error... *fingers crossed* Edited July 17, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
jluce50 118 Posted July 17, 2016 Author Share Posted July 17, 2016 @@Angelblue05 I didn't really have a chance to test until last night. Didn't do too much, but I watched a few shows and everything seemed fine. However, I started up Kodi just now to check one last time and got the "Library thread has exited" error. 08:40:55 T:8504 NOTICE: EMBY Default -> plugin.video.emby started 08:40:55 T:8504 NOTICE: EMBY Default -> Parameter string: ?id=0&mode=channels 08:40:55 T:8504 NOTICE: EMBY Artwork -> Using Image Cache Thread Count: 25 08:40:55 T:8504 NOTICE: EMBY Default -> plugin.video.emby stopped 08:41:13 T:1920 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\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 900, in run self.run_internal() File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 970, in run_internal librarySync = self.startSync() File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 89, in startSync completed = self.fastSync() File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 107, in fastSync lastSyncTime = utils.convertDate(lastSync) File "C:\Users\Jeremy\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\utils.py", line 223, in convertDate date = datetime(*(time.strptime(date, "%Y-%m-%dT%H:%M:%SZ")[0:6])) ImportError: Failed to import _strptime because the import lockis held by another thread. kodi2.log 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 17, 2016 Share Posted July 17, 2016 (edited) Grr ok. Thanks for letting me know... This python bug will need to be resolved a different way... I will keep looking Sent from my iPhone using Tapatalk Edited July 17, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 17, 2016 Share Posted July 17, 2016 @@jluce50 Ok! Try this build. I am going through the list of potential fix... I hope this does it. 1 Link to comment Share on other sites More sharing options...
jluce50 118 Posted July 18, 2016 Author Share Posted July 18, 2016 Okay, I just installed it. No errors when I closed and restarted Kodi, but I don't have time to test any further right now. I'll be watching some stuff later tonight and I'll report back. Thanks! 1 Link to comment Share on other sites More sharing options...
jasonmcroy 315 Posted July 19, 2016 Share Posted July 19, 2016 I just wanted to jump in here to let you know that I installed the alpha you posted above and it has handled so far the issues I was seeing the thread exiting message. I have opened and closed the app about 10 times, played a few videos, etc. I am using it on the Shield with SPMC just FYI. 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 19, 2016 Share Posted July 19, 2016 Awesome, thanks for letting me know @@jasonmcroy I will release a new build in a few hours containing the fixes. Sent from my iPhone using Tapatalk 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 19, 2016 Share Posted July 19, 2016 (edited) @@jluce50 I went ahead and pushed the latest fix to 2.2.16. Please let me know if you still experience this issue. Otherwise I am considering this problem as resolved (hopefully ) Edited July 19, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
jluce50 118 Posted July 20, 2016 Author Share Posted July 20, 2016 Awesome, thanks so much for your work on this. Unfortunatey, we had a medical emergency in the family so I don't know when I'll be ablle to test. I'm sure the rest of the community can make sure this is resolved 1 Link to comment Share on other sites More sharing options...
Recommended Posts