PDA

View Full Version : Python script launched too quickly ==> BUG


olivelemalin
2009-04-03, 22:57
Hi,

I have found that while a first python script is already running, if I launch an other python script more than once by second (for example with key mapped to xbmc.RunScript(...) ), it raises an exception :
CThread::StaticThread : access violation at 0x41235678 when reading memory 0x0000000.
From here, the only thing that can be done is to kill XBMC.

The problem only happens if I launch the second script several times, quickly (< 2seconds).
This second script can be very simple, like only :
print "hello world"

This has occured to me for each version (from 8.10 to 9.04), so also with current svn.
Note : compilation on Windows, with VC2008Express.

Thanks.

olivelemalin
2009-04-07, 10:11
nobody has the same issue ??

olivelemalin
2009-04-07, 10:35
1/ declare an entry in the keymap.xml file, like that :

<keymap>
<global>
<keyboard>
<w>XBMC.RunScript(C:\_dev\XBMC_9.04\XBMC\scripts\auto exec.py)</w>
...

2/ autoexec.py :

print "autoexec.py"


3/ from any window of xbmc, launch autoexec.py by pressing the 'w' key.
If you press it with an interval of 2 seconds, it should be OK, but if you press it more quicly ==> BOUM !!
The error in the log file is :


09:31:52 T:5972 M:1151709184 NOTICE: -->Python Interpreter Initialized<--
09:31:52 T:5972 M:1151709184 NOTICE:
09:31:52 T:5972 M:1151684608 NOTICE: autoexec.py
09:31:52 T:5972 M:1151684608 NOTICE:
09:31:53 T:1452 M:1151680512 NOTICE: -->Python Interpreter Initialized<--
09:31:53 T:1452 M:1151680512 NOTICE:
09:31:53 T:1452 M:1151655936 NOTICE: autoexec.py
09:31:53 T:1452 M:1151655936 NOTICE:
09:31:53 T:4512 M:1151336448 NOTICE: -->Python Interpreter Initialized<--
09:31:53 T:4512 M:1151332352 NOTICE:
09:31:53 T:4512 M:1151307776 NOTICE: autoexec.py
09:31:53 T:4512 M:1151307776 NOTICE:
09:31:55 T:2192 M:1149788160 NOTICE: -->Python Interpreter Initialized<--
09:31:55 T:2192 M:1149788160 NOTICE:
09:31:55 T:2192 M:1149763584 NOTICE: autoexec.py
09:31:55 T:2192 M:1149763584 NOTICE:
09:31:55 T:3688 M:1150160896 NOTICE: -->Python Interpreter Initialized<--
09:31:55 T:3688 M:1150160896 NOTICE:
09:31:55 T:3688 M:1150136320 NOTICE: autoexec.py
09:31:55 T:3688 M:1150136320 NOTICE:
09:31:56 T:2868 M:1149890560 NOTICE: -->Python Interpreter Initialized<--
09:31:56 T:2868 M:1149890560 NOTICE:
09:31:56 T:2868 M:1149870080 NOTICE: autoexec.py
09:31:56 T:2868 M:1149870080 NOTICE:
09:31:56 T:4360 M:1149460480 NOTICE: -->Python Interpreter Initialized<--
09:31:56 T:4360 M:1149460480 NOTICE:
09:31:56 T:4360 M:1149444096 NOTICE: autoexec.py
09:31:56 T:4360 M:1149444096 NOTICE:
09:31:56 T:4360 M:1149194240 ERROR: CThread::staticThread : Access violation at 0x1e0ac802: Writing location 0x00000000

jmarshall
2009-04-08, 07:50
Post a trac ticket with full details on how to reproduce.