AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / Crash - optionMenuGrp change command?
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Crash - optionMenuGrp change command?
Rate this thread
 
65951
 
Permlink of this thread  
avatar
  • Total Posts: 9
  • Joined: 03 November 2006 03:15 PM

OSX 10.6.6 - maya 2011
Having trouble with my custom interfaces, so I took the basic example from the help docs to isolate the core crash.
If anyone has any suggestions I would appreciate it.

global proc drawTstWin () {
 
if (`window -ex testWin`) deleteUI testWin;
 
 
string $window = `window -title "Example 2" testWin`;
 
columnLayout;
 
//string $cmd = "print \"xxx\""; // this works fine
 
string $cmd "drawTstWin"// this causes the crash
 
optionMenuGrp -cc $cmd -label "Size" -extraLabel "cm" -columnWidth 2 80;
 
menuItem -label "10";
 
menuItem -label "100";
 
menuItem -label "1000";
 
showWindow $window;
 
}
drawTstWin
;


Replies: 0
avatar

Also… this is the stack trace

//====================================================
//last tool: renderWindowSelectContextItem
//====================================================
//panel with focus: modelPanel4
//visible panels:
// modelPanel4 outlinerPanel1 scriptEditorPanel1
//====================================================
4 QtCore 0x05643834 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 116
5 QtGui 0x05b1fc5e QComboBox::activated(QString const&) + 62
6 QtGui 0x05b2198c QComboBoxPrivate::emitActivated(QModelIndex const&) + 92
7 QtGui 0x05b23321 QComboBoxPrivate::_q_itemSelected(QModelIndex const&) + 81
8 QtGui 0x05b27e86 QComboBox::qt_metacall(QMetaObject::Call, int, void**) + 822
9 libExtensionLayer.dylib 0x013236f0 QmayaOptionMenu::qt_metacall(QMetaObject::Call, int, void**) + 40
10 QtCore 0x05643138 QMetaObject::activate(QObject*, int, int, void**) + 568
11 QtGui 0x05d8545e QComboBoxPrivateContainer::itemSelected(QModelIndex const&) + 62
12 QtGui 0x05b215b7 QComboBoxPrivateContainer::eventFilter(QObject*, QEvent*) + 391
13 QtCore 0x0562ee8f QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 143
14 QtGui 0x057f6443 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 147
15 QtGui 0x057fbedd QApplication::notify(QObject*, QEvent*) + 1357
16 libExtensionLayer.dylib 0x0114c2ac QmayaApplication::notify(QObject*, QEvent*) + 72
17 QtCore 0x0562f17c QCoreApplication::notifyInternal(QObject*, QEvent*) + 108
18 QtGui 0x05792329 QApplicationPrivate::globalEventProcessor(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 6841
19 HIToolbox 0x90558ecf DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
20 HIToolbox 0x90558196 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
21 HIToolbox 0x9057aa07 SendEventToEventTarget + 52
22 HIToolbox 0x9058c543 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1257
23 HIToolbox 0x90559320 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2672
24 HIToolbox 0x90558196 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
25 HIToolbox 0x9057aa07 SendEventToEventTarget + 52
26 QtGui 0x057a3274 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 596
27 QtCore 0x0562e371 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 65
28 QtCore 0x0562e6aa QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 170
29 QtCore 0x056302e6 QCoreApplication::exec() + 182
30 libExtensionLayer.dylib 0x01147981 Tapplication::start() + 559
31 Maya 0x00015499 appmain() + 1567
32 Maya 0x0002235c main + 130
33 Maya 0x00011cb6 start + 54

//====================================================
//Memory usage:
// 0.000 Mb Free Memory
// 0.000 Mb Free Swap
// 139.910 Mb Heap
//====================================================



Replies: 0