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

FATAL ERROR: coordinate out of range on M1 mac #54

Closed
pieterprovoost opened this issue Apr 1, 2022 · 1 comment
Closed

FATAL ERROR: coordinate out of range on M1 mac #54

pieterprovoost opened this issue Apr 1, 2022 · 1 comment

Comments

@pieterprovoost
Copy link
Contributor

I'm having some issues on an M1 mac which I did not have on an Intel mac. In particular, dgGEO_to_SEQNUM() often results in the following error:

> dggs <- dgconstruct(spacing = 1000, metric = FALSE, resround = "down")
Resolution: 3, Area (mi^2): 1173851.79791229, Spacing (mi): 843.496246531418, CLS (mi): 964.285490648183
> dgGEO_to_SEQNUM(dggs, 23, 35)$seqnum
FATAL ERROR: DgQ2DDtoIConverter::convertTypedAddress():  coordinate out of range: (3, 9)
[1] 67

Also, this is what I get when I try the example in the vignette. Note the overlapping polygons west of Chile and between South Africa and Antarctica.

grid

Session info:

R version 4.1.2 (2021-11-01)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.3

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1-arm64/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  
[7] base     

other attached packages:
[1] ggplot2_3.3.5 dggridR_3.0.0 sp_1.4-6      sf_1.0-7     
[5] rlang_1.0.2   dplyr_1.0.8  

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.8.3       pillar_1.7.0       compiler_4.1.2    
 [4] prettyunits_1.1.1  remotes_2.4.2      class_7.3-19      
 [7] tools_4.1.2        digest_0.6.29      pkgbuild_1.3.1    
[10] gtable_0.3.0       lattice_0.20-45    lifecycle_1.0.1   
[13] tibble_3.1.6       pkgconfig_2.0.3    cli_3.2.0         
[16] DBI_1.1.2          rstudioapi_0.13    curl_4.3.2        
[19] e1071_1.7-9        s2_1.0.7           withr_2.4.3       
[22] maps_3.4.0         generics_0.1.2     vctrs_0.4.0       
[25] grid_4.1.2         classInt_0.4-3     rprojroot_2.0.2   
[28] tidyselect_1.1.2   glue_1.6.2         R6_2.5.1          
[31] processx_3.5.2     fansi_1.0.3        farver_2.1.0      
[34] callr_3.7.0        purrr_0.3.4        magrittr_2.0.3    
[37] scales_1.1.1       units_0.8-0        ps_1.6.0          
[40] ellipsis_0.3.2     assertthat_0.2.1   colorspace_2.0-2  
[43] labeling_0.4.2     utf8_1.2.2         KernSmooth_2.23-20
[46] proxy_0.4-26       wk_0.6.0           munsell_0.5.0     
[49] crayon_1.5.1      
@r-barnes
Copy link
Owner

I'm afraid I don't have access to an M1, so it's going to be hard for me to reproduce this issue. Perhaps you can get access to a cloud machine as a workaround?

I'm closing for now, but feel free to reopen.

Also: dggridR is back on CRAN, so maybe the latest version will work better for you?

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

2 participants