2012-03-03, 19:54
I'm testing a simple, very simple, script with Eden beta3-live. It is enough to enter/exit script few times to generate the segfault. The script is al follows:
Ths produces following crash log:
Without the addControl() it works fine. Replacing ControlLabel with ImageLabel produces the crash again. Are there any problems around CGUI*() destructors? Or am I missing something in the script?
Code:
import sys
import xbmcgui
ACTION_PREVIOUS_MENU = 10
class Pattern(xbmcgui.Window):
def __init__(self):
self.addControl(xbmcgui.ControlLabel(100, 300, 200, 100, "XXXXXXXXXXXXXXXXX"))
def onAction(self, action):
if action == ACTION_PREVIOUS_MENU:
self.close()
if (__name__ == "__main__"):
win = Pattern()
win.doModal()
del win
Ths produces following crash log:
Code:
[Thread debugging using libthread_db enabled]
Core was generated by `/usr/lib/xbmc/xbmc.bin --standalone'.
Program terminated with signal 11, Segmentation fault.
#0 0x08465428 in CGUIControl::~CGUIControl() ()
[...]
Thread 1 (Thread 0x5c7f40 (LWP 28306)):
#0 0x08465428 in CGUIControl::~CGUIControl() ()
#1 0x0849fa23 in CGUILabelControl::~CGUILabelControl() ()
#2 0x0849fb32 in CGUILabelControl::~CGUILabelControl() ()
#3 0x08474366 in CGUIControlGroup::ClearAll() ()
#4 0x084eb50d in CGUIWindow::ClearAll() ()
#5 0x084eb5c4 in CGUIWindow::FreeResources(bool) ()
#6 0x084f2baa in CGUIWindowManager::FrameMove() ()
#7 0x08a91f3e in CApplication::FrameMove(bool) ()
#8 0x08b1e048 in CXBApplicationEx::Run() ()
#9 0x08237c0a in main ()
Without the addControl() it works fine. Replacing ControlLabel with ImageLabel produces the crash again. Are there any problems around CGUI*() destructors? Or am I missing something in the script?