<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi, all<div class=""><br class=""></div><div class="">I don’t know if this is a PyQt or Qt thing, but I am having recurrent crashes (iMac, Mac OS 10.11.6, Qt 5.5, PyQt 5.5, Python 3.5.0) when I try to set the date in a QDateEdit from a string. The following code causes the crash:</div><div class=""><br class=""></div><div class=""> date = '2016-09-06'</div><div class=""> datetime = QDateTime.fromString(date, 'yyyy-MM-dd')</div><div class=""> self.dateEdit.setDateTime(datetime) </div><div class=""><br class=""></div><div class="">This first happened in a large project, but since I’ve created a minimal app that has only the QDateEdit and a Pushbutton which executes the above. If I run either in Python or Eric, everything works just fine. If I deploy it with PyQt 1.2, it crashes when the button is released:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">Process: dateTimeTester [2127]</div></div><div class=""><div class="">Path: /Users/USER/*/dateTimeTester.app/Contents/MacOS/dateTimeTester</div></div><div class=""><div class="">Identifier: com.UNTProject.dateTimeTester</div></div><div class=""><div class="">Version: ???</div></div><div class=""><div class="">Code Type: X86-64 (Native)</div></div><div class=""><div class="">Parent Process: Python [1833]</div></div><div class=""><div class="">Responsible: Terminal [1424]</div></div><div class=""><div class="">User ID: 501</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class="">Date/Time: 2016-09-06 12:00:53.495 -0600</div></div><div class=""><div class="">OS Version: Mac OS X 10.11.6 (15G31)</div></div><div class=""><div class="">Report Version: 11</div></div><div class=""><div class="">Anonymous UUID: 65905752-3EB2-4FED-0003-5A976D2F2D1E</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class="">Sleep/Wake UUID: C47B81D7-ABCA-4184-8B63-8B22CEA91CA7</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class="">Time Awake Since Boot: 14000 seconds</div></div><div class=""><div class="">Time Since Wake: 6600 seconds</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class="">System Integrity Protection: enabled</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class="">Crashed Thread: 0 Dispatch queue: com.apple.main-thread</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class="">Exception Type: EXC_BAD_ACCESS (SIGSEGV)</div></div><div class=""><div class="">Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class="">VM Regions Near 0x8:</div></div><div class=""><div class="">--> </div></div><div class=""><div class=""> __TEXT 0000000106589000-000000010861d000 [ 32.6M] r-x/rwx SM=COW /Users/USER/*/dateTimeTester.app/Contents/MacOS/dateTimeTester</div></div></blockquote><div class=""><div class=""><br class=""></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">Thread 0 Crashed:: Dispatch queue: com.apple.main-thread</div></div><div class=""><div class="">0 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001067658a2 convertTo_QDateTime(_object*, void**, int*, _object*) + 66</div></div><div class=""><div class="">1 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010660ee99 parsePass1 + 6985</div></div><div class=""><div class="">2 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010660d27c parseKwdArgs + 284</div></div><div class=""><div class="">3 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106607ae7 sip_api_parse_args + 151</div></div><div class=""><div class="">4 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001068a8752 meth_QDateTimeEdit_setDateTime(_object*, _object*) + 130</div></div><div class=""><div class="">5 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106abfa0c PyCFunction_Call + 220</div></div><div class=""><div class="">6 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106b4492d PyEval_EvalFrameEx + 23805</div></div><div class=""><div class="">7 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106b48ddb _PyEval_EvalCodeWithName + 3227</div></div><div class=""><div class="">8 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106b3ec0e PyEval_EvalCodeEx + 78</div></div><div class=""><div class="">9 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106aa47d0 function_call + 384</div></div><div class=""><div class="">10 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106a86d81 PyObject_Call + 97</div></div><div class=""><div class="">11 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106a9168d method_call + 141</div></div><div class=""><div class="">12 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106a86d81 PyObject_Call + 97</div></div><div class=""><div class="">13 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106b48115 PyEval_CallObjectWithKeywords + 165</div></div><div class=""><div class="">14 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106842da8 PyQtSlot::call(_object*, _object*) const + 40</div></div><div class=""><div class="">15 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106842ca5 PyQtSlot::invoke(void**, _object*, void*, bool) const + 309</div></div><div class=""><div class="">16 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106842d4c PyQtSlot::invoke(void**, _object*, void*) const + 12</div></div><div class=""><div class="">17 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001068458d3 qt_metacall_worker(_sipSimpleWrapper*, _typeobject*, _sipTypeDef*, QMetaObject::Call, int, void**) + 643</div></div><div class=""><div class="">18 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106845622 qpycore_qobject_qt_metacall(_sipSimpleWrapper*, _sipTypeDef*, QMetaObject::Call, int, void**) + 66</div></div><div class=""><div class="">19 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000107ba96e5 QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) + 165 (qmetaobject.cpp:296)</div></div><div class=""><div class="">20 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000107bed267 QMetaObject::activate(QObject*, int, int, void**) + 3303 (qobject.cpp:3728)</div></div><div class=""><div class="">21 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000107bec56d QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 61 (qobject.cpp:3579)</div></div><div class=""><div class="">22 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001071965e5 QAbstractButton::released() + 37 (moc_qabstractbutton.cpp:297)</div></div><div class=""><div class="">23 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106df6d73 QAbstractButtonPrivate::emitReleased() + 51 (qabstractbutton.cpp:562)</div></div><div class=""><div class="">24 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106df6d01 QAbstractButtonPrivate::click() + 369 (qabstractbutton.cpp:525)</div></div><div class=""><div class="">25 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106df8047 QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 231 (qabstractbutton.cpp:1133)</div></div><div class=""><div class="">26 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001069c1fae sipQPushButton::mouseReleaseEvent(QMouseEvent*) + 126</div></div><div class=""><div class="">27 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106d1d41f QWidget::event(QEvent*) + 751 (qwidget.cpp:8707)</div></div><div class=""><div class="">28 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106df7e5e QAbstractButton::event(QEvent*) + 446 (qabstractbutton.cpp:1089)</div></div><div class=""><div class="">29 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106ec38da QPushButton::event(QEvent*) + 266 (qpushbutton.cpp:673)</div></div><div class=""><div class="">30 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001069c24f4 sipQPushButton::event(QEvent*) + 116</div></div><div class=""><div class="">31 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106cc4e7c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 396 (qapplication.cpp:3718)</div></div><div class=""><div class="">32 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106cc78b2 QApplication::notify(QObject*, QEvent*) + 4642 (qapplication.cpp:3278)</div></div><div class=""><div class="">33 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010687a7ef sipQApplication::notify(QObject*, QEvent*) + 127</div></div><div class=""><div class="">34 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000107b9e866 QCoreApplication::notifyInternal(QObject*, QEvent*) + 198 (qcoreapplication.cpp:965)</div></div><div class=""><div class="">35 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106ccdecf QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) + 95 (qcoreapplication.h:227)</div></div><div class=""><div class="">36 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106cc5dc3 QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 1107 (qapplication.cpp:2772)</div></div><div class=""><div class="">37 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106d4749f QWidgetWindow::handleMouseEvent(QMouseEvent*) + 3519 (qwidgetwindow.cpp:554)</div></div><div class=""><div class="">38 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106d45f21 QWidgetWindow::event(QEvent*) + 929 (qwidgetwindow.cpp:211)</div></div><div class=""><div class="">39 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106cc4e7c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 396 (qapplication.cpp:3718)</div></div><div class=""><div class="">40 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106cc6d40 QApplication::notify(QObject*, QEvent*) + 1712 (qapplication.cpp:3162)</div></div><div class=""><div class="">41 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010687a7ef sipQApplication::notify(QObject*, QEvent*) + 127</div></div><div class=""><div class="">42 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000107b9e866 QCoreApplication::notifyInternal(QObject*, QEvent*) + 198 (qcoreapplication.cpp:965)</div></div><div class=""><div class="">43 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106ccdecf QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) + 95 (qcoreapplication.h:227)</div></div><div class=""><div class="">44 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001073c8df6 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 1990 (qguiapplication.cpp:1792)</div></div><div class=""><div class="">45 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001073c8301 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 225 (qguiapplication.cpp:1584)</div></div><div class=""><div class="">46 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001073b323d QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 141 (qwindowsysteminterface.cpp:626)</div></div><div class=""><div class="">47 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106bf5f77 QCocoaEventDispatcherPrivate::processPostedEvents() + 327 (qcocoaeventdispatcher.mm:886)</div></div><div class=""><div class="">48 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106bf6a58 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 88 (qcocoaeventdispatcher.mm:923)</div></div><div class=""><div class="">49 com.apple.CoreFoundation <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff96e68881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17</div></div><div class=""><div class="">50 com.apple.CoreFoundation <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff96e47fbc __CFRunLoopDoSources0 + 556</div></div><div class=""><div class="">51 com.apple.CoreFoundation <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff96e474df __CFRunLoopRun + 927</div></div><div class=""><div class="">52 com.apple.CoreFoundation <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff96e46ed8 CFRunLoopRunSpecific + 296</div></div><div class=""><div class="">53 com.apple.HIToolbox <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff97a17935 RunCurrentEventLoopInMode + 235</div></div><div class=""><div class="">54 com.apple.HIToolbox <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff97a17677 ReceiveNextEventCommon + 184</div></div><div class=""><div class="">55 com.apple.HIToolbox <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff97a175af _BlockUntilNextEventMatchingListInModeWithFilter + 71</div></div><div class=""><div class="">56 com.apple.AppKit <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff9150fdf6 _DPSNextEvent + 1067</div></div><div class=""><div class="">57 com.apple.AppKit <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff9150f226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454</div></div><div class=""><div class="">58 com.apple.AppKit <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff91503d80 -[NSApplication run] + 682</div></div><div class=""><div class="">59 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106bf4dc7 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1159 (qcocoaeventdispatcher.mm:418)</div></div><div class=""><div class="">60 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000107b9a25a QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 122 (qeventloop.cpp:128)</div></div><div class=""><div class="">61 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000107b9a476 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 518 (qeventloop.cpp:204)</div></div><div class=""><div class="">62 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000107b9f034 QCoreApplication::exec() + 388 (qcoreapplication.cpp:1229)</div></div><div class=""><div class="">63 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001073c7f86 QGuiApplication::exec() + 22 (qguiapplication.cpp:1529)</div></div><div class=""><div class="">64 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106cc6549 QApplication::exec() + 9 (qapplication.cpp:2978)</div></div><div class=""><div class="">65 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010687b3f0 meth_QApplication_exec_(_object*, _object*) + 80</div></div><div class=""><div class="">66 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106abfa0c PyCFunction_Call + 220</div></div><div class=""><div class="">67 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106b4492d PyEval_EvalFrameEx + 23805</div></div><div class=""><div class="">68 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106b48ddb _PyEval_EvalCodeWithName + 3227</div></div><div class=""><div class="">69 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106b3ebb1 PyEval_EvalCode + 81</div></div><div class=""><div class="">70 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106b6184e PyImport_ImportFrozenModuleObject + 526</div></div><div class=""><div class="">71 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000106b61942 PyImport_ImportFrozenModule + 34</div></div><div class=""><div class="">72 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010658f18e pyqtdeploy_start(int, char**, _inittab*, char const*, char const*, char const**) + 1374 (pyqtdeploy_start.cpp:268)</div></div><div class=""><div class="">73 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010658ec1d main + 61 (pyqtdeploy_main.cpp:113)</div></div><div class=""><div class="">74 com.UNTProject.dateTimeTester <span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010658ebd4 start + 52</div></div></blockquote><div class=""><br class=""></div><div class="">I’ve searched for other reports of this, but haven’t had any luck. I can supply the minimal app if that will help.</div><div class=""><br class=""></div><div class="">cheers,</div><div class=""><br class=""></div><div class="">David</div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>