Multiple Issues with 3.5 (and 3.01 for that matter)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Martijn Offline
Team-XBMC
Posts: 7,704
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #11
(2012-08-04 21:16)relayer35 Wrote:  No go with that script. I tried it anyway, but the error message is saying the script is randomandlastitems.py

Report your problem here
http://forum.xbmc.org/showthread.php?tid=122448

together with debug log

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
CutSickAss Offline
Fan
Posts: 430
Joined: Dec 2011
Reputation: 28
Location: Greece
Post: #12
(2012-08-04 21:16)relayer35 Wrote:  No go with that script. I tried it anyway, but the error message is saying the script is randomandlastitems.py

Sorry, didn't notice the exact name, I just saw "randomitems..." and assumed it was the infamous RandomItems.py error.
(This post was last modified: 2012-08-04 21:37 by CutSickAss.)
find quote
relayer35 Offline
Senior Member
Posts: 143
Joined: Jan 2010
Reputation: 0
Post: #13
Quote:Report your problem here
http://forum.xbmc.org/showthread.php?tid=122448

together with debug log

Okay, I reported the bug in the thread you suggested, but was told this isn't a script error, that there is a problem with a smart playlist. I never created any smart playlists, at least not knowingly. What I did create was custom menu items that point to a video folder. Last night I created two more, and now when I start XBMC I notice in the log that this randomandlastitems.py is being generated for all three of the custom menu entries. They directed me back to this thread. Any ideas on what is happening? Here is the debug log code. Oh, and I get this error on start up or every time I update the library.

Code:
07:13:41 T:1732   DEBUG: CApplication::ExecuteXBMCAction : To SetFocus(11)
07:13:41 T:4360    INFO: Caching image from: http://thetvdb.com/banners/episodes/256227/4332141.jpg to special://masterprofile/Thumbnails/Video/6/6f6bc2cc.tbn with width 512 and height 512
07:13:41 T:4360   DEBUG: FileCurl::Open(0C39CC48) http://thetvdb.com/banners/episodes/256227/4332141.jpg
07:13:41 T:4360    INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://thetvdb.com
07:13:42 T:2476    INFO: -->Python script returned the following error<--
07:13:42 T:2476   ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:2476   ERROR: Error Contents: (2, 'No such file or directory', 'plugin.video.youtube')
07:13:42 T:6108    INFO: -->Python script returned the following error<--
07:13:42 T:6108   ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:6108   ERROR: Error Contents: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Videos 7\\Kids Movies\\,return)')
07:13:42 T:4304    INFO: -->Python script returned the following error<--
07:13:42 T:4304   ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:4304   ERROR: Error Contents: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Video Camera\\,return)')
07:13:42 T:4652    INFO: -->Python script returned the following error<--
07:13:42 T:4652   ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:4652   ERROR: Error Contents: (22, "invalid mode ('rb') or filename", "ActivateWindow(videos,K:\\Videos 7\\Christine's TV\\,return)")
07:13:42 T:4784   DEBUG: ### TV Show - Next Aired starting ...
07:13:42 T:4784   DEBUG: ### author: Ppic, Frost, ronie, `Black
07:13:42 T:4784   DEBUG: ### version: 4.1.20
07:13:42 T:4784   DEBUG: ### dateformat: %m/%d/%y
07:13:42 T:4784   DEBUG: ### params: {'silent': 'True'}
07:13:42 T:4784   DEBUG: ### db more than 24h old, rescanning...
07:13:42 T:4784   DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": {"properties": ["title", "file", "thumbnail", "fanart"], "sort": { "method": "title" } }, "id": 1}
07:13:42 T:4784   DEBUG: JSONRPC: Calling videolibrary.gettvshows
07:13:42 T:1732   DEBUG: CApplication::ExecuteXBMCAction : Translating SetFocus(11)
07:13:42 T:1732   DEBUG: CApplication::ExecuteXBMCAction : To SetFocus(11)
07:13:42 T:4784   DEBUG: CVideoDatabase::RunQuery took 212 ms for 66 items query: SELECT * FROM tvshowview
07:13:42 T:2476   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 607, in <module>
                                                _parse_argv()
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 601, in _parse_argv
                                                _getPlaylistType ();
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 47, in _getPlaylistType
                                                _doc = parse(xbmc.translatePath(PLAYLIST))
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
                                                return expatbuilder.parse(file)
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
                                                fp = open(file, 'rb')
                                            IOError: (2, 'No such file or directory', 'plugin.video.youtube')
07:13:42 T:2476    INFO: -->End of Python script error report<--
07:13:42 T:4304   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 607, in <module>
                                                _parse_argv()
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 601, in _parse_argv
                                                _getPlaylistType ();
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 47, in _getPlaylistType
                                                _doc = parse(xbmc.translatePath(PLAYLIST))
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
                                                return expatbuilder.parse(file)
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
                                                fp = open(file, 'rb')
                                            IOError: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Video Camera\\,return)')
07:13:42 T:4304    INFO: -->End of Python script error report<--
07:13:42 T:6108   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 607, in <module>
                                                _parse_argv()
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 601, in _parse_argv
                                                _getPlaylistType ();
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 47, in _getPlaylistType
                                                _doc = parse(xbmc.translatePath(PLAYLIST))
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
                                                return expatbuilder.parse(file)
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
                                                fp = open(file, 'rb')
                                            IOError: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Videos 7\\Kids Movies\\,return)')
07:13:42 T:6108    INFO: -->End of Python script error report<--
07:13:42 T:4652   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 607, in <module>
                                                _parse_argv()
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 601, in _parse_argv
                                                _getPlaylistType ();
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 47, in _getPlaylistType
                                                _doc = parse(xbmc.translatePath(PLAYLIST))
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
                                                return expatbuilder.parse(file)
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
                                                fp = open(file, 'rb')
                                            IOError: (22, "invalid mode ('rb') or filename", "ActivateWindow(videos,K:\\Videos 7\\Christine's TV\\,return)")
07:13:42 T:4652    INFO: -->End of Python script error report<--
07:13:42 T:2476    INFO: Python script stopped
07:13:42 T:2476   DEBUG: Thread XBPyThread 2476 terminating
07:13:42 T:4304    INFO: Python script stopped
(This post was last modified: 2012-08-06 19:23 by relayer35.)
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #14
(2012-08-06 19:20)relayer35 Wrote:  
Quote:Report your problem here
http://forum.xbmc.org/showthread.php?tid=122448

together with debug log

Okay, I reported the bug in the thread you suggested, but was told this isn't a script error, that there is a problem with a smart playlist. I never created any smart playlists, at least not knowingly. What I did create was custom menu items that point to a video folder. Last night I created two more, and now when I start XBMC I notice in the log that this randomandlastitems.py is being generated for all three of the custom menu entries. They directed me back to this thread. Any ideas on what is happening? Here is the debug log code. Oh, and I get this error on start up or every time I update the library.

Code:
07:13:41 T:1732   DEBUG: CApplication::ExecuteXBMCAction : To SetFocus(11)
07:13:41 T:4360    INFO: Caching image from: http://thetvdb.com/banners/episodes/256227/4332141.jpg to special://masterprofile/Thumbnails/Video/6/6f6bc2cc.tbn with width 512 and height 512
07:13:41 T:4360   DEBUG: FileCurl::Open(0C39CC48) http://thetvdb.com/banners/episodes/256227/4332141.jpg
07:13:41 T:4360    INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://thetvdb.com
07:13:42 T:2476    INFO: -->Python script returned the following error<--
07:13:42 T:2476   ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:2476   ERROR: Error Contents: (2, 'No such file or directory', 'plugin.video.youtube')
07:13:42 T:6108    INFO: -->Python script returned the following error<--
07:13:42 T:6108   ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:6108   ERROR: Error Contents: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Videos 7\\Kids Movies\\,return)')
07:13:42 T:4304    INFO: -->Python script returned the following error<--
07:13:42 T:4304   ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:4304   ERROR: Error Contents: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Video Camera\\,return)')
07:13:42 T:4652    INFO: -->Python script returned the following error<--
07:13:42 T:4652   ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:4652   ERROR: Error Contents: (22, "invalid mode ('rb') or filename", "ActivateWindow(videos,K:\\Videos 7\\Christine's TV\\,return)")
07:13:42 T:4784   DEBUG: ### TV Show - Next Aired starting ...
07:13:42 T:4784   DEBUG: ### author: Ppic, Frost, ronie, `Black
07:13:42 T:4784   DEBUG: ### version: 4.1.20
07:13:42 T:4784   DEBUG: ### dateformat: %m/%d/%y
07:13:42 T:4784   DEBUG: ### params: {'silent': 'True'}
07:13:42 T:4784   DEBUG: ### db more than 24h old, rescanning...
07:13:42 T:4784   DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": {"properties": ["title", "file", "thumbnail", "fanart"], "sort": { "method": "title" } }, "id": 1}
07:13:42 T:4784   DEBUG: JSONRPC: Calling videolibrary.gettvshows
07:13:42 T:1732   DEBUG: CApplication::ExecuteXBMCAction : Translating SetFocus(11)
07:13:42 T:1732   DEBUG: CApplication::ExecuteXBMCAction : To SetFocus(11)
07:13:42 T:4784   DEBUG: CVideoDatabase::RunQuery took 212 ms for 66 items query: SELECT * FROM tvshowview
07:13:42 T:2476   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 607, in <module>
                                                _parse_argv()
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 601, in _parse_argv
                                                _getPlaylistType ();
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 47, in _getPlaylistType
                                                _doc = parse(xbmc.translatePath(PLAYLIST))
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
                                                return expatbuilder.parse(file)
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
                                                fp = open(file, 'rb')
                                            IOError: (2, 'No such file or directory', 'plugin.video.youtube')
07:13:42 T:2476    INFO: -->End of Python script error report<--
07:13:42 T:4304   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 607, in <module>
                                                _parse_argv()
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 601, in _parse_argv
                                                _getPlaylistType ();
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 47, in _getPlaylistType
                                                _doc = parse(xbmc.translatePath(PLAYLIST))
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
                                                return expatbuilder.parse(file)
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
                                                fp = open(file, 'rb')
                                            IOError: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Video Camera\\,return)')
07:13:42 T:4304    INFO: -->End of Python script error report<--
07:13:42 T:6108   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 607, in <module>
                                                _parse_argv()
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 601, in _parse_argv
                                                _getPlaylistType ();
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 47, in _getPlaylistType
                                                _doc = parse(xbmc.translatePath(PLAYLIST))
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
                                                return expatbuilder.parse(file)
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
                                                fp = open(file, 'rb')
                                            IOError: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Videos 7\\Kids Movies\\,return)')
07:13:42 T:6108    INFO: -->End of Python script error report<--
07:13:42 T:4652   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 607, in <module>
                                                _parse_argv()
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 601, in _parse_argv
                                                _getPlaylistType ();
                                              File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlas​titems.py", line 47, in _getPlaylistType
                                                _doc = parse(xbmc.translatePath(PLAYLIST))
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
                                                return expatbuilder.parse(file)
                                              File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
                                                fp = open(file, 'rb')
                                            IOError: (22, "invalid mode ('rb') or filename", "ActivateWindow(videos,K:\\Videos 7\\Christine's TV\\,return)")
07:13:42 T:4652    INFO: -->End of Python script error report<--
07:13:42 T:2476    INFO: Python script stopped
07:13:42 T:2476   DEBUG: Thread XBPyThread 2476 terminating
07:13:42 T:4304    INFO: Python script stopped

what are your background and widget settings for your custom main menu items?
find quote
relayer35 Offline
Senior Member
Posts: 143
Joined: Jan 2010
Reputation: 0
Post: #15
Backgrounds are set to single image, and I have no Widgets for any of them.
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #16
(2012-08-06 20:10)relayer35 Wrote:  Backgrounds are set to single image, and I have no Widgets for any of them.

complete path of the single image? it may not contain "custom" atm.
find quote
relayer35 Offline
Senior Member
Posts: 143
Joined: Jan 2010
Reputation: 0
Post: #17
What do you mean by "custom" atm?

Path of the single image for the "Video Camera" entry is:
c:\Users\Matt\AppData\Roaming\XBMC\userdata\custom\Molly.jpg

The others are located in the same location.
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #18
(2012-08-06 20:43)relayer35 Wrote:  What do you mean by "custom" atm?

Path of the single image for the "Video Camera" entry is:
c:\Users\Matt\AppData\Roaming\XBMC\userdata\custom\Molly.jpg

The others are located in the same location.

rename the folder custom to something else, the path may not contain "custom"
will fix that for 3.6.
(This post was last modified: 2012-08-06 21:06 by phil65.)
find quote
relayer35 Offline
Senior Member
Posts: 143
Joined: Jan 2010
Reputation: 0
Post: #19
(2012-08-06 21:06)phil65 Wrote:  
(2012-08-06 20:43)relayer35 Wrote:  What do you mean by "custom" atm?

Path of the single image for the "Video Camera" entry is:
c:\Users\Matt\AppData\Roaming\XBMC\userdata\custom\Molly.jpg

The others are located in the same location.

rename the folder custom to something else, the path may not contain "custom"
will fix that for 3.6.

Thanks. That took care of the script issue. I would have never been able to figure that one out by myself. I haven't locked up even once since enabling the debug log, so I still don't have a log for when that happens.
find quote
relayer35 Offline
Senior Member
Posts: 143
Joined: Jan 2010
Reputation: 0
Post: #20
(2012-08-04 20:21)relayer35 Wrote:  
(2012-08-04 20:12)thrak76 Wrote:  I don't suppose you have the moviesets add-on installed? That's notorious for system hangs.

EDIT - Haha! Ninja'd with exact same post! Smile

(2012-08-04 20:17)Martijn Wrote:  Sorry but no debug log means no help.

We can't go guessing what the issue might be

Yeah, I'm doing the best I can with that, but this is a device that the entire family uses, and they are not going to watch videos with the On Screen display that runs when debug logging is on (nor am I for that matter). If it was something that happened when I did something specific every time, then getting a log wouldn't be a problem. It often won't happen until XBMC has been running for hours.

(2012-08-04 21:22)Martijn Wrote:  
(2012-08-04 21:16)relayer35 Wrote:  No go with that script. I tried it anyway, but the error message is saying the script is randomandlastitems.py

Report your problem here
http://forum.xbmc.org/showthread.php?tid=122448

together with debug log

Okay, it took a while, but I recreated the lock up problem I was having. This would happen at least once a day, but for some reason it went two weeks without happening since I enabled debug logging.

Logfile is here: http://relayer35.com/xbmchang.zip

I was specifically clicking on an actor (in this case it was "Mike Dopud") on a TV show to see what other shows he has been in. This is a typical type of activity that causes this hang. Just to recap, this hang never occurred with version 3.00, or with any other skin (I used Confluence and PM3.HD prior to switching to Aeon Nox), but happened often with 3.01 and 3.5 (at least until I enabled logging Smile )

I hope we can get to the bottom of this
find quote