SymbolixAU / mapdeck

R interface to Deck.gl and Mapbox

Home Page:https://symbolixau.github.io/mapdeck/articles/mapdeck.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mapdeck crashing in windows R 4.3.1 ... but not in R 4.1.3

xtimbeau opened this issue · comments

Running example from mapdeck on RStudio/windows/R 4.1.3 runs smoothly, GPU included.
It is working on MacOS, R 4.3.1
The same, on R 4.3.1, R 4.3.0, R 4.2.3 fails and crash the viewer.

mapdeck(token = Sys.getenv("MAPBOX_TOKEN"), style = mapdeck_style("dark")) works as expected

sf <- geojson_sf("https://symbolixau.github.io/data/geojson/SA2_2016_VIC.json")
sf$e <- sf$AREASQKM16 * 10

mapdeck(token = Sys.getenv("MAPBOX_TOKEN"), style = mapdeck_style("dark")) %>%
  add_polygon(
    data = sf[ data.table::`%like%`(sf$SA4_NAME16, "Melbourne"), ]
    , layer = "polygon_layer"
    , fill_colour = "SA3_CODE16",
    elevation = "e"
  )

does not.

Session Info mapdeck working:

R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)

Matrix products: default

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_France.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] lubridate_1.9.2 forcats_1.0.0   stringr_1.5.0   dplyr_1.1.2     purrr_1.0.1     readr_2.1.4     tidyr_1.3.0     tibble_3.2.1   
 [9] ggplot2_3.4.2   tidyverse_2.0.0 mapboxapi_0.5   mapdeck_0.3.4   geojsonsf_2.0.3 sf_1.0-12      

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.10         lattice_0.20-45     png_0.1-8           class_7.3-20        digest_0.6.31       utf8_1.2.3          aws.signature_0.6.0
 [8] R6_2.5.1            cellranger_1.1.0    e1071_1.7-13        httr_1.4.6          pillar_1.9.0        rlang_1.1.0         curl_5.0.0         
[15] readxl_1.4.2        rstudioapi_0.14     data.table_1.14.8   raster_3.6-20       magick_2.7.4        protolite_2.2.0     htmlwidgets_1.6.2  
[22] munsell_0.5.0       proxy_0.4-27        compiler_4.1.3      pkgconfig_2.0.3     base64enc_0.1-3     htmltools_0.5.5     tidyselect_1.2.0   
[29] codetools_0.2-18    fansi_1.0.4         tzdb_0.3.0          withr_2.5.0         grid_4.1.3          jsonify_1.2.2       jsonlite_1.8.4     
[36] gtable_0.3.3        lifecycle_1.0.3     DBI_1.1.3           magrittr_2.0.3      units_0.8-1         scales_1.2.1        KernSmooth_2.23-20 
[43] cli_3.6.1           stringi_1.7.12      fs_1.5.2            remotes_2.4.2       leaflet_2.1.2       sp_1.6-0            xml2_1.3.3         
[50] ellipsis_0.3.2      sfheaders_0.4.2     generics_0.1.3      vctrs_0.6.1         tools_4.1.3         glue_1.6.2          hms_1.1.3          
[57] crosstalk_1.2.0     jpeg_0.1-10         aws.s3_0.3.21       yaml_2.3.7          fastmap_1.1.1       slippymath_0.3.1    timechange_0.2.0   
[64] colorspace_2.1-0    terra_1.7-23        classInt_0.4-9 

Session Info mapdeck not working

R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default


locale:
[1] LC_COLLATE=French_France.utf8  LC_CTYPE=French_France.utf8    LC_MONETARY=French_France.utf8 LC_NUMERIC=C                  
[5] LC_TIME=French_France.utf8    

time zone: Europe/Paris
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] lubridate_1.9.2   forcats_1.0.0     stringr_1.5.0     dplyr_1.1.2       purrr_1.0.1       readr_2.1.4       tidyr_1.3.0      
 [8] tibble_3.2.1      ggplot2_3.4.2     tidyverse_2.0.0   mapboxapi_0.5     mapdeck_0.3.40004 geojsonsf_2.0.3   sf_1.0-13        

loaded via a namespace (and not attached):
 [1] tidyselect_1.2.0    arrow_12.0.1        fastmap_1.1.1       leaflet_2.1.2       stringfish_0.15.8   digest_0.6.31       timechange_0.2.0   
 [8] lifecycle_1.0.3     AzureRMR_2.4.3      terra_1.7-29        magrittr_2.0.3      compiler_4.3.1      rlang_1.1.1         tools_4.3.1        
[15] utf8_1.2.3          data.table_1.14.8   AzureStor_3.7.0     htmlwidgets_1.6.2   bit_4.0.5           sp_1.6-1            classInt_0.4-9     
[22] curl_5.0.1          aws.signature_0.6.0 xml2_1.3.4          KernSmooth_2.23-21  r3035_0.1.0         withr_2.5.0         AzureGraph_1.3.2   
[29] grid_4.3.1          fansi_1.0.4         AzureAuth_1.3.3     e1071_1.7-13        colorspace_2.1-0    scales_1.2.1        cli_3.6.1          
[36] generics_0.1.3      remotes_2.4.2       RcppParallel_5.1.7  rstudioapi_0.14     httr_1.4.6          tzdb_0.4.0          readxl_1.4.2       
[43] DBI_1.1.3           proxy_0.4-27        RApiSerialize_0.1.2 slippymath_0.3.1    assertthat_0.2.1    cellranger_1.1.0    base64enc_0.1-3    
[50] vctrs_0.6.3         jsonlite_1.8.5      hms_1.1.3           bit64_4.0.5         jpeg_0.1-10         magick_2.7.4        crosstalk_1.2.0    
[57] units_0.8-2         glue_1.6.2          codetools_0.2-19    stringi_1.7.12      protolite_2.2.0     gtable_0.3.3        raster_3.6-20      
[64] aws.s3_0.3.21       munsell_0.5.0       accessibility_0.3.1 pillar_1.9.0        rappdirs_0.3.3      htmltools_0.5.5     R6_2.5.1           
[71] lattice_0.21-8      png_0.1-8           qs_0.25.5           class_7.3-22        Rcpp_1.0.10         fs_1.6.2            pins_1.2.0         
[78] pkgconfig_2.0.3    
commented

thanks for the report - this is a duplicate of #359