[QGIS-Developer] Connected problems with QGIS3 crashes and python standalone crashes?
John Harrop
jcharrop at gmail.com
Wed Oct 31 20:58:28 PDT 2018
Nothing like posting a question to trigger stumbling across the solution. It appears that a solution was found back in the Summer in this thread:
https://www.mail-archive.com/qgis-user@lists.osgeo.org/msg40317.html
I tried adding this and both of the problems seem to have gone - although I still did get an exception when I exited the bare bones standalone python code.
export QT_QPA_PLATFORM_PLUGIN_PATH="/Applications/QGIS3.app/Contents/Plugins"
John
Hello,
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.
I’m running 3.4 (just upgraded yesterday) on Mac OSX 10.13.6
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.
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 : = QgsApplication([], False) crashes with an abort trap 6 and the message: qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in “"
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.
Any suggestions for where to go would be appreciated.
John Harrop
Senior Project Geologist
CMG
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.:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 org.qt-project.QtWidgets 0x000000011524fd6e QWidget::mapTo(QWidget const*, QPoint const&) const + 46
1 org.qgis.qgis3_gui 0x0000000110221bef QgsFloatingWidget::onAnchorPointChanged() + 375
2 org.qt-project.QtCore 0x0000000118e7053b QMetaObject::activate(QObject*, int, int, void**) + 2347
3 org.qgis.qgis3_gui 0x0000000110222027 QgsFloatingWidgetEventFilter::eventFilter(QObject*, QEvent*) + 21
4 org.qt-project.QtCore 0x0000000118e3f832 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 210
5 org.qt-project.QtWidgets 0x000000011522befd QApplicationPrivate::notify_helper(QObject*, QEvent*) + 285
6 org.qt-project.QtWidgets 0x000000011522d2ed QApplication::notify(QObject*, QEvent*) + 573
7 org.qgis.qgis3_core 0x000000011127cb21 QgsApplication::notify(QObject*, QEvent*) + 93
8 org.qt-project.QtCore 0x0000000118e3f54f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159
9 org.qt-project.QtWidgets 0x0000000115286ec7 0x11521c000 + 437959
10 org.qt-project.QtWidgets 0x000000011528512d 0x11521c000 + 430381
11 org.qt-project.QtWidgets 0x000000011522bf12 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 306
12 org.qt-project.QtWidgets 0x000000011522d2ed QApplication::notify(QObject*, QEvent*) + 573
13 org.qgis.qgis3_core 0x000000011127cb21 QgsApplication::notify(QObject*, QEvent*) + 93
14 org.qt-project.QtCore 0x0000000118e3f54f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159
15 org.qt-project.QtGui 0x000000011862a1cd QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePrivate::GeometryChangeEvent*) + 381
16 org.qt-project.QtGui 0x000000011860f9b4 QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 404
17 org.qt-project.QtGui 0x000000011860b320 QWindowSystemInterface::flushWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 576
18 libqcocoa.dylib 0x000000011b493a65 0x11b480000 + 80485
19 org.qt-project.QtCore 0x0000000118e496dc QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const + 1308
20 libqcocoa.dylib 0x000000011b49a06d 0x11b480000 + 106605
21 com.apple.Foundation 0x00007fff3097c640 -[__NSObserver _doit:] + 303
22 com.apple.CoreFoundation 0x00007fff2e86eedc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
23 com.apple.CoreFoundation 0x00007fff2e86edaa _CFXRegistrationPost + 458
24 com.apple.CoreFoundation 0x00007fff2e86eae1 ___CFXNotificationPost_block_invoke + 225
25 com.apple.CoreFoundation 0x00007fff2e82c880 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1664
26 com.apple.CoreFoundation 0x00007fff2e82b9b7 _CFXNotificationPost + 599
27 com.apple.AppKit 0x00007fff2be1d35b -[NSView _postFrameChangeNotification] + 314
28 com.apple.AppKit 0x00007fff2be1787b -[NSView setFrameSize:] + 2061
29 com.apple.AppKit 0x00007fff2be2db1e -[NSView setFrame:] + 371
30 com.apple.AppKit 0x00007fff2be3849c -[NSThemeFrame _relayoutAuxiliaryViewsOfType:] + 163
31 com.apple.AppKit 0x00007fff2be383e6 -[NSThemeFrame relayoutAuxiliaryViewsOfType:] + 27
32 com.apple.AppKit 0x00007fff2c163237 -[NSTitlebarViewController removeChildViewControllerAtIndex:] + 431
33 com.apple.AppKit 0x00007fff2c6522c6 -[NSWindowStackController _removeTabBarAccessoryViewControllerForWindow:] + 213
34 com.apple.AppKit 0x00007fff2c653162 -[NSWindowStackController removeWindow:] + 277
35 com.apple.AppKit 0x00007fff2c1dc97d -[NSWindow(NSWindowTabbing) _doTabbedWindowCleanupForOrderOut] + 97
36 com.apple.AppKit 0x00007fff2c6c903d __79-[NSWindow _reallyDoOrderWindowOutRelativeTo:findKey:forCounter:force:isModal:]_block_invoke + 62
37 com.apple.AppKit 0x00007fff2bf19c0c NSPerformVisuallyAtomicChange + 146
38 com.apple.AppKit 0x00007fff2c6c8cbc -[NSWindow _reallyDoOrderWindowOutRelativeTo:findKey:forCounter:force:isModal:] + 340
39 com.apple.AppKit 0x00007fff2bf218ec -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 172
40 com.apple.AppKit 0x00007fff2bf20765 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 287
41 com.apple.AppKit 0x00007fff2bf205cb -[NSWindow orderWindow:relativeTo:] + 169
42 libqcocoa.dylib 0x000000011b492f79 0x11b480000 + 77689
43 org.qt-project.QtGui 0x0000000118631c63 QWindowPrivate::setVisible(bool) + 1123
44 org.qt-project.QtWidgets 0x0000000115262f56 QWidgetPrivate::hide_sys() + 214
45 org.qt-project.QtWidgets 0x0000000115265787 QWidgetPrivate::hide_helper() + 183
46 org.qt-project.QtWidgets 0x0000000115265be9 QWidget::setVisible(bool) + 281
47 org.qt-project.QtWidgets 0x0000000115255052 QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) + 290
48 org.qt-project.QtWidgets 0x0000000115254b1b QWidget::~QWidget() + 699
49 libqgis_app.3.4.0.dylib 0x000000010f37ec81 QgisApp::~QgisApp() + 2245
50 libqgis_app.3.4.0.dylib 0x000000010f37f0c2 QgisApp::~QgisApp() + 14
51 org.qgis.qgis3 0x000000010ee7d5a1 main + 22017
52 libdyld.dylib 0x00007fff566a4015 start + 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181031/efd0f563/attachment-0001.html>
More information about the QGIS-Developer
mailing list