Making sense of crash logs

866 views
Skip to first unread message

Benjam901

unread,
Jan 30, 2017, 11:57:56 AM1/30/17
to Python Programming for Autodesk Maya
Hello all,

Since making the shift to Qt.py very recently I am testing out all the tools and have gotten a fatal error crash so I thought it was about time to ask about how to read crash logs properly. I think I have an idea but some extra tips/advice would be greatly appreciated.

As far as I can see the top lines stated "Location" is the problem I should take note of, my widget is trying to resize but doesnt want to and maya dies each time.

What about the other 60 or so lines, do I read them top to bottom or bottom to top, or should I even take note of them?

- Ben

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

Exception code: C0000005: ACCESS_VIOLATION - illegal read at address 0xBC7B5F8F
Fault address:  5039B4FD in C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll
0001:0025A4FD Logical offset (see .map file for location)

Call stack:
(11) section:offset 0001:0025A4FD Address: 0x5039B4FD Frame: 0xB9FF7ED0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QHeaderView::resizeSections + 0x17D bytes
Decl: public: void QHeaderView::resizeSections(enum QHeaderView::ResizeMode)
Source:  (0)
(12) section:offset 0001:00257358 Address: 0x50398358 Frame: 0xB9FF7F00
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QHeaderView::length + 0x78 bytes
Decl: public: int QHeaderView::length(void)
Source:  (0)
(13) section:offset 0001:00277D6B Address: 0x503B8D6B Frame: 0xB9FF8120
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QTableView::updateGeometries + 0x63B bytes
Decl: protected: virtual void QTableView::updateGeometries(void)
Source:  (0)
(14) section:offset 0001:0025F784 Address: 0x98540784 Frame: 0xB9FF8160
Module:  C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtWidgets.pyd (-exported-)
Source:  (0)
(15) section:offset 0001:00244E07 Address: 0x50385E07 Frame: 0xB9FF81C0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QAbstractItemView::qt_static_metacall + 0xB07 bytes
Decl: private: static void QAbstractItemView::qt_static_metacall(class QObject * ptr64,enum QMetaObject::Call,int,void * ptr64 * ptr64)
Source:  (0)
(16) section:offset 0001:001CA9D6 Address: 0x5085B9D6 Frame: 0xB9FF82D0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QMetaObject::activate + 0x5A6 bytes
Decl: public: static void QMetaObject::activate(class QObject * ptr64,int,int,void * ptr64 * ptr64)
Source:  (0)
(17) section:offset 0001:0025E80B Address: 0x5039F80B Frame: 0xB9FF8350
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QHeaderView::viewportEvent + 0x32B bytes
Decl: protected: virtual bool QHeaderView::viewportEvent(class QEvent * ptr64)
Source:  (0)
(18) section:offset 0001:001AC71E Address: 0x5083D71E Frame: 0xB9FF83B0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QCoreApplicationPrivate::sendThroughObjectEventFilters + 0xDE bytes
Decl: public: static bool QCoreApplicationPrivate::sendThroughObjectEventFilters(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(19) section:offset 0001:0001658E Address: 0x5015758E Frame: 0xB9FF83E0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QApplicationPrivate::notify_helper + 0xFE bytes
Decl: public: bool QApplicationPrivate::notify_helper(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(20) section:offset 0001:00015509 Address: 0x50156509 Frame: 0xB9FF8B00
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QApplication::notify + 0x1B99 bytes
Decl: public: virtual bool QApplication::notify(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(21) section:offset 0001:0000EBF2 Address: 0xAE41FBF2 Frame: 0xB9FF8BC0
Module:  C:\Program Files\Autodesk\Maya2017\bin\ExtensionLayer.dll (-exported-)
Location: TwindowManager::windowPreferencesAreEnabled + 0x262 bytes
Decl: public: bool TwindowManager::windowPreferencesAreEnabled(void)
Source:  (0)
(22) section:offset 0001:001AAA37 Address: 0x5083BA37 Frame: 0xB9FF8C20
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QCoreApplication::notifyInternal2 + 0xA7 bytes
Decl: private: static bool QCoreApplication::notifyInternal2(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(23) section:offset 0001:000B9CF1 Address: 0x501FACF1 Frame: 0xB9FF8D20
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QStatusBar::trUtf8 + 0xAE1 bytes
Decl: public: static class QString QStatusBar::trUtf8(char const * ptr64,char const * ptr64,int)
Source:  (0)
(24) section:offset 0001:000AF383 Address: 0x501F0383 Frame: 0xB9FF8E60
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QHeaderView::setMovable + 0x153 bytes
Decl: public: void QHeaderView::setMovable(bool)
Source:  (0)
(25) section:offset 0001:000ABBDF Address: 0x501ECBDF Frame: 0xB9FF9020
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QHeaderView::logicalIndexAt + 0x208F bytes
Decl: public: int QHeaderView::logicalIndexAt(int,int)
Source:  (0)
(26) section:offset 0001:0005120F Address: 0x5019220F Frame: 0xB9FF9090
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::setStyle_helper + 0x11F bytes
Decl: public: void QWidgetPrivate::setStyle_helper(class QStyle * ptr64,bool,bool)
Source:  (0)
(27) section:offset 0001:000430A1 Address: 0x501840A1 Frame: 0xB9FF90D0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::inheritStyle + 0x201 bytes
Decl: public: void QWidgetPrivate::inheritStyle(void)
Source:  (0)
(28) section:offset 0001:000512CB Address: 0x501922CB Frame: 0xB9FF9140
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::setStyle_helper + 0x1DB bytes
Decl: public: void QWidgetPrivate::setStyle_helper(class QStyle * ptr64,bool,bool)
Source:  (0)
(29) section:offset 0001:000430A1 Address: 0x501840A1 Frame: 0xB9FF9180
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::inheritStyle + 0x201 bytes
Decl: public: void QWidgetPrivate::inheritStyle(void)
Source:  (0)
(30) section:offset 0001:000512CB Address: 0x501922CB Frame: 0xB9FF91F0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::setStyle_helper + 0x1DB bytes
Decl: public: void QWidgetPrivate::setStyle_helper(class QStyle * ptr64,bool,bool)
Source:  (0)
(31) section:offset 0001:000430A1 Address: 0x501840A1 Frame: 0xB9FF9230
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::inheritStyle + 0x201 bytes
Decl: public: void QWidgetPrivate::inheritStyle(void)
Source:  (0)
(32) section:offset 0001:000512CB Address: 0x501922CB Frame: 0xB9FF92A0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::setStyle_helper + 0x1DB bytes
Decl: public: void QWidgetPrivate::setStyle_helper(class QStyle * ptr64,bool,bool)
Source:  (0)
(33) section:offset 0001:000430A1 Address: 0x501840A1 Frame: 0xB9FF92E0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::inheritStyle + 0x201 bytes
Decl: public: void QWidgetPrivate::inheritStyle(void)
Source:  (0)
(34) section:offset 0001:000512CB Address: 0x501922CB Frame: 0xB9FF9350
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::setStyle_helper + 0x1DB bytes
Decl: public: void QWidgetPrivate::setStyle_helper(class QStyle * ptr64,bool,bool)
Source:  (0)
(35) section:offset 0001:000430A1 Address: 0x501840A1 Frame: 0xB9FF9390
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidgetPrivate::inheritStyle + 0x201 bytes
Decl: public: void QWidgetPrivate::inheritStyle(void)
Source:  (0)
(36) section:offset 0001:000503D4 Address: 0x501913D4 Frame: 0xB9FF9440
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidget::setParent + 0x644 bytes
Decl: public: void QWidget::setParent(class QWidget * ptr64,class QFlags<enum Qt::WindowType>)
Source:  (0)
(37) section:offset 0001:0004FD85 Address: 0x50190D85 Frame: 0xB9FF9470
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidget::setParent + 0x35 bytes
Decl: public: void QWidget::setParent(class QWidget * ptr64)
Source:  (0)
(38) section:offset 0001:0002EE35 Address: 0x5016FE35 Frame: 0xB9FF9630
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QLayout::addChildWidget + 0xC5 bytes
Decl: protected: void QLayout::addChildWidget(class QWidget * ptr64)
Source:  (0)
(39) section:offset 0001:00157F7A Address: 0x50298F7A Frame: 0xB9FF9660
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QMainWindow::toolButtonStyleChanged + 0x930A bytes
Decl: public: void QMainWindow::toolButtonStyleChanged(enum Qt::ToolButtonStyle)
Source:  (0)
(40) section:offset 0001:001A10D0 Address: 0x984820D0 Frame: 0xB9FF96B0
Module:  C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtWidgets.pyd (-exported-)
Source:  (0)
(41) section:offset 0001:001552B7 Address: 0x77E062B7 Frame: 0xB9FF9710
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_GetFuncDesc + 0x277 bytes
Source:  (0)
(42) section:offset 0001:00152B62 Address: 0x77E03B62 Frame: 0xB9FF9820
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_EvalFrameEx + 0x2882 bytes
Source:  (0)
(43) section:offset 0001:00153F21 Address: 0x77E04F21 Frame: 0xB9FF98D0
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_EvalCodeEx + 0x981 bytes
Source:  (0)
(44) section:offset 0001:000DFB88 Address: 0x77D90B88 Frame: 0xB9FF9950
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyFunction_SetClosure + 0xBA8 bytes
Source:  (0)
(45) section:offset 0001:000AC9D6 Address: 0x77D5D9D6 Frame: 0xB9FF9980
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyObject_Call + 0x86 bytes
Source:  (0)
(46) section:offset 0001:000C1124 Address: 0x77D72124 Frame: 0xB9FF9C00
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyMethod_New + 0xB14 bytes
Source:  (0)
(47) section:offset 0001:000AC9D6 Address: 0x77D5D9D6 Frame: 0xB9FF9C30
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyObject_Call + 0x86 bytes
Source:  (0)
(48) section:offset 0001:0011983F Address: 0x77DCA83F Frame: 0xB9FF9C60
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyType_Ready + 0x535F bytes
Source:  (0)
(49) section:offset 0001:0010E3A1 Address: 0x77DBF3A1 Frame: 0xB9FF9C90
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyType_Modified + 0x12D1 bytes
Source:  (0)
(50) section:offset 0001:000AC9D6 Address: 0x77D5D9D6 Frame: 0xB9FF9CC0
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyObject_Call + 0x86 bytes
Source:  (0)
(51) section:offset 0001:001559AA Address: 0x77E069AA Frame: 0xB9FF9D10
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_GetFuncDesc + 0x96A bytes
Source:  (0)
(52) section:offset 0001:00155421 Address: 0x77E06421 Frame: 0xB9FF9D70
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_GetFuncDesc + 0x3E1 bytes
Source:  (0)
(53) section:offset 0001:00152B62 Address: 0x77E03B62 Frame: 0xB9FF9E80
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_EvalFrameEx + 0x2882 bytes
Source:  (0)
(54) section:offset 0001:00155548 Address: 0x77E06548 Frame: 0xB9FF9EF0
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_GetFuncDesc + 0x508 bytes
Source:  (0)
(55) section:offset 0001:00155414 Address: 0x77E06414 Frame: 0xB9FF9F50
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_GetFuncDesc + 0x3D4 bytes
Source:  (0)
(56) section:offset 0001:00152B62 Address: 0x77E03B62 Frame: 0xB9FFA060
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_EvalFrameEx + 0x2882 bytes
Source:  (0)
(57) section:offset 0001:00153F21 Address: 0x77E04F21 Frame: 0xB9FFA110
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_EvalCodeEx + 0x981 bytes
Source:  (0)
(58) section:offset 0001:000DFB88 Address: 0x77D90B88 Frame: 0xB9FFA190
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyFunction_SetClosure + 0xBA8 bytes
Source:  (0)
(59) section:offset 0001:000AC9D6 Address: 0x77D5D9D6 Frame: 0xB9FFA1C0
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyObject_Call + 0x86 bytes
Source:  (0)
(60) section:offset 0001:00154F8E Address: 0x77E05F8E Frame: 0xB9FFA1F0
Module:  C:\Program Files\Autodesk\Maya2017\bin\python27.dll (-exported-)
Location: PyEval_CallObjectWithKeywords + 0x15E bytes
Source:  (0)
(61) section:offset 0001:00005D3B Address: 0xBD5D6D3B Frame: 0xB9FFA270
Module:  C:\Program Files\Autodesk\Maya2017\bin\pyside2.dll (-exported-)
Location: PySide::SignalManager::callPythonMetaMethod + 0x15B bytes
Decl: public: static int PySide::SignalManager::callPythonMetaMethod(class QMetaMethod const & ptr64,void * ptr64 * ptr64,struct _object * ptr64,bool)
Source:  (0)
(62) section:offset 0001:00009CB6 Address: 0xBD5DACB6 Frame: 0xB9FFA2D0
Module:  C:\Program Files\Autodesk\Maya2017\bin\pyside2.dll (-exported-)
Location: PySide::SignalManager::retriveMetaObject + 0x3026 bytes
Decl: public: static struct QMetaObject const * ptr64 PySide::SignalManager::retriveMetaObject(struct _object * ptr64)
Source:  (0)
(63) section:offset 0001:001CAA2F Address: 0x5085BA2F Frame: 0xB9FFA3E0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QMetaObject::activate + 0x5FF bytes
Decl: public: static void QMetaObject::activate(class QObject * ptr64,int,int,void * ptr64 * ptr64)
Source:  (0)
(64) section:offset 0001:000F3D37 Address: 0x50234D37 Frame: 0xB9FFA420
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QAbstractButton::clicked + 0x227 bytes
Decl: public: void QAbstractButton::clicked(bool)
Source:  (0)
(65) section:offset 0001:000F3AD0 Address: 0x50234AD0 Frame: 0xB9FFA460
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QAbstractButton::click + 0x180 bytes
Decl: public: void QAbstractButton::click(void)
Source:  (0)
(66) section:offset 0001:000F4918 Address: 0x50235918 Frame: 0xB9FFA490
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QAbstractButton::mouseReleaseEvent + 0x88 bytes
Decl: protected: virtual void QAbstractButton::mouseReleaseEvent(class QMouseEvent * ptr64)
Source:  (0)
(67) section:offset 0001:0000415F Address: 0x982E515F Frame: 0xB9FFA4E0
Module:  C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtWidgets.pyd (-exported-)
Source:  (0)
(68) section:offset 0001:00040282 Address: 0x50181282 Frame: 0xB9FFA6B0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QWidget::event + 0xE2 bytes
Decl: protected: virtual bool QWidget::event(class QEvent * ptr64)
Source:  (0)
(69) section:offset 0001:001E3B82 Address: 0x984C4B82 Frame: 0xB9FFA710
Module:  C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtWidgets.pyd (-exported-)
Source:  (0)
(70) section:offset 0001:000165A2 Address: 0x501575A2 Frame: 0xB9FFA740
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QApplicationPrivate::notify_helper + 0x112 bytes
Decl: public: bool QApplicationPrivate::notify_helper(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(71) section:offset 0001:0001420E Address: 0x5015520E Frame: 0xB9FFAE60
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QApplication::notify + 0x89E bytes
Decl: public: virtual bool QApplication::notify(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(72) section:offset 0001:0000EBF2 Address: 0xAE41FBF2 Frame: 0xB9FFAF20
Module:  C:\Program Files\Autodesk\Maya2017\bin\ExtensionLayer.dll (-exported-)
Location: TwindowManager::windowPreferencesAreEnabled + 0x262 bytes
Decl: public: bool TwindowManager::windowPreferencesAreEnabled(void)
Source:  (0)
(73) section:offset 0001:001AAA37 Address: 0x5083BA37 Frame: 0xB9FFAF80
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QCoreApplication::notifyInternal2 + 0xA7 bytes
Decl: private: static bool QCoreApplication::notifyInternal2(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(74) section:offset 0001:00017982 Address: 0x50158982 Frame: 0xB9FFB090
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QApplicationPrivate::sendMouseEvent + 0x372 bytes
Decl: public: static bool QApplicationPrivate::sendMouseEvent(class QWidget * ptr64,class QMouseEvent * ptr64,class QWidget * ptr64,class QWidget * ptr64,class QWidget * ptr64 * ptr64,class QPointer<class QWidget> & ptr64,bool)
Source:  (0)
(75) section:offset 0001:00069124 Address: 0x501AA124 Frame: 0xB9FFB220
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QSizePolicy::QSizePolicy + 0x2A64 bytes
Decl: public: QSizePolicy::QSizePolicy(void)
Source:  (0)
(76) section:offset 0001:00067124 Address: 0x501A8124 Frame: 0xB9FFB290
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QSizePolicy::QSizePolicy + 0xA64 bytes
Decl: public: QSizePolicy::QSizePolicy(void)
Source:  (0)
(77) section:offset 0001:000165A2 Address: 0x501575A2 Frame: 0xB9FFB2C0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QApplicationPrivate::notify_helper + 0x112 bytes
Decl: public: bool QApplicationPrivate::notify_helper(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(78) section:offset 0001:00015509 Address: 0x50156509 Frame: 0xB9FFB9E0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Widgets.dll (-exported-)
Location: QApplication::notify + 0x1B99 bytes
Decl: public: virtual bool QApplication::notify(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(79) section:offset 0001:0000EBF2 Address: 0xAE41FBF2 Frame: 0xB9FFBAA0
Module:  C:\Program Files\Autodesk\Maya2017\bin\ExtensionLayer.dll (-exported-)
Location: TwindowManager::windowPreferencesAreEnabled + 0x262 bytes
Decl: public: bool TwindowManager::windowPreferencesAreEnabled(void)
Source:  (0)
(80) section:offset 0001:001AAA37 Address: 0x5083BA37 Frame: 0xB9FFBB00
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QCoreApplication::notifyInternal2 + 0xA7 bytes
Decl: private: static bool QCoreApplication::notifyInternal2(class QObject * ptr64,class QEvent * ptr64)
Source:  (0)
(81) section:offset 0001:00030376 Address: 0xAA381376 Frame: 0xB9FFBF90
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Gui.dll (-exported-)
Location: QGuiApplicationPrivate::processMouseEvent + 0x766 bytes
Decl: public: static void QGuiApplicationPrivate::processMouseEvent(class QWindowSystemInterfacePrivate::MouseEvent * ptr64)
Source:  (0)
(82) section:offset 0001:00032960 Address: 0xAA383960 Frame: 0xB9FFBFE0
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Gui.dll (-exported-)
Location: QGuiApplicationPrivate::processWindowSystemEvent + 0x130 bytes
Decl: public: static void QGuiApplicationPrivate::processWindowSystemEvent(class QWindowSystemInterfacePrivate::WindowSystemEvent * ptr64)
Source:  (0)
(83) section:offset 0001:00016B0C Address: 0xAA367B0C Frame: 0xB9FFC020
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Gui.dll (-exported-)
Location: QWindowSystemInterface::sendWindowSystemEvents + 0x13C bytes
Decl: public: static bool QWindowSystemInterface::sendWindowSystemEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)
Source:  (0)
(84) section:offset 0001:001F13AB Address: 0x508823AB Frame: 0xB9FFC110
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QEventDispatcherWin32::processEvents + 0xE1B bytes
Decl: public: virtual bool QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)
Source:  (0)
(85) section:offset 0001:00010C24 Address: 0xE3251C24 Frame: 0xB9FFC270
Module:  C:\WINDOWS\System32\USER32.dll (-exported-)
Location: CallWindowProcW + 0x4F4 bytes
Source:  (0)
(86) section:offset 0001:0001056C Address: 0xE325156C Frame: 0xB9FFC2F0
Module:  C:\WINDOWS\System32\USER32.dll (-exported-)
Location: DispatchMessageW + 0x1BC bytes
Source:  (0)
(87) section:offset 0001:001F0B16 Address: 0x50881B16 Frame: 0xB9FFF650
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QEventDispatcherWin32::processEvents + 0x586 bytes
Decl: public: virtual bool QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)
Source:  (0)
(88) section:offset 0001:00058439 Address: 0x9A359439 Frame: 0xB9FFF680
Module:  C:\Program Files\Autodesk\Maya2017\qt-plugins\platforms\qwindows.dll (-exported-)
Location: qt_plugin_query_metadata + 0x24D9 bytes
Source:  (0)
(89) section:offset 0001:001A7831 Address: 0x50838831 Frame: 0xB9FFF700
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QEventLoop::exec + 0x1B1 bytes
Decl: public: int QEventLoop::exec(class QFlags<enum QEventLoop::ProcessEventsFlag>)
Source:  (0)
(90) section:offset 0001:001A982D Address: 0x5083A82D Frame: 0xB9FFF770
Module:  C:\Program Files\Autodesk\Maya2017\bin\Qt5Core.dll (-exported-)
Location: QCoreApplication::exec + 0x14D bytes
Decl: public: static int QCoreApplication::exec(void)
Source:  (0)
(91) section:offset 0001:0000995A Address: 0xAE41A95A Frame: 0xB9FFF870
Module:  C:\Program Files\Autodesk\Maya2017\bin\ExtensionLayer.dll (-exported-)
Location: Tapplication::start + 0xBA bytes
Decl: public: void Tapplication::start(void)
Source:  (0)
(92) section:offset 0001:000021F3 Address: 0x783B31F3 Frame: 0xB9FFFAA0
Module:  C:\Program Files\Autodesk\Maya2017\bin\maya.exe (-exported-)
Source:  (0)
(93) section:offset 0001:000249D5 Address: 0x783D59D5 Frame: 0xB9FFFB30
Module:  C:\Program Files\Autodesk\Maya2017\bin\maya.exe (-exported-)
Location: TiteratorWrapperBidir<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator= + 0x14595 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)
Source:  (0)
(94) section:offset 0001:00021CF8 Address: 0x783D2CF8 Frame: 0xB9FFFB70
Module:  C:\Program Files\Autodesk\Maya2017\bin\maya.exe (-exported-)
Location: TiteratorWrapperBidir<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator= + 0x118B8 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)
Source:  (0)
(95) section:offset 0001:00007364 Address: 0xE30F8364 Frame: 0xB9FFFBA0
Module:  C:\WINDOWS\System32\KERNEL32.DLL (-exported-)
Location: BaseThreadInitThunk + 0x14 bytes
Source:  (0)
(96) section:offset 0001:000660D1 Address: 0xE56D70D1 Frame: 0xB9FFFBF0
Module:  C:\WINDOWS\SYSTEM32\ntdll.dll (-exported-)
Location: RtlUserThreadStart + 0x21 bytes
Source:  (0)
End of stack

//crash log file name = C:\Users\BEN~1.HEA\AppData\Local\Temp\MayaCrashLog170130.1749.log
//version     = 17.0.1720.0
//cut            = Wed 06/15/2016, 201606150351
//current scene = unDisclosed
//command history (most recent last):
//====================================================
//last tool: renderWindowSelectContextItem
//====================================================
//panel with focus: modelPanel4
//visible panels:
// scriptEditorPanel1 modelPanel4 outlinerPanel1 
//====================================================
//Memory usage:
// 8953.172 Mb Free Memory
// 9089.410 Mb Free Swap
//  835.164 Mb Current

//====================================================



Justin Israel

unread,
Jan 30, 2017, 2:16:23 PM1/30/17
to python_in...@googlegroups.com
Hi,

The top stack, #11, would be where the crash actually happened, and is telling you that a bad pointer was accessed. In Qt, it won't necessarily be user code at that point since there are lots of events, signal/slots, and private Qt code reacting to user interactions. So what you have to do is find the spot in the stack that is relevant to you. 

Again, because Maya is a Qt application and all of these crashes you are seeing will happen somewhere in the Qt event loop, a bunch of stack frames from the bottom up are just Maya starting and entering the event loop. What you can do is start at the bottom and scan up until you reach something in user code. At frame #65 I see a button click. From there, I gather there is a slot called, which is a python function. There is a bunch of opaque looking stack frames that show it going through Python to call the function. Then at frame #39 it goes back into C++ again and starts creating or modifying the layout of a widget (QTableView?) and crashes while updating the layout of the QHeaderView.

So some questions about what your code is doing.... 

Is it just creating a new widget when you click a button?  
Is the code doing anything more in-depth like trying to access or modify the builtin Maya UI?
Do you have any python slots in this mix that are closures or temporary/anonymous functions like lambda/functools.partial?
Do you have any custom code attached to the behaviour of the resizing of the widget or the QHeaderView?

Basically what you want to look for here is your own custom code surrounding the nature of the crash. I've found that aren't connected to either free functions, or long lived methods can cause instability between the different python Qt bindings. PySide has always been a bit touchy with its memory management of C++ objects in combination with the Python wrappers. Sometimes the underlying C++ memory will get killed while you still have references to the Python wrapper, depending on what you are doing with those references. An example I have seen in the past (not related specifically here, but a related pattern):

    self.someModel.selectionModel().selectionChanged.connect(...)

In this example one is trying to set up a signal/slot connection on a selection model. But its using a temporary Python reference to it, and I have seen this cause a crash in PySide 1.x. The fix was to keep a reference to the selection model:

self._selModel = self.someModel.selectionModel()
self._selModel.selectionChanged.connect(...)

So this is just an example of how temporary Python objects can cause crashes in PySide. 

Justin

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/a8e59263-50fa-47f7-9a94-43116460936d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ben Hearn

unread,
Jan 31, 2017, 5:07:09 AM1/31/17
to python_in...@googlegroups.com
Hello Justin,

Thanks for the feedback on how log files work, I am switching over from PyQt4 to Qt.py. Somewhere in there I think a callback is not beling liked by either Qt5 or the wrapping of Qt.py.

When you click the button at the top of the toolbar a QMainWindow window with QTableWidgets inside hosting information on your maya scene is supposed to show up. The setup is the same as with many other tools in the toolchain and none of them seem to be causing crashes.

I am looking into your suggestion about python references to objects. I think I may have found the problem. I only have 3 columns available in my collision table object, it seems to no longer appreciate this at all, last PyQt/PySide just skipped it I believe.

self.collisionTable.horizontalHeader().setSectionResizeMode(3, QtWidgets.QHeaderView.Stretch)

It seems to be working now, I will post more info if this develops further

- Ben

To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/ZedCEdhcnRM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2ei39gLjMkA48%3DPCHr8B0eg99yzdGjTNY5p0Am0O7EKA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--

Tel - +46 76245 92 90 (Sweden)

Marcus Ottosson

unread,
Jan 31, 2017, 10:25:25 AM1/31/17
to python_in...@googlegroups.com
Might not be it, but `setSectionResizeMode` differs across Qt 4 and 5 and has a dedicated wrapper you can use.


To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAM2ybkU_%2BdB3KgvScmR8NZsn5_BiPYBaU1Q9jtNgJ07c9yEakA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Jun Saito

unread,
Jun 28, 2017, 10:39:06 PM6/28/17
to python_in...@googlegroups.com, Justin Israel
Hi Justin,

> Do you have any python slots in this mix that are closures or temporary/anonymous functions like lambda/functools.partial?

Can you share some of your knowledge / experience on this?
We are experiencing crashes similar to what Ben reports, after we
started to make a shift to Qt.py just like Ben.
I am guessing this is from some unexpected Python object release, and
one of the suspect is the use of partial in Python slots.

Sorry to resume an old thread, and I appreciate your help.

Best,

Jun
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2ei39gLjMkA48%3DPCHr8B0eg99yzdGjTNY5p0Am0O7EKA%40mail.gmail.com.

Justin Israel

unread,
Jun 28, 2017, 10:46:20 PM6/28/17
to Jun Saito, python_in...@googlegroups.com
On Thu, Jun 29, 2017 at 2:21 PM Jun Saito <duke...@gmail.com> wrote:
Hi Justin,

> Do you have any python slots in this mix that are closures or temporary/anonymous functions like lambda/functools.partial?

Can you share some of your knowledge / experience on this?
We are experiencing crashes similar to what Ben reports, after we
started to make a shift to Qt.py just like Ben.
I am guessing this is from some unexpected Python object release, and
one of the suspect is the use of partial in Python slots.

I've seen issues in the past in PySide when doing something like the following:

# Using an anonymous function as a slot instead of a free function or method of a long lived object
myObject.signal.connect(partial(myFunc, "xyz"))

# Making a connection to a temporary return value of a child object.
# Usually you need to keep a reference of this child object around
myObject.getChildObject().signal.connect(mySlot)

as opposed to:

myObject._childObject = myObject.getChildObject()
myObject._childObject.signal.connect(mySlot)

Marcus Ottosson

unread,
Jun 29, 2017, 2:08:38 AM6/29/17
to python_in...@googlegroups.com, Jun Saito

I get this in PySide2 as well sometimes.

from PySide2 import QtWidgets
any_widget = QtWidgets.qApp.topLevelWidgets()[0]
any_widget.parent() # Ok
any_widget.parent() # Already deleted

any_widget = QtWidgets.qApp.topLevelWidgets()[0]
any_widget.parent().parent()  # Ok
any_widget.parent()  # Already deleted

We are experiencing crashes similar to what Ben reports, after we started to make a shift to Qt.py just like Ben.

If you happen to catch at which statement this happens, I can see if I can protect against this in Qt.py, though odds are it runs deeper than that.

Jun Saito

unread,
Jun 29, 2017, 5:36:27 PM6/29/17
to Marcus Ottosson, Justin Israel, python_in...@googlegroups.com
Thanks Justin and Marcus,
Makes me feel like staying away from using PySide... Seems like there
are too many surprise factors.

Michael Boon

unread,
Jun 29, 2017, 7:21:50 PM6/29/17
to Python Programming for Autodesk Maya, konstr...@gmail.com, justin...@gmail.com
That's a shame. I like PySide a lot. I found it creates more readable code than PyQt. This move to PySide2 is certainly creating lots of headaches though, even after Marcus' excellent work in the Qt module.

On that subject, if you're using Maya 2017, get update 4. There are lots of fixes for PySide2 crashes in there.
Reply all
Reply to author
Forward
0 new messages