Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tm_polygons() crashes R session with fatal error on Mac OS X Sierra #145

Closed
philament opened this issue Oct 27, 2017 · 5 comments
Closed

Comments

@philament
Copy link

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.

@rlzijdeman
Copy link
Collaborator

rlzijdeman commented Oct 27, 2017 via email

@philament
Copy link
Author

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?

@mtennekes
Copy link
Member

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.

@philament
Copy link
Author

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.

@mtennekes
Copy link
Member

See new central issue #149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants