control listitem crash?
#1
Hello,
I write a simple code to try when I click my listitem ,then xbmc crash and sometimes even if i did not do anything ,it still crash
why?

PHP Code:
import xbmcgui,xbmcaddon

__addonPath__ 
xbmcaddon.Addon('plugin.video.mytest').getAddonInfo('path')
ACTION_PREVIOUS_MENU 10

class MainWindow(xbmcgui.WindowXML):
    
def __init__(self,xmlFilename,scriptPath,defaultSkin "Default"):
        
pass

    def onInit
(self):
        
self.ThumbnailView self.getControl(500)
        
self.ThumbnailView.addItem("TEST1")
        
self.ThumbnailView.addItem("TEST2")
        
self.ThumbnailView.addItem("TEST3")

    
def onAction(self,action):
        if 
action == ACTION_PREVIOUS_MENU:
            
self.close()

    
def onClick(self,controlID):
        
pass

objWindow 
MainWindow("main.xml",__addonName__)
objWindow.doModal()
del objWindow 

it show "Assertion 'c' failed at pulse/context.c:1031, function pa_context_get_state()"
the xbmc log file show
PHP Code:
ERRORXBPyThread::stop script didn't stop in proper time - lets kill it
ERROR:CGUIMediaWindow::GetDirectory(plugin://plugin.video.mytest) failed 

the os is ubuntu 11.04
Reply
#2
I check my addon.xml and I found the where the problem is.
I modified my addon.xml and the problem is fixed by myself.
thanks
PHP Code:
<extension point="xbmc.python.script" library="default.py">
    <
provides>video</provides>
</
extension
Reply

Logout Mark Read Team Forum Stats Members Help
control listitem crash?0