I am trying to establish a QGIS3 custom application under Linux (Arch Antergos), according to the documentation (section 1.4.2) the following should work (but it doesn't). I executed the subsequent code from the system command line:
export PYTHONPATH=/usr/share/qgis/python
export LD_LIBRARY_PATH=/usr/lib
python3
from qgis.core import *
QgsApplication.setPrefixPath("/usr/bin/qgis", True)
# running showSettings() also does not return the expected results
# QgsApplication.showSettings()
# running QgsApplication.setPrefixPath("/usr", True) looks better with showSettings(), however, fails also in the next step
qgs = QgsApplication([], True)
qgs.initQgis()
After running qgs = QgsApplication([], True)
Python is terminated with following error message:
malloc_consolidate(): invalid chunk size
[1] 5581 abort (core dumped) python3
The same code worked with QGIS 2.18.
Has something changed or am I missing something?