Scripts failing to run
#1
Wink 
Hi all

Hope you can help. I have current beta2 of t3ch release but have had problems with scripts etc for a while. The only ones that work are the apple movie trailers and t3ch upgrader. If i install revision3 script or xbmcscripts from xbmcscipts.com it begins to start but then stops. After some digging i grabbed the xbmc log file.

20:04:18 M: 56295424 NOTICE: -----------------------------------------------------------------------
20:04:18 M: 56274944 NOTICE: Starting XBMC, Platform: Xbox. Built on Oct 6 2008
20:04:18 M: 56274944 NOTICE: Q is mapped to: E:\XBMC
20:04:18 M: 56274944 NOTICE: The executable running is: E:\XBMC\default.xbe
20:04:18 M: 56274944 NOTICE: Log File is located: Q:\xbmc.log
20:04:18 M: 56274944 NOTICE: -----------------------------------------------------------------------
20:04:18 M: 56274944 NOTICE: Unmapped drive T
20:04:18 M: 56254464 NOTICE: Mapping drive T to Harddisk0\Partition1\XBMC\UserData
20:04:18 M: 56254464 NOTICE: Setup DirectX
20:04:18 M: 56229888 NOTICE: Mapping drive C to Harddisk0\Partition2
20:04:18 M: 56229888 NOTICE: Mapping drive E to Harddisk0\Partition1
20:04:18 M: 56229888 NOTICE: Unmapped drive D
20:04:18 M: 56229888 NOTICE: Mapping drive D to Cdrom0
20:04:19 M: 56229888 NOTICE: Mapping drive F to Harddisk0\Partition6
20:04:19 M: 56229888 NOTICE: Mapping drive X to Harddisk0\Partition3
20:04:19 M: 56229888 NOTICE: Mapping drive Y to Harddisk0\Partition4
20:04:19 M: 56229888 NOTICE: Unmapped drive Z
20:04:19 M: 56229888 NOTICE: Mapping drive Z to Harddisk0\Partition5
20:04:19 M: 56229888 NOTICE: load settings...
20:04:19 M: 56229888 NOTICE: Mapping drive P to Harddisk0\Partition1\XBMC\UserData
20:04:19 M: 56229888 NOTICE: loading T:\guisettings.xml
20:04:19 M: 56066048 NOTICE: Getting hardware information now...
20:04:19 M: 56066048 NOTICE: Checking resolution 1
20:04:19 M: 56066048 NOTICE: Per AV pack settings are off
20:04:19 M: 56217600 NOTICE: q:\UserData\sources.xml
20:04:19 M: 46694400 ERROR: Window Translator: Can't find window xlinkkai
20:04:19 M: 46817280 NOTICE: Checking the Date!
20:04:19 M: 46817280 NOTICE: start dvd mediatype detection
20:04:19 M: 46751744 NOTICE: initializing playlistplayer
20:04:19 M: 46751744 NOTICE: DONE initializing playlistplayer
20:04:19 M: 46219264 NOTICE: load default skin:[Project Mayhem III]
20:04:20 M: 42504192 NOTICE: use static ip
20:04:20 M: 42184704 NOTICE: initialize done
20:04:20 M: 42184704 NOTICE: Running the application...
20:04:21 M: 41934848 NOTICE: Webserver: Starting...
20:04:22 M: 41791488 NOTICE: XBFileZilla: Starting...
20:04:22 M: 41644032 NOTICE: starting upnp client
20:04:22 M: 36823040 NOTICE: starting upnp server
20:04:22 M: 36446208 NOTICE: Webserver: Started
20:04:22 M: 36491264 NOTICE: starting upnp renderer
20:04:22 M: 36212736 NOTICE: ES: Starting event server
20:04:22 M: 34897920 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
20:04:22 M: 34897920 NOTICE: UDP: Listening on port 9777
20:04:25 M: 30904320 NOTICE: XBFileZilla: Started
20:04:37 M: 32292864 NOTICE: -->Python Initialized<--
20:04:37 M: 32272384 NOTICE:
20:04:39 M: 30511104 NOTICE: Traceback (most recent call last):
20:04:39 M: 30511104 NOTICE: File "Q:\scripts\XBMCScripts\default.py", line 59, in ?
20:04:39 M: 30511104 NOTICE:
20:04:39 M: 30511104 NOTICE: raise
20:04:39 M: 30511104 NOTICE: TypeError
20:04:39 M: 30511104 NOTICE: :
20:04:39 M: 30511104 NOTICE: exceptions must be classes, instances, or strings (deprecated), not NoneType
20:04:39 M: 30511104 NOTICE:
20:04:39 M: 30511104 ERROR: Scriptresult: Error
20:04:40 M: 33669120 NOTICE: HDD: SMART is supported.
20:04:40 M: 33669120 NOTICE: HDD: SMART is enabled.
20:04:42 M: 32342016 NOTICE: -->Python Initialized<--
20:04:42 M: 32321536 NOTICE:
20:04:44 M: 30089216 NOTICE: Fetching version from XBMCScripts.com
20:04:44 M: 30093312 NOTICE:
20:04:44 M: 30089216 NOTICE: (1.7) versionstring downloaded successfully!
20:04:44 M: 30093312 NOTICE:
20:04:44 M: 30093312 NOTICE: http://www.xbmcscripts.com is reachable!
20:04:44 M: 30093312 NOTICE:
20:04:45 M: 28737536 NOTICE: Local script path: Q:\scripts\XBMCScripts\
20:04:45 M: 28737536 NOTICE:
20:04:45 M: 28737536 NOTICE: Fetching scriptlist from XBMCScripts.com
20:04:45 M: 28737536 NOTICE:
20:04:47 M: 27803648 NOTICE: Scriptlist downloaded successfully!
20:04:47 M: 27803648 NOTICE:
20:04:47 M: 27803648 NOTICE: Parsing XML in scriptlist data
20:04:47 M: 27803648 NOTICE:
20:04:47 M: 26918912 NOTICE:
-----Parsing failed:-----
20:04:47 M: 26898432 NOTICE:
20:04:47 M: 26898432 NOTICE: Traceback (most recent call last):
20:04:47 M: 26898432 NOTICE: File "Q:\scripts\XBMCScripts\lib\xbmcscripts_core.py", line 94, in getScriptlist_site
20:04:47 M: 26898432 NOTICE: doc = parseString(data)
20:04:47 M: 26877952 NOTICE: File "Q:\system\python\python24.zlib\xml\dom\minidom.py", line 1925, in parseString
20:04:47 M: 26877952 NOTICE: File "Q:\system\python\python24.zlib\xml\dom\expatbuilder.py", line 940, in parseString
20:04:47 M: 26877952 NOTICE: File "Q:\system\python\python24.zlib\xml\dom\expatbuilder.py", line 223, in parseString
20:04:47 M: 26877952 NOTICE: ExpatError: not well-formed (invalid token): line 1015, column 36
20:04:47 M: 26877952 NOTICE: -----------------------------------------------------------------
20:04:47 M: 26877952 NOTICE:
20:04:47 M: 26992640 NOTICE: Traceback (most recent call last):
20:04:47 M: 26992640 NOTICE: File "Q:\scripts\XBMCScripts\default.py", line 89, in ?
20:04:47 M: 26992640 NOTICE:
20:04:47 M: 26992640 NOTICE: gui = main.GUI()
20:04:47 M: 26992640 NOTICE: File "Q:\scripts\XBMCScripts\lib\xbmcscripts_main.py", line 96, in __init__
20:04:47 M: 26992640 NOTICE:
20:04:47 M: 26992640 NOTICE: self.init_installer()
20:04:47 M: 26992640 NOTICE: File "Q:\scripts\XBMCScripts\lib\xbmcscripts_main.py", line 109, in init_installer
20:04:47 M: 26992640 NOTICE:
20:04:47 M: 26992640 NOTICE: self.make_categories()
20:04:47 M: 26992640 NOTICE: File "Q:\scripts\XBMCScripts\lib\xbmcscripts_main.py", line 178, in make_categories
20:04:47 M: 26992640 NOTICE:
20:04:47 M: 26992640 NOTICE: for x in self.sitedata:
20:04:47 M: 26992640 NOTICE: TypeError
20:04:47 M: 26992640 NOTICE: :
20:04:47 M: 26992640 NOTICE: iteration over non-sequence
20:04:47 M: 26992640 NOTICE:
20:04:47 M: 26992640 ERROR: Scriptresult: Error
20:04:47 M: 28262400 NOTICE:
20:04:47 M: 28262400 NOTICE:
20:05:05 M: 34770944 NOTICE: -->Python Initialized<--
20:05:05 M: 34770944 NOTICE:
20:05:06 M: 32075776 NOTICE: Traceback (most recent call last):
20:05:06 M: 32075776 NOTICE: File "Q:\scripts\Revision3-v0.1.9\default.py", line 49, in ?
20:05:06 M: 32075776 NOTICE:
20:05:06 M: 32075776 NOTICE: LOG_FILE = open(LOG_FILE_NAME, 'w')
20:05:06 M: 32075776 NOTICE: IOError
20:05:06 M: 32075776 NOTICE: :
20:05:06 M: 32075776 NOTICE: [Errno 2] No such file or directory: 'Q:\\scripts\\Revision3-v0.1.\\revision3Log.txt'
20:05:06 M: 32075776 NOTICE:
20:05:06 M: 32075776 ERROR: Scriptresult: Error

I can see the error but cannot work out how to fix it?

Any ideas please??
Reply
#2
xbmcscripts should work.. have changed a description with some international characters that might be the reason, please try it again.

in revision3 (default.py) on line 43, you need to change:
Code:
ROOT_DIR = os.getcwd()[:-1]+'\\'
into the following:
Code:
ROOT_DIR = os.getcwd().replace(';','')+'\\'

then it should work.
Reply
#3
Great I'll give that a try, I did retry the xbmcscripts multiple times, deleting from Q and from E and reinstalling. It looks like its going to startup (ie says running) then says adding categories and then stops running with same error message. Weird huh?

Ideas?

BTW i have 2 machines and both do it.
Reply
#4
xbmcscripts running fine here. I cant see any reason it would fail.
Reply
#5
The saga continues

I edited the revision 3 script and it brought up the listing which is much better than before but now when i goto play a video i get this error in the log

07:21:45 M: 30109696 NOTICE: -->Python Initialized<--
07:21:45 M: 30109696 NOTICE:
07:22:42 M: 11763712 NOTICE: Clicked:
07:22:42 M: 11763712 NOTICE:
07:22:44 M: 11763712 NOTICE: Clicked:
07:22:44 M: 11763712 NOTICE:
07:22:53 M: 2576384 SEVERE: DLL: Q:\system\players\mplayer\mplayer.dll : malloc failed, crash imminent (Out of memory requesting 4194304 bytes)
07:22:53 M: 2576384 ERROR: CMPlayer::OpenFile http://bitcast-a.bitgravity.com/revision...l.xvid.avi failed with code -1
07:23:21 M: 2613248 SEVERE: DLL: Q:\system\players\mplayer\mplayer.dll : malloc failed, crash imminent (Out of memory requesting 4194304 bytes)
07:23:21 M: 2613248 ERROR: CMPlayer::OpenFile http://bitcast-a.bitgravity.com/revision...l.xvid.avi failed with code -1

Out of memory
Reply
#6
I even dropped the cache sizes in case that was causing issue but when i play files now it hangs hard. Stops network function etc.

Here is the log
07:31:21 M: 56295424 NOTICE: -----------------------------------------------------------------------
07:31:21 M: 56274944 NOTICE: Starting XBMC, Platform: Xbox. Built on Oct 6 2008
07:31:21 M: 56274944 NOTICE: Q is mapped to: E:\XBMC
07:31:21 M: 56274944 NOTICE: The executable running is: E:\XBMC\default.xbe
07:31:21 M: 56274944 NOTICE: Log File is located: Q:\xbmc.log
07:31:21 M: 56274944 NOTICE: -----------------------------------------------------------------------
07:31:21 M: 56274944 NOTICE: Unmapped drive T
07:31:21 M: 56254464 NOTICE: Mapping drive T to Harddisk0\Partition1\XBMC\UserData
07:31:21 M: 56254464 NOTICE: Setup DirectX
07:31:21 M: 56229888 NOTICE: Mapping drive C to Harddisk0\Partition2
07:31:21 M: 56229888 NOTICE: Mapping drive E to Harddisk0\Partition1
07:31:21 M: 56229888 NOTICE: Unmapped drive D
07:31:21 M: 56229888 NOTICE: Mapping drive D to Cdrom0
07:31:22 M: 56229888 NOTICE: Mapping drive F to Harddisk0\Partition6
07:31:22 M: 56229888 NOTICE: Mapping drive X to Harddisk0\Partition3
07:31:22 M: 56229888 NOTICE: Mapping drive Y to Harddisk0\Partition4
07:31:22 M: 56229888 NOTICE: Unmapped drive Z
07:31:22 M: 56229888 NOTICE: Mapping drive Z to Harddisk0\Partition5
07:31:22 M: 56229888 NOTICE: load settings...
07:31:22 M: 56229888 NOTICE: Mapping drive P to Harddisk0\Partition1\XBMC\UserData
07:31:22 M: 56229888 NOTICE: loading T:\guisettings.xml
07:31:22 M: 56066048 NOTICE: Getting hardware information now...
07:31:22 M: 56066048 NOTICE: Checking resolution 1
07:31:22 M: 56066048 NOTICE: Per AV pack settings are off
07:31:22 M: 56217600 NOTICE: q:\UserData\sources.xml
07:31:22 M: 46694400 ERROR: Window Translator: Can't find window xlinkkai
07:31:22 M: 46821376 NOTICE: Checking the Date!
07:31:22 M: 46821376 NOTICE: start dvd mediatype detection
07:31:22 M: 46755840 NOTICE: initializing playlistplayer
07:31:22 M: 46755840 NOTICE: DONE initializing playlistplayer
07:31:23 M: 46223360 NOTICE: load default skin:[MC360]
07:31:24 M: 42631168 ERROR: Window Translator: Can't find window dialogbuttonmenu
07:31:24 M: 41758720 NOTICE: use static ip
07:31:24 M: 41443328 NOTICE: initialize done
07:31:24 M: 41443328 NOTICE: Running the application...
07:31:26 M: 32247808 NOTICE: Webserver: Starting...
07:31:26 M: 32104448 NOTICE: XBFileZilla: Starting...
07:31:26 M: 31973376 NOTICE: starting upnp client
07:31:26 M: 31485952 NOTICE: starting upnp server
07:31:26 M: 31309824 NOTICE: Webserver: Started
07:31:26 M: 31096832 NOTICE: starting upnp renderer
07:31:26 M: 30982144 NOTICE: ES: Starting event server
07:31:26 M: 30015488 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
07:31:26 M: 29908992 NOTICE: UDP: Listening on port 9777
07:31:28 M: 29786112 NOTICE: XBFileZilla: Started
07:31:53 M: 38662144 ERROR: Error evaluating boolean expression !System.KaiConnected + Control.HasFocus(5) + !Control.HasFocus(2)
07:31:53 M: 38641664 ERROR: Error evaluating boolean expression !System.KaiConnected + !Control.HasFocus(2)
07:31:53 M: 38621184 ERROR: Error evaluating boolean expression [[system.idletime(3) + !system.idletime(6)] | [system.idletime(9) + !system.idletime(12)] | [system.idletime(15) + !system.idletime(18)] | [system.idletime(21) + !system.idletime(24)] | [system.idletime(27) + !system.idletime(30)]] + [!System.KaiConnected + Control.HasFocus(5) + !Control.HasFocus(2)]
07:31:53 M: 38617088 ERROR: Error evaluating boolean expression System.KaiConnected + Control.HasFocus(6) + !Control.HasFocus(2)
07:31:53 M: 38596608 ERROR: Error evaluating boolean expression System.KaiConnected + !Control.HasFocus(2)
07:31:53 M: 38576128 ERROR: Error evaluating boolean expression [[system.idletime(3) + !system.idletime(6)] | [system.idletime(9) + !system.idletime(12)] | [system.idletime(15) + !system.idletime(18)] | [system.idletime(21) + !system.idletime(24)] | [system.idletime(27) + !system.idletime(30)]] + [System.KaiConnected + Control.HasFocus(6) + !Control.HasFocus(2)]
07:31:53 M: 38576128 ERROR: Error evaluating boolean expression System.KaiConnected + Control.HasFocus(7) + !Control.HasFocus(2)
07:31:53 M: 38576128 ERROR: Error evaluating boolean expression [[system.idletime(3) + !system.idletime(6)] | [system.idletime(9) + !system.idletime(12)] | [system.idletime(15) + !system.idletime(18)] | [system.idletime(21) + !system.idletime(24)] | [system.idletime(27) + !system.idletime(30)]] + [System.KaiConnected + Control.HasFocus(7) + !Control.HasFocus(2)]
07:31:53 M: 38555648 ERROR: Error evaluating boolean expression System.KaiConnected + Control.HasFocus(8) + !Control.HasFocus(2)
07:31:53 M: 38555648 ERROR: Error evaluating boolean expression [[system.idletime(3) + !system.idletime(6)] | [system.idletime(9) + !system.idletime(12)] | [system.idletime(15) + !system.idletime(18)] | [system.idletime(21) + !system.idletime(24)] | [system.idletime(27) + !system.idletime(30)]] + [System.KaiConnected + Control.HasFocus(8) + !Control.HasFocus(2)]
07:32:03 M: 30171136 NOTICE: -->Python Initialized<--
07:32:03 M: 30171136 NOTICE:
07:32:58 M: 311296 SEVERE: DLL: Q:\system\players\mplayer\mplayer.dll : malloc failed, crash imminent (Out of memory requesting 3002016 bytes)

This is really strange
Reply

Logout Mark Read Team Forum Stats Members Help
Scripts failing to run0