-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
tm_polygons() crashes R session with fatal error on Mac OS X Sierra #145
Comments
Hi, I’ve reproduced your example and experience no problems. Sorry. Here’s my sessionInfo(). Best, Richard
library(tmap)
data(Europe)
tm_shape(Europe) + tm_polygons()
sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tmap_1.10
loaded via a namespace (and not attached):
[1] Rcpp_0.12.12 lattice_0.20-35 deldir_0.1-14 png_0.1-7 class_7.3-14
[6] gtools_3.5.0 digest_0.6.12 foreach_1.4.3 V8_1.5 mime_0.5
[11] R6_2.2.2 plyr_1.8.4 stats4_3.4.1 coda_0.19-1 e1071_1.6-8
[16] spdep_0.6-15 curl_2.8.1 geojsonlint_0.2.0 gdata_2.18.0 geosphere_1.5-5
[21] raster_2.5-8 gmodels_2.16.2 R.utils_2.5.0 R.oo_1.21.0 Matrix_1.2-10
[26] splines_3.4.1 webshot_0.4.2 rgdal_1.2-13 udunits2_0.13 htmlwidgets_0.9
[31] RCurl_1.95-4.8 munsell_0.4.3 shiny_1.0.5 compiler_3.4.1 rmapshaper_0.3.0
[36] httpuv_1.3.5 tmaptools_1.2-1 base64enc_0.1-3 rgeos_0.3-25 htmltools_0.3.6
[41] expm_0.999-2 codetools_0.2-15 mapview_2.1.4 XML_3.98-1.9 viridisLite_0.2.0
[46] jsonvalidate_1.0.0 sf_0.5-4 MASS_7.3-47 bitops_1.0-6 R.methodsS3_1.7.1
[51] grid_3.4.1 nlme_3.1-131 jsonlite_1.5 satellite_1.0.1 xtable_1.8-2
[56] DBI_0.7 magrittr_1.5 units_0.4-6 scales_0.5.0 KernSmooth_2.23-15
[61] LearnBayes_2.15 leaflet_1.1.0 sp_1.2-5 boot_1.3-19 osmar_1.1-7
[66] RColorBrewer_1.1-2 iterators_1.0.8 tools_3.4.1 gdalUtils_2.0.1.7 dichromat_2.0-0
[71] crosstalk_1.0.0 colorspace_1.3-2 classInt_0.1-24
On 27/10/2017, 17:37, "philament" wrote:
I have noticed that calling tm_polygons(), tm_borders(), and tm_fill() crashes the R session with a fatal error on my current setup of R on Mac OS X Sierra 10.12.6. I am using tmap version 1.10. The crash happens both in RStudio and the standard R Gui. I have been able to reproduce the error both in R 3.3.3 and in R 3.4.2 on two separate laptops (2016 Macbook Pro). Using other tmap functions like tm_bubbles() works fine without any problems.
Example code leading to the crash on the two systems I could test on:
library(tmap)
data(Europe)
tm_shape(Europe) + tm_polygons()
Can anybody reproduce this issue? On my Windows system these lines of code work perfectly fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://github.com/mtennekes/tmap/issues/145>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADUbftc7siH0WKi9rITqqcTZMoI4lBpZks5swfixgaJpZM4QJPWu>.
|
Okay, strange. Many thanks for checking. Seems like the problem lies with my configuration somehow. I am not sure though where to continue searching for the bug. Is there any underlying library that the polygon functions (tm_polygon, tm_border, tm_fill) access, but which is not used by other tmap functions like tm_bubbles? |
I don't have any apples (except for the juicy ones) so I cannot test it. There are indeed a couple of underlying libraries that are crucial for tmap, especially sp, raster, rgdal and rgeos. (Other packages under Imports are also needed, but I do not expect issues there.) You can check them one by one, not only by loading them, but also by trying some of their own examples. |
Thanks, will do. The only slightly unusual thing about my setup might be that I have compiled rgdal from source with GDAL2, which in turn was compiled using homebrew. But then, I can't see why tm_polygons() would need to access GDAL at all when it is simply displaying data. Anyway, if I make any progress in finding the problem I can post it here, but feel free to close this issue as it's clearly not a problem in tmap itself but related to my setup. |
See new central issue #149 |
I have noticed that calling tm_polygons(), tm_borders(), and tm_fill() crashes the R session with a fatal error on my current setup of R on Mac OS X Sierra 10.12.6. I am using tmap version 1.10. The crash happens both in RStudio and the standard R Gui. I have been able to reproduce the error both in R 3.3.3 and in R 3.4.2 on two separate laptops (2016 Macbook Pro). Using other tmap functions like tm_bubbles() works fine without any problems.
Example code leading to the crash on the two systems I could test on:
Can anybody reproduce this issue? On my Windows system these lines of code work perfectly fine.
The text was updated successfully, but these errors were encountered: