<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">Now that QGIS3 is well underway I’ve been looking at getting some Python3 code working with QGIS as standalone and plugins apps.  But I have two - possibly related persistent problems with QGIS3 and this list was suggested as a good place to ask advice.</div><div class=""><br class=""></div><div class="">I’m running 3.4 (just upgraded yesterday) on Mac OSX 10.13.6</div><div class=""><br class=""></div><div class="">I can work in QGIS and have been using it for ongoing work - so everything seems good until I get to quitting.  Shortly after I’ve closed QGIS I get crash report (parts included below).  Its a bit unclear exactly what is causing the crash - and its been happening since I went to QGIS3.  I should (admit) that I was also running the beta and building that so there is a possibility that I have some left over side effects of that I have not been able to clean up.  I have taken out everything I can track down on that and some other dev things (not QGIS) I was doing a year or longer ago.</div><div class=""><br class=""></div><div class="">The other crash that may be related and seems to give more info is when I run the basic standalone app example from the PyQGIS book.  The <font face="NimbusMonL" class="">qgs = QgsApplication([], False) </font>crashes with an abort trap 6 and the message: qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in “"</div><div class=""><br class=""></div><div class="">This looks a lot like a missing path problem, but I have been unable to resolve where it is missing.  As far as I can see the qt and cocoa support libraries are in the GIS3 app contents subdirectories, so I’m at a loss as to what is really missing.</div><div class=""><br class=""></div><div class="">Any suggestions for where to go would be appreciated.</div><br class=""><br class=""><div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">John Harrop</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">Senior Project Geologist</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">CMG</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""></div></div><div class="">Here is a part of the crash report after closing the QGIS app.  QT seems to be involved in this too - although the details are less clear to me.  So I’m hoping that solving one problem will clear both.:</div><div class=""><br class=""></div><div class="">Exception Type:        EXC_BAD_ACCESS (SIGSEGV)<br class="">Exception Codes:       EXC_I386_GPFLT<br class="">Exception Note:        EXC_CORPSE_NOTIFY<br class=""><br class="">Termination Signal:    Segmentation fault: 11<br class="">Termination Reason:    Namespace SIGNAL, Code 0xb<br class="">Terminating Process:   exc handler [0]<br class=""><br class="">Thread 0 Crashed:: Dispatch queue: com.apple.main-thread<br class="">0   org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">      </span>0x000000011524fd6e QWidget::mapTo(QWidget const*, QPoint const&) const + 46<br class="">1   org.qgis.qgis3_gui            <span class="Apple-tab-span" style="white-space:pre">   </span>0x0000000110221bef QgsFloatingWidget::onAnchorPointChanged() + 375<br class="">2   org.qt-project.QtCore         <span class="Apple-tab-span" style="white-space:pre">     </span>0x0000000118e7053b QMetaObject::activate(QObject*, int, int, void**) + 2347<br class="">3   org.qgis.qgis3_gui            <span class="Apple-tab-span" style="white-space:pre">       </span>0x0000000110222027 QgsFloatingWidgetEventFilter::eventFilter(QObject*, QEvent*) + 21<br class="">4   org.qt-project.QtCore         <span class="Apple-tab-span" style="white-space:pre">   </span>0x0000000118e3f832 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 210<br class="">5   org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">       </span>0x000000011522befd QApplicationPrivate::notify_helper(QObject*, QEvent*) + 285<br class="">6   org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">   </span>0x000000011522d2ed QApplication::notify(QObject*, QEvent*) + 573<br class="">7   org.qgis.qgis3_core           <span class="Apple-tab-span" style="white-space:pre">  </span>0x000000011127cb21 QgsApplication::notify(QObject*, QEvent*) + 93<br class="">8   org.qt-project.QtCore         <span class="Apple-tab-span" style="white-space:pre">      </span>0x0000000118e3f54f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159<br class="">9   org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">    </span>0x0000000115286ec7 0x11521c000 + 437959<br class="">10  org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">  </span>0x000000011528512d 0x11521c000 + 430381<br class="">11  org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">  </span>0x000000011522bf12 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 306<br class="">12  org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">   </span>0x000000011522d2ed QApplication::notify(QObject*, QEvent*) + 573<br class="">13  org.qgis.qgis3_core           <span class="Apple-tab-span" style="white-space:pre">  </span>0x000000011127cb21 QgsApplication::notify(QObject*, QEvent*) + 93<br class="">14  org.qt-project.QtCore         <span class="Apple-tab-span" style="white-space:pre">      </span>0x0000000118e3f54f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159<br class="">15  org.qt-project.QtGui          <span class="Apple-tab-span" style="white-space:pre">  </span>0x000000011862a1cd QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePrivate::GeometryChangeEvent*) + 381<br class="">16  org.qt-project.QtGui          <span class="Apple-tab-span" style="white-space:pre">       </span>0x000000011860f9b4 QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 404<br class="">17  org.qt-project.QtGui          <span class="Apple-tab-span" style="white-space:pre">   </span>0x000000011860b320 QWindowSystemInterface::flushWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 576<br class="">18  libqcocoa.dylib               <span class="Apple-tab-span" style="white-space:pre">   </span>0x000000011b493a65 0x11b480000 + 80485<br class="">19  org.qt-project.QtCore         <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000118e496dc QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const + 1308<br class="">20  libqcocoa.dylib               <span class="Apple-tab-span" style="white-space:pre">      </span>0x000000011b49a06d 0x11b480000 + 106605<br class="">21  com.apple.Foundation          <span class="Apple-tab-span" style="white-space:pre">        </span>0x00007fff3097c640 -[__NSObserver _doit:] + 303<br class="">22  com.apple.CoreFoundation      <span class="Apple-tab-span" style="white-space:pre">  </span>0x00007fff2e86eedc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12<br class="">23  com.apple.CoreFoundation      <span class="Apple-tab-span" style="white-space:pre">   </span>0x00007fff2e86edaa _CFXRegistrationPost + 458<br class="">24  com.apple.CoreFoundation      <span class="Apple-tab-span" style="white-space:pre">    </span>0x00007fff2e86eae1 ___CFXNotificationPost_block_invoke + 225<br class="">25  com.apple.CoreFoundation      <span class="Apple-tab-span" style="white-space:pre">     </span>0x00007fff2e82c880 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1664<br class="">26  com.apple.CoreFoundation      <span class="Apple-tab-span" style="white-space:pre">  </span>0x00007fff2e82b9b7 _CFXNotificationPost + 599<br class="">27  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">        </span>0x00007fff2be1d35b -[NSView _postFrameChangeNotification] + 314<br class="">28  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">      </span>0x00007fff2be1787b -[NSView setFrameSize:] + 2061<br class="">29  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">    </span>0x00007fff2be2db1e -[NSView setFrame:] + 371<br class="">30  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff2be3849c -[NSThemeFrame _relayoutAuxiliaryViewsOfType:] + 163<br class="">31  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">      </span>0x00007fff2be383e6 -[NSThemeFrame relayoutAuxiliaryViewsOfType:] + 27<br class="">32  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">        </span>0x00007fff2c163237 -[NSTitlebarViewController removeChildViewControllerAtIndex:] + 431<br class="">33  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">       </span>0x00007fff2c6522c6 -[NSWindowStackController _removeTabBarAccessoryViewControllerForWindow:] + 213<br class="">34  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">   </span>0x00007fff2c653162 -[NSWindowStackController removeWindow:] + 277<br class="">35  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">    </span>0x00007fff2c1dc97d -[NSWindow(NSWindowTabbing) _doTabbedWindowCleanupForOrderOut] + 97<br class="">36  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">       </span>0x00007fff2c6c903d __79-[NSWindow _reallyDoOrderWindowOutRelativeTo:findKey:forCounter:force:isModal:]_block_invoke + 62<br class="">37  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">     </span>0x00007fff2bf19c0c NSPerformVisuallyAtomicChange + 146<br class="">38  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">       </span>0x00007fff2c6c8cbc -[NSWindow _reallyDoOrderWindowOutRelativeTo:findKey:forCounter:force:isModal:] + 340<br class="">39  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">     </span>0x00007fff2bf218ec -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 172<br class="">40  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">       </span>0x00007fff2bf20765 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 287<br class="">41  com.apple.AppKit              <span class="Apple-tab-span" style="white-space:pre">     </span>0x00007fff2bf205cb -[NSWindow orderWindow:relativeTo:] + 169<br class="">42  libqcocoa.dylib               <span class="Apple-tab-span" style="white-space:pre">    </span>0x000000011b492f79 0x11b480000 + 77689<br class="">43  org.qt-project.QtGui          <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000118631c63 QWindowPrivate::setVisible(bool) + 1123<br class="">44  org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">       </span>0x0000000115262f56 QWidgetPrivate::hide_sys() + 214<br class="">45  org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">      </span>0x0000000115265787 QWidgetPrivate::hide_helper() + 183<br class="">46  org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">   </span>0x0000000115265be9 QWidget::setVisible(bool) + 281<br class="">47  org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre">       </span>0x0000000115255052 QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) + 290<br class="">48  org.qt-project.QtWidgets      <span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000115254b1b QWidget::~QWidget() + 699<br class="">49  libqgis_app.3.4.0.dylib       <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010f37ec81 QgisApp::~QgisApp() + 2245<br class="">50  libqgis_app.3.4.0.dylib       <span class="Apple-tab-span" style="white-space:pre">       </span>0x000000010f37f0c2 QgisApp::~QgisApp() + 14<br class="">51  org.qgis.qgis3                <span class="Apple-tab-span" style="white-space:pre">     </span>0x000000010ee7d5a1 main + 22017<br class="">52  libdyld.dylib                 <span class="Apple-tab-span" style="white-space:pre">    </span>0x00007fff566a4015 start + 1<br class=""><br class=""></div>
<br class=""></body></html>