2011-04-25, 12:23
This is really weird.
Yes/No dialogs work fine. OK dialogs work fine. DialogProcess runs fine.
However, if I try to use a Dialog().select xbmc crashes every time with a segmentation fault.
Is there something obviously wrong with my code?
xbmc.log shows the output of "print myArgs" - so I know it's crashing on the dialog step.
Even if I replace myArgs with, say ["1", "2"] I get the same error.
This is the crashlog: http://pastebin.com/uCWZVhAK
This is the last piece of my script - gutted that this is causing a problem as it seems so straightforward.
Any help would be greatly appreciated.
Yes/No dialogs work fine. OK dialogs work fine. DialogProcess runs fine.
However, if I try to use a Dialog().select xbmc crashes every time with a segmentation fault.
Is there something obviously wrong with my code?
Code:
def ShowUserDialog():
if actiontype == 0:
powerMode = "Suspend"
elif actiontype == 1:
powerMode = "Hibernate"
print powerMode
myArgs = [str(powerMode),'Lock', 'Unlock', 'Cancel']
print myArgs
userChoice = xbmcgui.Dialog().select("Myth Suspend Alarm", myArgs)
print userChoice
xbmc.log shows the output of "print myArgs" - so I know it's crashing on the dialog step.
Even if I replace myArgs with, say ["1", "2"] I get the same error.
This is the crashlog: http://pastebin.com/uCWZVhAK
This is the last piece of my script - gutted that this is causing a problem as it seems so straightforward.
Any help would be greatly appreciated.