2012-11-27, 09:55
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?
it show "Assertion 'c' failed at pulse/context.c:1031, function pa_context_get_state()"
the xbmc log file show
the os is ubuntu 11.04
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:
ERROR: XBPyThread::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