I also have the same problem. My plugin runs correct 70% of the times, the other 30% he crashes xbmc at close time.
My plugin is very simple, code following:
Code:
import xbmc, xbmcgui, sys, os
ACTION_PREVIOUS_MENU = 10
class Test(xbmcgui.Window):
def __init__(self):
xbmcgui.Window.__init__(self)
sys.path.append('/usr/local/bin')
progress = xbmcgui.DialogProgress()
ret = progress.create("", "Loading...")
command = 'command'
os.system(command)
def onAction(self, action):
if action == ACTION_PREVIOUS_MENU:
self.close()
ui = Test()
del ui
I run plugin using RunScript(script.test). Logs here:
Code:
############## XBMC CRASH LOG ###############
################ SYSTEM INFO ################
Date: Mon Feb 21 16:24:03 WET 2011
XBMC Options:
Arch: i686
Kernel: Linux 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010
Release:
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
############## END SYSTEM INFO ##############
############### STACK TRACE #################
=====> Core file: /home/nwc/core (2011-02-21 16:24:03.411705002 +0000)
=========================================
[New Thread 8116]
[New Thread 7832]
[New Thread 7829]
[New Thread 7833]
[New Thread 7834]
[New Thread 7918]
[New Thread 7836]
[New Thread 7842]
[New Thread 7835]
[New Thread 7932]
[New Thread 7837]
[New Thread 7813]
[New Thread 7845]
[New Thread 7838]
[New Thread 7925]
[New Thread 7840]
[New Thread 7839]
[New Thread 7843]
[New Thread 7844]
[New Thread 7846]
[New Thread 7912]
[New Thread 7913]
[New Thread 7914]
[New Thread 7922]
[New Thread 7924]
[New Thread 7928]
[New Thread 7930]
Core was generated by `/usr/lib/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0 0x0160e3f4 in _PyModule_Clear () from /usr/lib/xbmc/system/python/python24-i486-linux.so
Thread 41 (Thread 7847):
#0 0x005c4416 in __kernel_vsyscall ()
#1 0x02628de6 in poll () from /lib/libc.so.6
#2 0x00bfcbfb in ?? () from /lib/libdbus-1.so.3
#3 0x00bf595f in ?? () from /lib/libdbus-1.so.3
#4 0x00bf37dc in ?? () from /lib/libdbus-1.so.3
#5 0x00bdcc13 in ?? () from /lib/libdbus-1.so.3
#6 0x00bdf1e7 in ?? () from /lib/libdbus-1.so.3
#7 0x082c214b in DBUSSERVER::CDbusServer::Run() ()
#8 0x0829d677 in CThread::Process() ()
#9 0x0829dd35 in CThread::staticThread(void*) ()
#10 0x009de437 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#11 0x026376ae in clone () from /lib/libc.so.6
Thread 40 (Thread 7848):
#0 0x005c4416 in __kernel_vsyscall ()
#1 0x02630381 in select () from /lib/libc.so.6
#2 0x08959ee3 in JSONRPC::CTCPServer::Process() ()
#3 0x0829dd35 in CThread::staticThread(void*) ()
#4 0x009de437 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#5 0x026376ae in clone () from /lib/libc.so.6
Thread 39 (Thread 7911):
#0 0x005c4416 in __kernel_vsyscall ()
#1 0x003ae884 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x0892e653 in NPT_PosixQueue::Pop(NPT_QueueItem*&, long) ()
#3 0x088efc82 in PLT_HttpClientSocketTask::GetNextRequest(NPT_HttpRequest*&, long) ()
#4 0x088f0b8d in PLT_HttpClientSocketTask::DoRun() ()
#5 0x088fcc53 in PLT_ThreadTask::Run() ()
#6 0x0892ecd4 in NPT_PosixThread::Run() ()
#7 0x0892fe5d in NPT_PosixThread::EntryPoint(void*) ()
#8 0x009de437 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#9 0x026376ae in clone () from /lib/libc.so.6
Thread 38 (Thread 7917):
#0 0x005c4416 in __kernel_vsyscall ()
#1 0x003ae884 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0