Error loading Qt plugins for Maya 2016 after compiling

Error loading Qt plugins for Maya 2016 after compiling

Anonymous
Not applicable
2,072 Views
5 Replies
Message 1 of 6

Error loading Qt plugins for Maya 2016 after compiling

Anonymous
Not applicable

I successfully compile the modified Qt4.8.6 downloaded from autdesk lgpl webpage.

 

I use win7 x64,  VS2012 update4 with Win8 SDK installed, Visual studio tool/vs2012 native x64 command line, and becuase I couldn't find OpenSSL 1.0.1g build of OpenSSL, so I omited it and use this line to configure:

configure -release -stl -no-qt3support -directwrite -plugin-sql-sqlite

 

When I pick the qmake.exe in Qt-Creator, it doesn't not issue any error.

Yet when I compile my Qt plugin project, it produced lots of error like these:

 

../src/corelib/kernel/qmetatype.h(357) : error C2065: “ULONG”:  undeclared identifier
../src/corelib/kernel/qmetatype.h(357) : error C2923: “QMetaTypeId2”: 'type' : 'identifier' is invalid as template argument 'ULONG', type expected
../src/corelib/kernel/qmetatype.h(357) : error C2913: explicit specialization; 'qmetatype' is not a specialization of a class template

I searched through internet, and found a solution, I included <windows.h> which is the the header file from: C:\Program Files (x86)\Windows Kits\8.0\Include\um\Windows.h

and the compile succeed. 

 

The problem is ,when I load my Qt plugin in Maya 2016, it loaded successfully, but for somehow when I open a scene that using Qt's graphic framework, maya always crashed. I chekc out the MayaCrashLog, here is the content:

 

//=====================================================
Maya Crash Report
//=====================================================

Exception code: C0000005: ACCESS_VIOLATION - illegal read at address 0x00000000
Fault address:  523923B4 in D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll
0001:001513B4 Logical offset (see .map file for location)

Call stack:
(0) section:offset       Address        Frame
     0001:001513B4   0x523923B4 0x010D4170
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QObject::inherits + 0x4 bytes
	Decl: public: bool QObject::inherits(char const * ptr64)
(1) section:offset       Address        Frame
     0001:000AC346   0xEAACD346 0x010D4690
	Module:  D:\Program Files\Autodesk\Maya2016\bin\ExtensionLayer.dll (-exported-)
	Location: QmayaSymbolCheckBox::`default constructor closure' + 0x4106 bytes
	Decl: public: void QmayaSymbolCheckBox::`default constructor closure'(void)
(2) section:offset       Address        Frame
     0001:00310350   0x51A21350 0x010D4D30
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QCommonStyle::drawComplexControl + 0xE90 bytes
	Decl: public: virtual void QCommonStyle::drawComplexControl(enum QStyle::ComplexControl,class QStyleOptionComplex const * ptr64,class QPainter * ptr64,class QWidget const * ptr64)
(3) section:offset       Address        Frame
     0001:003AFC59   0x51AC0C59 0x010D5010
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWindowsStyle::drawComplexControl + 0x79 bytes
	Decl: public: virtual void QWindowsStyle::drawComplexControl(enum QStyle::ComplexControl,class QStyleOptionComplex const * ptr64,class QPainter * ptr64,class QWidget const * ptr64)
(4) section:offset       Address        Frame
     0001:00377CE2   0x51A88CE2 0x010D6900
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QPlastiqueStyle::drawComplexControl + 0x1A2 bytes
	Decl: public: virtual void QPlastiqueStyle::drawComplexControl(enum QStyle::ComplexControl,class QStyleOptionComplex const * ptr64,class QPainter * ptr64,class QWidget const * ptr64)
(5) section:offset       Address        Frame
     0001:000A8FF0   0xEAAC9FF0 0x010D6B70
	Module:  D:\Program Files\Autodesk\Maya2016\bin\ExtensionLayer.dll (-exported-)
	Location: QmayaSymbolCheckBox::`default constructor closure' + 0xDB0 bytes
	Decl: public: void QmayaSymbolCheckBox::`default constructor closure'(void)
(6) section:offset       Address        Frame
     0001:0033CA2B   0x51A4DA2B 0x010D73A0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QStyleSheetStyle::drawComplexControl + 0x1EDB bytes
	Decl: public: virtual void QStyleSheetStyle::drawComplexControl(enum QStyle::ComplexControl,class QStyleOptionComplex const * ptr64,class QPainter * ptr64,class QWidget const * ptr64)
(7) section:offset       Address        Frame
     0001:00484695   0x51B95695 0x010D7480
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QToolButton::paintEvent + 0x95 bytes
	Decl: protected: virtual void QToolButton::paintEvent(class QPaintEvent * ptr64)
(8) section:offset       Address        Frame
     0001:00070DD7   0x51781DD7 0x010D7600
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidget::event + 0x4B7 bytes
	Decl: protected: virtual bool QWidget::event(class QEvent * ptr64)
(9) section:offset       Address        Frame
     0001:0002A0FD   0x5173B0FD 0x010D7630
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QApplicationPrivate::notify_helper + 0x10D bytes
	Decl: public: bool QApplicationPrivate::notify_helper(class QObject * ptr64,class QEvent * ptr64)
(10) section:offset       Address        Frame
     0001:00029D90   0x5173AD90 0x010D78C0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QApplication::notify + 0x1720 bytes
	Decl: public: virtual bool QApplication::notify(class QObject * ptr64,class QEvent * ptr64)
(11) section:offset       Address        Frame
     0001:0000FBBF   0xEAA30BBF 0x010D7950
	Module:  D:\Program Files\Autodesk\Maya2016\bin\ExtensionLayer.dll (-exported-)
	Location: TscriptAction::languageContext + 0x35F bytes
	Decl: public: enum TcommandLanguageContext TscriptAction::languageContext(void)
(12) section:offset       Address        Frame
     0001:0013B85D   0x5237C85D 0x010D79B0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QCoreApplication::notifyInternal + 0x6D bytes
	Decl: private: bool QCoreApplication::notifyInternal(class QObject * ptr64,class QEvent * ptr64)
(13) section:offset       Address        Frame
     0001:00070354   0x51781354 0x010D7B40
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x734 bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(14) section:offset       Address        Frame
     0001:000790E2   0x5178A0E2 0x010D7C10
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::render + 0x352 bytes
	Decl: public: void QWidgetPrivate::render(class QPaintDevice * ptr64,class QPoint const & ptr64,class QRegion const & ptr64,class QFlags<enum QWidget::RenderFlag>,bool)
(15) section:offset       Address        Frame
     0001:00078CDD   0x51789CDD 0x010D7D50
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidget::render + 0x38D bytes
	Decl: public: void QWidget::render(class QPainter * ptr64,class QPoint const & ptr64,class QRegion const & ptr64,class QFlags<enum QWidget::RenderFlag>)
(16) section:offset       Address        Frame
     0001:005F8F0C   0x51D09F0C 0x010D7E10
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsProxyWidget::paint + 0x15C bytes
	Decl: public: virtual void QGraphicsProxyWidget::paint(class QPainter * ptr64,class QStyleOptionGraphicsItem const * ptr64,class QWidget * ptr64)
(17) section:offset       Address        Frame
     0001:005FE7C8   0x51D0F7C8 0x010D7EA0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScenePrivate::_q_emitUpdated + 0x9A8 bytes
	Decl: public: void QGraphicsScenePrivate::_q_emitUpdated(void)
(18) section:offset       Address        Frame
     0001:006043F9   0x51D153F9 0x010D82E0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScenePrivate::drawItemHelper + 0xB9 bytes
	Decl: public: void QGraphicsScenePrivate::drawItemHelper(class QGraphicsItem * ptr64,class QPainter * ptr64,class QStyleOptionGraphicsItem const * ptr64,class QWidget * ptr64,bool)
(19) section:offset       Address        Frame
     0001:00603EE5   0x51D14EE5 0x010D8480
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScenePrivate::draw + 0x3F5 bytes
	Decl: public: void QGraphicsScenePrivate::draw(class QGraphicsItem * ptr64,class QPainter * ptr64,class QTransform const * ptr64 const,class QTransform const * ptr64 const,class QRegion * ptr64,class QWidget * ptr64,double,class QTransform const * ptr64 const,bool,bool)
(20) section:offset       Address        Frame
     0001:0060636D   0x51D1736D 0x010D8770
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScenePrivate::drawSubtreeRecursive + 0x76D bytes
	Decl: public: void QGraphicsScenePrivate::drawSubtreeRecursive(class QGraphicsItem * ptr64,class QPainter * ptr64,class QTransform const * ptr64 const,class QRegion * ptr64,class QWidget * ptr64,double,class QTransform const * ptr64 const)
(21) section:offset       Address        Frame
     0001:0060412F   0x51D1512F 0x010D8910
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScenePrivate::draw + 0x63F bytes
	Decl: public: void QGraphicsScenePrivate::draw(class QGraphicsItem * ptr64,class QPainter * ptr64,class QTransform const * ptr64 const,class QTransform const * ptr64 const,class QRegion * ptr64,class QWidget * ptr64,double,class QTransform const * ptr64 const,bool,bool)
(22) section:offset       Address        Frame
     0001:0060636D   0x51D1736D 0x010D8C00
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScenePrivate::drawSubtreeRecursive + 0x76D bytes
	Decl: public: void QGraphicsScenePrivate::drawSubtreeRecursive(class QGraphicsItem * ptr64,class QPainter * ptr64,class QTransform const * ptr64 const,class QRegion * ptr64,class QWidget * ptr64,double,class QTransform const * ptr64 const)
(23) section:offset       Address        Frame
     0001:00605BA3   0x51D16BA3 0x010D8D40
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScenePrivate::drawItems + 0x193 bytes
	Decl: public: void QGraphicsScenePrivate::drawItems(class QPainter * ptr64,class QTransform const * ptr64 const,class QRegion * ptr64,class QWidget * ptr64)
(24) section:offset       Address        Frame
     0001:00628163   0x51D39163 0x010D8FE0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsView::paintEvent + 0x603 bytes
	Decl: protected: virtual void QGraphicsView::paintEvent(class QPaintEvent * ptr64)
(25) section:offset       Address        Frame
     0001:0011F8C6   0xD49108C6 0x010D9080
	Module:  D:\My Documents\maya\2016\scripts\MG-PickerStudio\MGPicker_Program\Plug-ins\MGPicker_2016x64.mll (PDB)
	Location: MGP_GraphicsView::paintEvent + 0x36 bytes
	Decl: MGP_GraphicsView::paintEvent
(26) section:offset       Address        Frame
     0001:00070DD7   0x51781DD7 0x010D9200
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidget::event + 0x4B7 bytes
	Decl: protected: virtual bool QWidget::event(class QEvent * ptr64)
(27) section:offset       Address        Frame
     0001:0040E327   0x51B1F327 0x010D9230
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QFrame::event + 0x37 bytes
	Decl: protected: virtual bool QFrame::event(class QEvent * ptr64)
(28) section:offset       Address        Frame
     0001:0062CA28   0x51D3DA28 0x010D92C0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsView::viewportEvent + 0x3E8 bytes
	Decl: protected: virtual bool QGraphicsView::viewportEvent(class QEvent * ptr64)
(29) section:offset       Address        Frame
     0001:0013D743   0x5237E743 0x010D92F0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QCoreApplicationPrivate::sendThroughObjectEventFilters + 0x83 bytes
	Decl: public: bool QCoreApplicationPrivate::sendThroughObjectEventFilters(class QObject * ptr64,class QEvent * ptr64)
(30) section:offset       Address        Frame
     0001:0002A0E9   0x5173B0E9 0x010D9320
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QApplicationPrivate::notify_helper + 0xF9 bytes
	Decl: public: bool QApplicationPrivate::notify_helper(class QObject * ptr64,class QEvent * ptr64)
(31) section:offset       Address        Frame
     0001:00029D90   0x5173AD90 0x010D95B0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QApplication::notify + 0x1720 bytes
	Decl: public: virtual bool QApplication::notify(class QObject * ptr64,class QEvent * ptr64)
(32) section:offset       Address        Frame
     0001:0000FBBF   0xEAA30BBF 0x010D9640
	Module:  D:\Program Files\Autodesk\Maya2016\bin\ExtensionLayer.dll (-exported-)
	Location: TscriptAction::languageContext + 0x35F bytes
	Decl: public: enum TcommandLanguageContext TscriptAction::languageContext(void)
(33) section:offset       Address        Frame
     0001:0013B85D   0x5237C85D 0x010D96A0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QCoreApplication::notifyInternal + 0x6D bytes
	Decl: private: bool QCoreApplication::notifyInternal(class QObject * ptr64,class QEvent * ptr64)
(34) section:offset       Address        Frame
     0001:00070354   0x51781354 0x010D9830
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x734 bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(35) section:offset       Address        Frame
     0001:00076037   0x51787037 0x010D9950
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x3C7 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(36) section:offset       Address        Frame
     0001:000704DC   0x517814DC 0x010D9AE0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x8BC bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(37) section:offset       Address        Frame
     0001:00076037   0x51787037 0x010D9C00
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x3C7 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(38) section:offset       Address        Frame
     0001:000704DC   0x517814DC 0x010D9D90
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x8BC bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(39) section:offset       Address        Frame
     0001:00076037   0x51787037 0x010D9EB0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x3C7 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(40) section:offset       Address        Frame
     0001:00075F26   0x51786F26 0x010D9FD0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x2B6 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(41) section:offset       Address        Frame
     0001:00075F26   0x51786F26 0x010DA0F0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x2B6 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(42) section:offset       Address        Frame
     0001:000704DC   0x517814DC 0x010DA280
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x8BC bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(43) section:offset       Address        Frame
     0001:00076037   0x51787037 0x010DA3A0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x3C7 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(44) section:offset       Address        Frame
     0001:000704DC   0x517814DC 0x010DA530
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x8BC bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(45) section:offset       Address        Frame
     0001:00076037   0x51787037 0x010DA650
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x3C7 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(46) section:offset       Address        Frame
     0001:000704DC   0x517814DC 0x010DA7E0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x8BC bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(47) section:offset       Address        Frame
     0001:00076037   0x51787037 0x010DA900
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x3C7 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(48) section:offset       Address        Frame
     0001:000704DC   0x517814DC 0x010DAA90
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x8BC bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(49) section:offset       Address        Frame
     0001:00076037   0x51787037 0x010DABB0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x3C7 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(50) section:offset       Address        Frame
     0001:000704DC   0x517814DC 0x010DAD40
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x8BC bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(51) section:offset       Address        Frame
     0001:00076037   0x51787037 0x010DAE60
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x3C7 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(52) section:offset       Address        Frame
     0001:000704DC   0x517814DC 0x010DAFF0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x8BC bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(53) section:offset       Address        Frame
     0001:00076037   0x51787037 0x010DB110
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::paintSiblingsRecursive + 0x3C7 bytes
	Decl: public: void QWidgetPrivate::paintSiblingsRecursive(class QPaintDevice * ptr64,class QList<class QObject * ptr64> const & ptr64,int,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(54) section:offset       Address        Frame
     0001:000704DC   0x517814DC 0x010DB2A0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetPrivate::drawWidget + 0x8BC bytes
	Decl: public: void QWidgetPrivate::drawWidget(class QPaintDevice * ptr64,class QRegion const & ptr64,class QPoint const & ptr64,int,class QPainter * ptr64,class QWidgetBackingStore * ptr64)
(55) section:offset       Address        Frame
     0001:0023AAB9   0x5194BAB9 0x010DB500
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidgetBackingStore::sync + 0xA29 bytes
	Decl: public: void QWidgetBackingStore::sync(void)
(56) section:offset       Address        Frame
     0001:00071155   0x51782155 0x010DB680
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QWidget::event + 0x835 bytes
	Decl: protected: virtual bool QWidget::event(class QEvent * ptr64)
(57) section:offset       Address        Frame
     0001:0002A0FD   0x5173B0FD 0x010DB6B0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QApplicationPrivate::notify_helper + 0x10D bytes
	Decl: public: bool QApplicationPrivate::notify_helper(class QObject * ptr64,class QEvent * ptr64)
(58) section:offset       Address        Frame
     0001:00029D90   0x5173AD90 0x010DB940
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QApplication::notify + 0x1720 bytes
	Decl: public: virtual bool QApplication::notify(class QObject * ptr64,class QEvent * ptr64)
(59) section:offset       Address        Frame
     0001:0000FBBF   0xEAA30BBF 0x010DB9D0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\ExtensionLayer.dll (-exported-)
	Location: TscriptAction::languageContext + 0x35F bytes
	Decl: public: enum TcommandLanguageContext TscriptAction::languageContext(void)
(60) section:offset       Address        Frame
     0001:0013B85D   0x5237C85D 0x010DBA30
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QCoreApplication::notifyInternal + 0x6D bytes
	Decl: private: bool QCoreApplication::notifyInternal(class QObject * ptr64,class QEvent * ptr64)
(61) section:offset       Address        Frame
     0001:0013D44F   0x5237E44F 0x010DBAC0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QCoreApplicationPrivate::sendPostedEvents + 0x26F bytes
	Decl: public: static void QCoreApplicationPrivate::sendPostedEvents(class QObject * ptr64,int,class QThreadData * ptr64)
(62) section:offset       Address        Frame
     0001:005FDFD4   0x51D0EFD4 0x010DBB80
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScenePrivate::_q_emitUpdated + 0x1B4 bytes
	Decl: public: void QGraphicsScenePrivate::_q_emitUpdated(void)
(63) section:offset       Address        Frame
     0001:005FA94A   0x51D0B94A 0x010DBC00
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScene::qt_static_metacall + 0x19A bytes
	Decl: private: static void QGraphicsScene::qt_static_metacall(class QObject * ptr64,enum QMetaObject::Call,int,void * ptr64 * ptr64)
(64) section:offset       Address        Frame
     0001:001508CC   0x523918CC 0x010DBDF0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QObject::event + 0xCC bytes
	Decl: public: virtual bool QObject::event(class QEvent * ptr64)
(65) section:offset       Address        Frame
     0001:006077CE   0x51D187CE 0x010DBF70
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QGraphicsScene::event + 0x79E bytes
	Decl: protected: virtual bool QGraphicsScene::event(class QEvent * ptr64)
(66) section:offset       Address        Frame
     0001:0002A0FD   0x5173B0FD 0x010DBFA0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QApplicationPrivate::notify_helper + 0x10D bytes
	Decl: public: bool QApplicationPrivate::notify_helper(class QObject * ptr64,class QEvent * ptr64)
(67) section:offset       Address        Frame
     0001:00029D90   0x5173AD90 0x010DC230
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QApplication::notify + 0x1720 bytes
	Decl: public: virtual bool QApplication::notify(class QObject * ptr64,class QEvent * ptr64)
(68) section:offset       Address        Frame
     0001:0000FBBF   0xEAA30BBF 0x010DC2C0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\ExtensionLayer.dll (-exported-)
	Location: TscriptAction::languageContext + 0x35F bytes
	Decl: public: enum TcommandLanguageContext TscriptAction::languageContext(void)
(69) section:offset       Address        Frame
     0001:0013B85D   0x5237C85D 0x010DC320
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QCoreApplication::notifyInternal + 0x6D bytes
	Decl: private: bool QCoreApplication::notifyInternal(class QObject * ptr64,class QEvent * ptr64)
(70) section:offset       Address        Frame
     0001:0013D44F   0x5237E44F 0x010DC3B0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QCoreApplicationPrivate::sendPostedEvents + 0x26F bytes
	Decl: public: static void QCoreApplicationPrivate::sendPostedEvents(class QObject * ptr64,int,class QThreadData * ptr64)
(71) section:offset       Address        Frame
     0001:0016A13F   0x523AB13F 0x010DC460
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QEventDispatcherWin32::processEvents + 0xBBF bytes
	Decl: public: virtual bool QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)
(72) section:offset       Address        Frame
     0001:00018BD1   0x77469BD1 0x010DC520
	Module:  C:\Windows\system32\USER32.dll (-exported-)
	Location: TranslateMessageEx + 0x2A1 bytes
	Decl: TranslateMessageEx
(73) section:offset       Address        Frame
     0001:000188DA   0x774698DA 0x010DC5A0
	Module:  C:\Windows\system32\USER32.dll (-exported-)
	Location: TranslateMessage + 0x1EA bytes
	Decl: TranslateMessage
(74) section:offset       Address        Frame
     0001:00169928   0x523AA928 0x010DF8E0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QEventDispatcherWin32::processEvents + 0x3A8 bytes
	Decl: public: virtual bool QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)
(75) section:offset       Address        Frame
     0001:0009B685   0x517AC685 0x010DF910
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtGui4.dll (-exported-)
	Location: QApplicationPrivate::openPopup + 0x215 bytes
	Decl: public: void QApplicationPrivate::openPopup(class QWidget * ptr64)
(76) section:offset       Address        Frame
     0001:00137B1C   0x52378B1C 0x010DF980
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QEventLoop::exec + 0x22C bytes
	Decl: public: int QEventLoop::exec(class QFlags<enum QEventLoop::ProcessEventsFlag>)
(77) section:offset       Address        Frame
     0001:0013AB30   0x5237BB30 0x010DF9D0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\QtCore4.dll (-exported-)
	Location: QCoreApplication::exec + 0xE0 bytes
	Decl: public: static int QCoreApplication::exec(void)
(78) section:offset       Address        Frame
     0001:0000D1BA   0xEAA2E1BA 0x010DFAD0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\ExtensionLayer.dll (-exported-)
	Location: Tapplication::start + 0xBA bytes
	Decl: public: void Tapplication::start(void)
(79) section:offset       Address        Frame
     0001:0000241E   0x3F41341E 0x010DFE10
	Module:  D:\Program Files\Autodesk\Maya2016\bin\maya.exe (-exported-)
(80) section:offset       Address        Frame
     0001:00024EF8   0x3F435EF8 0x010DFE90
	Module:  D:\Program Files\Autodesk\Maya2016\bin\maya.exe (-exported-)
	Location: TiteratorWrapperBidir<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator= + 0x14878 bytes
	Decl: public: class TiteratorWrapperBidir<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> > & ptr64 TiteratorWrapperBidir<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> >::operator=(class TiteratorWrapperBidir<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> > const & ptr64)
(81) section:offset       Address        Frame
     0001:00021F90   0x3F432F90 0x010DFED0
	Module:  D:\Program Files\Autodesk\Maya2016\bin\maya.exe (-exported-)
	Location: TiteratorWrapperBidir<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator= + 0x11910 bytes
	Decl: public: class TiteratorWrapperBidir<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> > & ptr64 TiteratorWrapperBidir<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> >::operator=(class TiteratorWrapperBidir<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> > const & ptr64)
(82) section:offset       Address        Frame
     0001:000149CD   0x773459CD 0x010DFF00
	Module:  C:\Windows\system32\kernel32.dll (-exported-)
	Location: BaseThreadInitThunk + 0xD bytes
	Decl: BaseThreadInitThunk
(83) section:offset       Address        Frame
     0001:0002A891   0x7757B891 0x010DFF50
	Module:  C:\Windows\SYSTEM32\ntdll.dll (-exported-)
	Location: RtlUserThreadStart + 0x21 bytes
	Decl: RtlUserThreadStart
End of stack

//crash log file name = C:\Users\ADMINI~1\AppData\Local\Temp\MayaCrashLog150530.0949.log
//version     = 16.0.1312.0
//cut            = Thu 02/26/2015, 201502261642
//current scene = unDisclosed
//command history (most recent last):
//====================================================
//last tool: renderWindowSelectContextItem
//====================================================
//panel with focus: modelPanel4
//visible panels:
// modelPanel4 
//====================================================
//Memory usage:
// 4326.875 Mb	Free Memory
// 4822.137 Mb	Free Swap
//  722.863 Mb	Current
//====================================================

Looks like the QtCore I use to compile my plugin is different with the QtCore dll maya use, right? 

 

Can anyone helps with the issue? I compile the same qt plugin for maya2011~2015 even using vs2008 and it all works well.

 

 

0 Likes
Accepted solutions (1)
2,073 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

I really hope someone could help me out this. Thanks so much.

It all works from maya2011~2015, but just not works at 2016. 

Did I compile the qt library wrong?

Thanks

0 Likes
Message 3 of 6

Anonymous
Not applicable

why do you build Qt libs yourself? You should use ones which are supplied with Maya. 

0 Likes
Message 4 of 6

Anonymous
Not applicable
Thanks for the reply again Vlad,
Did you mean writing qmake code in pro file like:
LIBS = maya's own qt dll + openMaya*
INCLUDEPATH = maya's own headers and qt headers of maya?
I just can't figure out a way to make it works when I use QtCreator as IDE.
Thanks
0 Likes
Message 5 of 6

Anonymous
Not applicable
Accepted solution

Ha! I fixed this. It made me so struggled!!

It turns out not the issue of my Qt lib for Maya 2016, it looks like a maya / qt bug?

 

I used QGraphicsProxyWidget from Qt graphic frameworks in Maya 2016, then I set a QToolButton as its widget.

So under Maya2016's default QStyle, this will crash constantly when it calles drawComplexControl() method from the Style class it uses.

If I switch Maya's UI to other QStyle, this works fine, but with maya 2016's default style, this will crash.

 

I think this is kinda a bug of Maya. Just post here to help others who be so unlucky as to meat the situation as I did 🙂

 

 

 

Message 6 of 6

asztalosdani
Participant
Participant

Thanks!

But how do you change Maya's UI to other QStyle?

0 Likes