Hey guys,
I’m have this problem where for some reason the decorators I to use for a Combo box in PyQt causes Maya 2013 to crash, but works perfectly fine in Maya 2012 and for any other Widget item.
I don’t have 2013 installed, otherwise I’d give it a try. Just a hunch, but I think you may just be running up against a simple Maya threading issue, or an issue where you are getting a callback event while you are currently inside the callback event. Try setting a flag that can be read from within the callback (a global variable, etc.), and exiting without doing anything if the flag is set.
callback():
global is_in_callback
if is_in_callback:
return
is_incallback = True
dostuff()
is_incallback = False
I don’t know if python calls to print are thread safe in Maya 2013. I don’t know why they wouldn’t be, but you might try adding some thread safety to the callback and see if that helps: