Closed kalinowskapatrycja closed 7 months ago
I confirm the issue. Thank you for reporting.
f = "/home/jr/Téléchargements/issue 20/ST3_A01_2018_P04_LAS_2.laz"
chm = rasterize(0.5, "max")
seed = local_maximum_raster(chm, 3)
pipeline = chm + seed
ans = exec(pipeline, on = f, noread = T)
==371706== Invalid write of size 8
==371706== at 0xCC282DB: memcpy (string_fortified.h:29)
==371706== by 0xCC282DB: copy_to (laspoint.hpp:231)
==371706== by 0xCC282DB: LAS::add_point(LASpoint const&) (LAS.cpp:153)
==371706== by 0xCC2A5DE: LAS::LAS(Raster const&) (LAS.cpp:102)
==371706== by 0xCC6074D: LASRlocalmaximum::process() (localmaximum.cpp:62)
==371706== by 0xCC551F6: Pipeline::run_loaded() (pipeline.cpp:180)
==371706== by 0xCC56484: Pipeline::run() (pipeline.cpp:92)
==371706== by 0xCD4102C: process(SEXPREC*, SEXPREC*) [clone ._omp_fn.0] (process.cpp:197)
==371706== by 0x572CA15: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
==371706== by 0xCD416FB: process(SEXPREC*, SEXPREC*) (process.cpp:142)
==371706== by 0x49582C9: ??? (in /usr/lib/R/lib/libR.so)
==371706== by 0x499B272: ??? (in /usr/lib/R/lib/libR.so)
==371706== by 0x49AFCFF: Rf_eval (in /usr/lib/R/lib/libR.so)
==371706== by 0x49B1D85: ??? (in /usr/lib/R/lib/libR.so)
==371706== Address 0x2064fe10 is not stack'd, malloc'd or (recently) free'd
==371706==
*** caught segfault ***
address 0x2064fe10, cause 'memory not mapped'
Very stupid bug. I should have tested the code on a bigger example. Fixed now. Thanks
Thank you!
May I ask whether the error attached is an issue with lasR or my system? I have reinstalled lasR, gdal and arrow with no avail.
Not related to me. At least not directly. I don't know what is the problem. The package is supposed to compile on windows according to the continuous integration with github action https://github.com/r-lidar/lasR/actions/runs/8511576203
What is weird here is that it compiled for you previously. Nothing changed since lasR 0.1.0 with respect to gdal.
Well, according to your paths you are on linux. I can try to help but have no idea of the problem. You were able to install 0.4.0 and nothing change except 2 lines of code to fix two simple bugs
Well, according to your paths you are on linux. I can try to help but have no idea of the problem. You were able to install 0.4.0 and nothing change except 2 lines of code to fix two simple bugs
Well it looks like everything is functioning correctly even with the error. So I may just ignore this for now. It does look like an issue with my system.
Mmm it was not an issue at the end of the compilation while linking?
Mmm it was not an issue at the end of the compilation while linking?
I am not too sure what that means unfortunately. How do I find out
I only had this warning when installing lasR
PS, does lasR support the feature in lidR - 7.1.2 Local Maximum Filter with variable windows size? I am struggling to get good tree detection without the use of this function (Smaller trees are given huge canopy sizes so my entire plot is covered in canopy even if the .laz has visible ground)
Also this link no longer seems to be working in the Parallel Processing section https://r-lidar.github.io/lasR/benchmarks.html Though I don't strictly need it, just wanted to let you know.
PS, does lasR support the feature in lidR - 7.1.2 Local Maximum Filter with variable windows size?
No it does not. One of the main reasons is because it is much slower to compute. The second reason is that I must register a set of pre-defined functions in c++. Out of question to allow a user-defined function like in lidR it is too complex. Overall I'm keen to do it but it is not my priority.
Also this link no longer seems to be working in the Parallel Processing section https://r-lidar.github.io/lasR/benchmarks.html Though I don't strictly need it, just wanted to let you know.
This link in incorrect. Where did you find it? Thanks
No it does not. One of the main reasons is because it is much slower to compute. The second reason is that I must register a set of pre-defined functions in c++. Out of question to allow a user-defined function like in lidR it is too complex. Overall I'm keen to do it but it is not my priority.
I see, is it best to use this function for data with similar size trees then, and not amazon rain-forest data with extreme variance in canopy and heights? I should be able to use lasR for the normalisation and chm for the speed, and just have lidR handle the rest right? Also, I am yet to use the Derived metrics feature in lidR, but I assume I can get a .csv of all of the trees and their canopy size and height with it. Can I do the same with lasR?
This link in incorrect. Where did you find it? Thanks
Sure, here is a screenshot
If you have any question, please open a dedicated thread in the discussion section
I get the following error:
When running this code on the tutorial page:
I am using this file: LAZ.Example.zip
The previous example on the tutorial page works fine. gdal and arrow are installed.