Kodi Community Forum
[RELEASE] Trakt Utilities (addon for Trakt.tv usage) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Trakt Utilities (addon for Trakt.tv usage) (/showthread.php?tid=98582)



running beta 7 - jetskijoe - 2012-02-09

othrayte,

I am running your pre 0.7 beta and I get the following error:

Code:
22:49:02 T:1060   DEBUG: CVideoDatabase::RunQuery took 329 ms for 17 items query: SELECT * FROM tvshowview
22:49:03 T:1060    INFO: -->Python script returned the following error<--
22:49:03 T:1060   ERROR: Error Type: <type 'exceptions.KeyError'>
22:49:03 T:1060   ERROR: Error Contents: ('showid',)
22:49:03 T:1060   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\service.py", line 48, in <module>
                                                autostart()
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\service.py", line 37, in autostart
                                                trakt_cache.trigger()
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 789, in trigger
                                                needSyncAtLeast(['all'])
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 913, in needSyncAtLeast
                                                refreshSet(staleSet)
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 1264, in refreshSet
                                                if refreshSet(subSet, _structure=_structure[set]):
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 1256, in refreshSet
                                                _refresh[set]()
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 1284, in refreshLibrary
                                                xbmcData = _copyXbmc()
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 633, in _copyXbmc
                                                local = Show.fromXbmc(show)
                                              File "C:\Users\jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\show.py", line 338, in fromXbmc
                                                remoteId = trakt_cache.getShowRemoteId(show['showid'])
                                            KeyError: ('showid',)
22:49:03 T:1060    INFO: -->End of Python script error report<--



- kri kri - 2012-02-09

Wait how do I run the 0.7 buid?


- Martijn - 2012-02-09

kri kri Wrote:Wait how do I run the 0.7 buid?

Don't this isn't working yet so no point in installing this. On for alpha testing!


- tonyp - 2012-02-10

I'm having this lock-up bug, too Sad
As it seems that no one provided a log I did one myself - I hope everything is included:
http://pastebin.com/mQdtj57X
It's a fresh beta 3 pre-eden portable install.

I started a manual sync in videos - add-ons - Trakt Utilities - Update.
The sync from XBMC seems to work fine, after clicking okay XBMC will freeze.
According to the log I guess it's some kind of count-to-infinity problem.

Hope this helps Smile


Edit: You propably could add a short explanation to the first post describing how to enable debug logging and stating that a log is required for getting (proper) help on most issues.


- othrayte - 2012-02-10

jetskijoe Wrote:othrayte,

I am running your pre 0.7 beta and I get the following error:

Code:
22:49:02 T:1060   DEBUG: CVideoDatabase::RunQuery took 329 ms for 17 items query: SELECT * FROM tvshowview
22:49:03 T:1060    INFO: -->Python script returned the following error<--
22:49:03 T:1060   ERROR: Error Type: <type 'exceptions.KeyError'>
22:49:03 T:1060   ERROR: Error Contents: ('showid',)
22:49:03 T:1060   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\service.py", line 48, in <module>
                                                autostart()
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\service.py", line 37, in autostart
                                                trakt_cache.trigger()
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 789, in trigger
                                                needSyncAtLeast(['all'])
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 913, in needSyncAtLeast
                                                refreshSet(staleSet)
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 1264, in refreshSet
                                                if refreshSet(subSet, _structure=_structure[set]):
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 1256, in refreshSet
                                                _refresh[set]()
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 1284, in refreshLibrary
                                                xbmcData = _copyXbmc()
                                              File "C:\Users\Jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\trakt_cache.py", line 633, in _copyXbmc
                                                local = Show.fromXbmc(show)
                                              File "C:\Users\jed\AppData\Roaming\XBMC\addons\script.TraktUtilities\show.py", line 338, in fromXbmc
                                                remoteId = trakt_cache.getShowRemoteId(show['showid'])
                                            KeyError: ('showid',)
22:49:03 T:1060    INFO: -->End of Python script error report<--
Thanks for reporting. This part of the code is being overhauled, again, but I'll keep what you have found in mind.


- othrayte - 2012-02-10

Jakob Rosenberg Wrote:When I launch XBMC and when I go to Trakt Utilities and click Sync seen TV Shows and/or Sync seen Movies. In the configuration it is set to auto update and auto sync everything and not auto clean anything.

I get the following message after the sync.
"No new seen Episodes on Trakt to update"

Log from Sync seen TV Shows.
http://pastebin.com/Pj6ykb3k

Sorry, could i get you to do that again, with xbmc debug turned off, but TU debug on.


- othrayte - 2012-02-10

kri kri Wrote:Wait how do I run the 0.7 buid?
It runs by itself. The standard manual options should also work. Did you have something specific you were expecting?

Martijn Wrote:Don't this isn't working yet so no point in installing this. On for alpha testing!
fyi, kri kri is alpha testing it.


- othrayte - 2012-02-10

tonyp Wrote:I'm having this lock-up bug, too Sad
As it seems that no one provided a log I did one myself - I hope everything is included:
http://pastebin.com/mQdtj57X
It's a fresh beta 3 pre-eden portable install.

I started a manual sync in videos - add-ons - Trakt Utilities - Update.
The sync from XBMC seems to work fine, after clicking okay XBMC will freeze.
According to the log I guess it's some kind of count-to-infinity problem.

Hope this helps Smile
Thanks for providing the log.
My curiosity from this comes from the fact that most of the logs that i have seen of this, including yours, end on the request not the response, so it seems we are waiting of the db to return the result.

@Everyone, if anyone both know their way around an sql database and can reproduce this problem please contact me.

tonyp Wrote:Edit: You propably could add a short explanation to the first post describing how to enable debug logging and stating that a log is required for getting (proper) help on most issues.
I think that is part of the 'geeting support' stuff that I link in my sig.

@Manromen, if you read this maybe you could modify the first post to include some relevant info.


- jdbrookes - 2012-02-10

OK I finally figured out that I needed to enable debugging in trakt utilities to be able to see plugin errors in xbmc.log! Log is here

Hardware: openelec xbmc ION 32 bit latest Eden nightly (openelec build 9725, xbmc build 31 Jan 2012), Acer Revo, installed to standard internal HD.
Skin: Refocus (although happens with other skins too)
Plugin version: latest from git (10/02/2012)

Steps to reproduce:
1. Go to Update / Sync / Clean
2. Select "Sync Seen TV Shows"
3. Trakt displays "no new seen episodes in xbmc database to update" (which is correct, but in any case has previously updated trakt no problem)
4. Trakt displays "988 tv shows episodes will be set as seen on xbmc" and lists some of the shows to be updated (South Park is first - this may be relevant for the log). This number of episodes is correct in this case as I am on a fresh install.
5. Select Yes: instant freeze

Previously I have experienced the same freeze when only a handful of episodes need to be updated, so I'm not sure it's because of the number of episodes involved.

Thanks, hope this helps identify the issue!


- Ebatte - 2012-02-11

deleted


- runningeric - 2012-02-12

I have three systems, all running windows 7 with eden beta 3 and a fresh install of trakt.tv with all of them.

Each system was hanging on exit. If I pressed "Alt +F4" xbmc would appear to close, but xbmc*32.exe would still show up in task manager and xbmc would not start again. If I clicked exit in the menu, the window would freeze and eventually windows would ask if I liked to close the process. Killing xbmc*32.exe in task manager would allow xbmc to be restarted.

Uninstalling the trakt.tv add-on fixed the problem. Re-installing trakt brought the problem back.

However, when I turned debug on in the trakt.tv add-on configuration xbmc terminated appropriately with both "alt+f4" and through the menu. I've attached both logs (old log is with debug off). I hope this helps narrow down the problem. Turning on debug fixed the problem on all 3 of my machines.

xbmc.old.log(trakt debug off): http://pastebin.com/73BNrJXY
xbmc.log (trakt debug on): http://pastebin.com/RaC0pkWM


- othrayte - 2012-02-12

runningeric Wrote:I have three systems, all running windows 7 with eden beta 3 and a fresh install of trakt.tv with all of them.

Each system was hanging on exit. If I pressed "Alt +F4" xbmc would appear to close, but xbmc*32.exe would still show up in task manager and xbmc would not start again. If I clicked exit in the menu, the window would freeze and eventually windows would ask if I liked to close the process. Killing xbmc*32.exe in task manager would allow xbmc to be restarted.

Uninstalling the trakt.tv add-on fixed the problem. Re-installing trakt brought the problem back.

However, when I turned debug on in the trakt.tv add-on configuration xbmc terminated appropriately with both "alt+f4" and through the menu. I've attached both logs (old log is with debug off). I hope this helps narrow down the problem. Turning on debug fixed the problem on all 3 of my machines.

xbmc.old.log(trakt debug off): http://pastebin.com/73BNrJXY
xbmc.log (trakt debug on): http://pastebin.com/RaC0pkWM

That is a known problem, we have made multiple attempts to fix it, but it has only recently been eradicated in the unstable 0.7 versions. I am curious about the debug thing, we never found it having any bearing on it, can you please check that that was not just a coincidence. Also please try to reproduce the problem without any of the auto update parts enabled. It is my belief that much of the problem is due to TU going through the processes of syncing and not acknowledging the close request during that time.


Re: Auto update - runningeric - 2012-02-12

othrayte Wrote:That is a known problem, we have made multiple attempts to fix it, but it has only recently been eradicated in the unstable 0.7 versions. I am curious about the debug thing, we never found it having any bearing on it, can you please check that that was not just a coincidence. Also please try to reproduce the problem without any of the auto update parts enabled. It is my belief that much of the problem is due to TU going through the processes of syncing and not acknowledging the close request during that time.

Turning off auto-update also fixes the problem (tried on 2 systems, 5 times each, no persistent xbmc*32.exe).

Turning on auto-update and debugging on also fixes the problem (about 25 times on 3 systems, no persistent xbmc*32.exe).

Turning on auto-update and turning off debugging causes the problem (about 10 more times on 2 systems, persistent xbmc*32.exe).


- othrayte - 2012-02-12

runningeric Wrote:Turning off auto-update also fixes the problem (tried on 2 systems, 5 times each, no persistent xbmc*32.exe).

Turning on auto-update and debugging on also fixes the problem (about 25 times on 3 systems, no persistent xbmc*32.exe).

Turning on auto-update and turning off debugging causes the problem (about 10 more times on 2 systems, persistent xbmc*32.exe).

Thanks for that,

Those results about debug are really weird, is that TUs debug or xbmcs debug?
For the moment I suggest you just leave debug on if it helps that. I'll try to have a look into that soon.


- othrayte - 2012-02-12

To everyone who has been having problems with freezing, during syncing seen items back to xbmc, I have made a change that will hopefully fix it. After help from tonyp, thanks Big Grin, i have found the problem, and been able to both reproduce it and fix it. This should also make the syncing of seen items to xbmc faster.

I expect, assuming no one finds anything majorly wrong, that this lastest one will become 0.6.5 quite soon.

If you want to try this out you can download the zip file from here, but you must install by zip or it might not work.

Hope your weekends are going well,
othrayte