Python script launched too quickly ==> BUG
#1
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 :
Code:
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.
Reply
#2
nobody has the same issue ??
Reply
#3
1/ declare an entry in the keymap.xml file, like that :
Code:
<keymap>
  <global>
    <keyboard>
<w>XBMC.RunScript(C:\_dev\XBMC_9.04\XBMC\scripts\autoexec.py)</w>
...

2/ autoexec.py :
Code:
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 :

Code:
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
Reply
#4
Post a trac ticket with full details on how to reproduce.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Python script launched too quickly ==> BUG0