fattony 4 Posted November 5, 2016 Share Posted November 5, 2016 Client Kodi (osx) Server Archlinuxarm (cubox) Emby-server 3.0.8500.0 Mono 4.6.1.3 Plugin Sync Queue 1.3.6140.33416 (Release) Hi There I am haveing a problem with (I think) the Sync Queue plugin After watching a show (on kodi) the watched flag is not stored properly (by which i mean a tick is applied but if i navigate away from the current season and then back the tick has disappeared) Also the resume point is not working as should, if a show is stoped mid way through and subsequently replayed, the resume dialog is displayed asking to start from beginning or from resume point (the correct time stamp is displayed) but if played from resume point the show is started at the beginning. The problems are all exhibited with direct play on various clients running osx with kodi. Also there is excessive cpu usage on the mono thread on the arch/emby server If the Sync Queue plugin is uninstalled everything is working as it should be. Not sure on forum rules about posting code so i will leave just a snippet of what i think is the relevant error. If you would like the full log then let me know. 2016-11-05 02:43:31.6084 Error HttpServer: Error in SharpWebSocket: An exception has occurred while receiving a message.. Exception.Message: The header part of a frame cannot be read from the data source. 2016-11-05 02:43:31.6347 Debug SessionManager: Disposing session controller WebSocketController 2016-11-05 02:43:31.6925 Info App: Emby.Kodi.SyncQueue: Starting User Changes Sync... 2016-11-05 02:43:31.7226 Debug App: Emby.Kodi.SyncQueue: Starting to save items for 1c7ad474-ab44-4771-bfff-49ef0aaed425 2016-11-05 02:43:32.3849 Debug App: Emby.Kodi.SyncQueue: Updating ItemId '970e767e23390e812a79b161c04e681d' for UserId: '1c7ad474ab444771bfff49ef0aaed425' 2016-11-05 02:43:32.7695 Error App: Emby.Kodi.SyncQueue: An Error Has Occurred in UserUpdateTimerCallback: One or more errors occurred. 2016-11-05 02:43:32.8137 Error App: One or more errors occurred. *** Error Report *** Version: 3.0.8500.0 Command line: /usr/lib/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe Operating system: Unix 3.14.79.1 Processor count: 4 64-Bit OS: False 64-Bit Process: False Program data path: /var/lib/emby Mono: 4.6.1 (Stable 4.6.1.3/abb06f1 Mon Oct 3 03:38:29 MDT 2016) Application Path: /usr/lib/emby-server/MediaBrowser.Server.Mono.exe One or more errors occurred. System.AggregateException at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00242] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, System.Int32 millisecondsTimeout) [0x00000] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks) [0x00000] in <be294a15284a463fa72ebe015ef8fb29>:0 at Emby.Kodi.SyncQueue.EntryPoints.UserSyncNotification.UpdateTimerCallback (System.Object state) [0x00072] in <2c05f664fe20472498ba76b35fc0ae1f>:0 InnerException: LiteDB.TransactionCancelledException This transaction is cancelled due to an aborted transaction at LiteDB.LiteTransaction.Rollback () [0x00041] in <2c05f664fe20472498ba76b35fc0ae1f>:0 at Emby.Kodi.SyncQueue.Data.DbRepo+<>c__DisplayClass17_0.<SetUserInfoSync>b__0 (MediaBrowser.Model.Dto.UserItemDataDto dto) [0x0020f] in <2c05f664fe20472498ba76b35fc0ae1f>:0 at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00035] in <be294a15284a463fa72ebe015ef8fb29>:0 at Emby.Kodi.SyncQueue.Data.DbRepo.SetUserInfoSync (System.Collections.Generic.List`1[T] dtos, System.Collections.Generic.List`1[T] itemRefs, System.String userName, System.String userId, System.Threading.CancellationToken cancellationToken) [0x0001c] in <2c05f664fe20472498ba76b35fc0ae1f>:0 at Emby.Kodi.SyncQueue.EntryPoints.UserSyncNotification+<>c__DisplayClass22_0.<SaveUserChanges>b__0 () [0x0002c] in <2c05f664fe20472498ba76b35fc0ae1f>:0 at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x00012] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Threading.Tasks.Task.Execute () [0x00016] in <be294a15284a463fa72ebe015ef8fb29>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <be294a15284a463fa72ebe015ef8fb29>:0 at Emby.Kodi.SyncQueue.EntryPoints.UserSyncNotification+<SaveUserChanges>d__22.MoveNext () [0x000e2] in <2c05f664fe20472498ba76b35fc0ae1f>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <be294a15284a463fa72ebe015ef8fb29>:0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <be294a15284a463fa72ebe015ef8fb29>:0 at Emby.Kodi.SyncQueue.EntryPoints.UserSyncNotification+<SendNotifications>d__21.MoveNext () [0x001ac] in <2c05f664fe20472498ba76b35fc0ae1f>:0 My first time posting on here so i would like to say thank you to all the developers involved, I have only just begun using emby to replace a mysql (maddening) setup i had to sync up kodi libraries across 3 geographic locations and so far its like night and day, so… Thank you Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted November 5, 2016 Share Posted November 5, 2016 (edited) Are you saying you are watching content in Kodi, then right away it becomes unwatched? If so, that's not the plugin as it's only used when first starting Kodi (loading a Kodi profile). If the watch status is messed up without restarting Kodi, then your issue is something else. Can you provide your Kodi log capturing this issue? Follow this here: https://emby.media/community/index.php?/topic/17599-how-to-report-a-problem/ Can you also confirm your content does have a runtime assigned? Go to the Emby webclient, to your problematic content and scroll all the way down to media info. If there's no runtime, then it's normal the watch status is not functioning as it should. @@jurmb84 check the error in log above. Edited November 5, 2016 by Angelblue05 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted November 5, 2016 Share Posted November 5, 2016 (edited) Edit: Oops, looks like runtime is found at the top, next to the poster/thumbnail in the emby webclient, after selecting content. Edited November 5, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
fattony 4 Posted November 5, 2016 Author Share Posted November 5, 2016 Hi, Thanks for your replies. I have just reinstalled the plugin, and I am unable to repeat the faults I described above. Which is weird as yesterday it was very repeatable if I installed the plugin the issues were there and disappeared when the plugin was uninstalled. Anyway all seems fine at the moment, I will leave the plugin enabled and if the problems reappear then I will get back with the information/logs you requested above. Thanks again. 1 Link to comment Share on other sites More sharing options...
fattony 4 Posted November 17, 2016 Author Share Posted November 17, 2016 (edited) Hi, The issues I described above have returned. The cpu is back to 100% on one of the cores for mono (usually around 5-10%) The runtime is displayed via emby webclient (re your question above) In the kodi client (as before) The watched flag will not stick, as above after a show has finished playing a tick is placed at the side of that show to signify it has been watched. I then navigate away by pressing the back button, when i return to that show the tick has gone and is listed as unwatched. If I look at there media that was played on kodi client, on the emby webclient it is displayed as watched. Also when I start kodi emby is preforming a full manual sync, suggesting (I think) Sync Queue plugin is not working properly I am including the kodi log you requested emby server log also I noticed a unhandled log file in the list of logs. so i have included that (not sure if relevant) Kind regards, kodi.log Log.txt unhandled_c67fa9b9-cdc8-4099-80bd-d538f4c4d60c.txt.Log.txt Edited November 17, 2016 by fattony Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted November 19, 2016 Share Posted November 19, 2016 (edited) @@fattony sorry you are having difficulties. Your log is incomplete, in the sense that it seems Kodi was exited before we got the response back from the server that the item is marked as watched (it actually seems when we tried to contact your server, it was unreachable). Please do the test and wait a bit longer after playback ended to grab your log. Thanks. Edited November 19, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
fattony 4 Posted November 19, 2016 Author Share Posted November 19, 2016 Thanks for your continued assistance, Log as requested, left it 5 mins this time. kodi-2.log Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted November 19, 2016 Share Posted November 19, 2016 Are you playing the file in Kodi or is it an external player? Could you give beta a try and see if it fixes the issue? You can follow this here, once you access the source, the build is in the public testing folder: https://github.com/MediaBrowser/plugin.video.emby/wiki/Emby-Repository let me know, thanks Link to comment Share on other sites More sharing options...
fattony 4 Posted November 19, 2016 Author Share Posted November 19, 2016 Yes the file is indeed being played in kodi. Not sure how the kodi emby plugin could cause the high cpu usage on the emby server even when kodi is exited? Again if i disable the Sync Queue plugin on the emby server the high cpu usage on the server disappears and also the watched status functions as it should. Will test the beta and let you know Thanks, Link to comment Share on other sites More sharing options...
fattony 4 Posted November 19, 2016 Author Share Posted November 19, 2016 Just tested kodi emby plugin ver 2.3.19 from the public testing folder: I am getting a popup massage... Library sync thread has exited! followed by error massages (unable to cut and paste it for you) included kodi log kodi-3.log Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted November 19, 2016 Share Posted November 19, 2016 @ Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
fattony 4 Posted November 19, 2016 Author Share Posted November 19, 2016 Hi, I have no music library's just Tv and Movies and ... The "Enable Music Library" option within the kodi emby plugin is disabled The "Items to Track" selections within the Sync Queue plugin settings on the emby server. Music and Music Videos are disabled. Regards, Link to comment Share on other sites More sharing options...
fattony 4 Posted November 21, 2016 Author Share Posted November 21, 2016 Sorry for delay, So far as i know there should be no changes as the DB is up to date and no new media has been added. I have uninstalled the Sync Queue plugin and all is working fine again, so i will run the server like this for a while to rule out the plugin. Will report back if when the issues return. Regards, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now