qgisprocess
qgisprocess copied to clipboard
Algorithm 'native:printlayouttopdf' segfaults on MacOS
Thanks to the r-spatial panel question at FOSS4G!
library(qgisprocess)
#> Using 'qgis_process' at '/Applications/QGIS-LTR.app/Contents/MacOS/bin/qgis_process'.
#> QGIS version: 3.16.10-Hannover
#> Metadata of 971 algorithms successfully cached.
#> Run `qgis_configure()` for details.
curl::curl_download(
"https://gist.githubusercontent.com/paleolimbot/f2fa6f409c48c3d18fe5462fb29f8996/raw/3c1e14b7834c2175acbb6cb1b6f646906f9f89ed/test.qgs",
"test.qgs"
)
qgis_run_algorithm(
"native:printlayouttopdf",
LAYOUT = "Layout 1",
OUTPUT = "output.pdf",
PROJECT_PATH = "test.qgs"
)
#> Argument `LAYERS` is unspecified (using QGIS default value).
#> Argument `DPI` is unspecified (using QGIS default value).
#> Argument `FORCE_VECTOR` is unspecified (using QGIS default value).
#> Argument `GEOREFERENCE` is unspecified (using QGIS default value).
#> Argument `INCLUDE_METADATA` is unspecified (using QGIS default value).
#> Argument `DISABLE_TILED` is unspecified (using QGIS default value).
#> Argument `SIMPLIFY` is unspecified (using QGIS default value).
#> Using `TEXT_FORMAT = "Always Export Text as Paths (Recommended)"`
#> Argument `SEPARATE_LAYERS` is unspecified (using QGIS default value).
#> Running /Applications/QGIS-LTR.app/Contents/MacOS/bin/qgis_process run \
#> 'native:printlayouttopdf' '--LAYOUT=Layout 1' '--TEXT_FORMAT=0' \
#> '--OUTPUT=output.pdf' '--PROJECT_PATH=test.qgs'
#> /Applications/QGIS-LTR.app/Contents/MacOS/bin/qgis_process: line 6: 40584 Segmentation fault: 11 $THISDIR/../qgis_process.app/Contents/MacOS/qgis_process "$@"
#> Error in processx::run(path, args, ...): System command 'qgis_process' failed, exit status: 139, stderr:
#> E> /Applications/QGIS-LTR.app/Contents/MacOS/bin/qgis_process: line 6: 40584 Segmentation fault: 11 $THISDIR/../qgis_process.app/Contents/MacOS/qgis_process "$@"
Created on 2021-09-30 by the reprex package (v2.0.1)