XML_ExpandNode Error/ Loading library Slow
On the OS X version of Plexconnect I keep getting crashes related to XML_Converter that really slows down navigation on the Apple TV, usually taking 30s to navigate between certain pages. I've copied an excerpt from the crash log below. Note that the log is from a modded version but I get the EXACT same thing with the official version.
XMLConverter: XML_ExpandNode - Error in cmd COPY, line
{{VAR(items:NoKey:TRUE)}}
Traceback (most recent call last): File "/Users/JeanFradet/Documents/PlexConnect-falco/XMLConverter.py", line 571, in XML_ExpandNode res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param) File "/Users/JeanFradet/Documents/PlexConnect-falco/XMLConverter.py", line 832, in TREE_COPY src, srcXML, tag = self.getBase(src, srcXML, tag) File "/Users/JeanFradet/Documents/PlexConnect-falco/XMLConverter.py", line 770, in getBase src = self.PMSroot[srcXML] KeyError: 'RecentlyViewedEpisodes'
I second this report. Running latest from git. It's all over my logs.
Den 14. mars 2014 kl. 18:49 skrev Halopend [email protected]:
On the OS X version of Plexconnect I keep getting crashes related to XML_Converter that really slows down navigation on the Apple TV, usually taking 30s to navigate between certain pages. I've copied an excerpt from the crash log below. Note that the log is from a modded version but I get the EXACT same thing with the official version.
XMLConverter: XML_ExpandNode - Error in cmd COPY, line
{{VAR(items:NoKey:TRUE)}}Traceback (most recent call last): File "/Users/JeanFradet/Documents/PlexConnect-falco/XMLConverter.py", line 571, in XML_ExpandNode res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param) File "/Users/JeanFradet/Documents/PlexConnect-falco/XMLConverter.py", line 832, in TREE_COPY src, srcXML, tag = self.getBase(src, srcXML, tag) File "/Users/JeanFradet/Documents/PlexConnect-falco/XMLConverter.py", line 770, in getBase src = self.PMSroot[srcXML] KeyError: 'RecentlyViewedEpisodes'
— Reply to this email directly or view it on GitHub.
*Edit.
Okay, so I found the fix and it wasn't a plex connect issue after all. The error was related to RecentlyViewedEpisodes not loading in plex at all which can be fixed by optimizing the database through the "More" menu in the upper right hand of the main plex page i.e. http://127.0.0.1:32400/web/index.html#!/dashboard
How can I mark this as closed?
Pressing the "close" button? But then, it really shouldn't fail like that...
I suppose you could update the plexconnect code to better handle when a view won't load since it grinds to a halt when affected but it is a bug with Plex Media Server that is actually preventing the view from loading.
It's something to do with adding a bunch of shows at once that prevents the Plex Media Server database from loading the recently viewed episodes. Optimizing the database clears out the problem and allows the view to load.