-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
readLAS()
leads to RStudio crash when applied on a corrupt file
#69
Comments
Please report your operating system, |
Sorry, I missed that. Here you go: sessionInfo()
#> R version 4.3.2 (2023-10-31 ucrt)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19045)
#>
#> Matrix products: default
#>
#>
#> locale:
#> [1] LC_COLLATE=German_Germany.utf8 LC_CTYPE=German_Germany.utf8
#> [3] LC_MONETARY=German_Germany.utf8 LC_NUMERIC=C
#> [5] LC_TIME=German_Germany.utf8
#>
#> time zone: Europe/Berlin
#> tzcode source: internal
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] rlas_1.7.0 lidR_4.1.1
#>
#> loaded via a namespace (and not attached):
#> [1] dplyr_1.1.4 compiler_4.3.2 tidyselect_1.2.0 reprex_2.1.0
#> [5] Rcpp_1.0.12 yaml_2.3.8 fastmap_1.1.1 R6_2.5.1
#> [9] generics_0.1.3 classInt_0.4-10 sf_1.0-15 knitr_1.45
#> [13] tibble_3.2.1 units_0.8-5 R.cache_0.16.0 DBI_1.2.2
#> [17] pillar_1.9.0 R.utils_2.12.3 rlang_1.1.3 utf8_1.2.4
#> [21] terra_1.7-71 xfun_0.42 fs_1.6.3 cli_3.6.2
#> [25] withr_3.0.0 magrittr_2.0.3 class_7.3-22 digest_0.6.34
#> [29] grid_4.3.2 rstudioapi_0.15.0 lifecycle_1.0.4 R.methodsS3_1.8.2
#> [33] R.oo_1.26.0 vctrs_0.6.5 KernSmooth_2.23-22 proxy_0.4-27
#> [37] evaluate_0.23 glue_1.7.0 data.table_1.15.2 styler_1.10.2
#> [41] codetools_0.2-19 fansi_1.0.6 e1071_1.7-14 rmarkdown_2.26
#> [45] purrr_1.0.2 pkgconfig_2.0.3 tools_4.3.2 htmltools_0.5.7 Ok, maybe I should try updating R to 4.3.3 in the meantime. |
Give it a try. I currently have no clue at all, but it is more likely a Windows specific bug in |
Transferred to f <- "3dm_32_299_5634_1_nw.laz"
utils::download.file(paste0("https://www.opengeodata.nrw.de/produkte/geobasis/hm/3dm_l_las/3dm_l_las/", f), f)
rlas::read.las(f) |
Just wanted to confirm that RStudio still crashes using R 4.3.3 and |
When applying
readLAS()
on a corrupted file, {lidR} causes the IDE to crash at the moment:Meanwhile, I'm fully aware that this is due to the wrong
mode
inutils::download.file()
, but I feel like a package should not cause a crash of the superordinate piece of software and also that it would have been nice to get a meaningful error message, in order to be able to investigate further instead of the upper notification prompted by RStudio itself.Just to show how other packages handle this:
When messing things up using e.g. {terra}, i.e. GDAL, you get the following error message. Something similiar would be nice, I guess.
The text was updated successfully, but these errors were encountered: