Bug report #20712
Crash at QgsApplication.initQgis() on Mac
|Category:||Python bindings / sipify|
|Affected QGIS version:||3.5(master)||Regression?:||No|
|Operating System:||macos mojave 10.14.1||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||28532|
Simple application crushed by signal 11.
I attached crush report of Mac.
I go back to QGIS3.2.2 Bonn. It's OK, no crush.
- source: "The PyGIS Programmer's Guide"
from PyQt5.QtWidgets import QApplication
from qgis.core import QgsApplication
from ourmainwindow_3 import OurMainWindowapp = QApplication()
- set up QGIS
- set the main window and show it
mw = OurMainWindow()
- "delete" our main window
mw = None
- clean up QGIS
- end of source
#2 Updated by Peter Petrik over 2 years ago
- Status changed from Open to Feedback
Unable to replicate on Mac 10.14.1 and QGIS 3.5 master.
Based on the attached crash report (crash in QgsAuthManager::authDatabaseConnection() const + 415 ) I suspect it could be related to packaging (system python installation) or corrupted user profile.
Can you please with test with clean user profile
#6 Updated by Ikuo Yamaga over 2 years ago
- File QGIS344crush.png added
- File our_app_3.py added
- File QGIS322runing.png added
- File Qgis344crush.txt added
I create new profile "debug" and set default profile to "debug". But crushed.
I think it was not concern to profile setting, since it was standalone application.
QGIS344 was no good. QGIS322 is good!
I'm testing by rename /Application/QGIS3.app.
--- on console
(venv) Ikuo-no-iMac:qgis3py yamaga$ python3 ./standalone/our_app_3.py