r-lidar / RCSF

Airborne LiDAR filtering method based on Cloth Simulation
Apache License 2.0
17 stars 2 forks source link

Segfault in R_CSF ? #11

Open adefewings opened 2 years ago

adefewings commented 2 years ago

Have been seeing the below segfault in RCSF. Have replicated in different R versions/builds and on different platforms. Does this look like an issue in RCSF itself? Many thanks.

 *** caught segfault ***
address 0x2ba6578a0390, cause 'memory not mapped'

Traceback:
 1: RCSF:::R_CSF(cloud, sloop_smooth, class_threshold, cloth_resolution,     rigidness, iterations, time_step)
 2: algorithm(las, filter)
 3: classify_ground.LAS(las, csf(class_threshold = 0.05, cloth_resolution = 0.05),     last_returns = F)
 4: classify_ground(las, csf(class_threshold = 0.05, cloth_resolution = 0.05),     last_returns = F)
 5: TreeLS::tlsNormalize(voxelised_cloud, 0.3, keep_ground = T)
 6: FUN(X[[i]], ...)
 7: lapply(lases, metrics_func)
An irrecoverable exception occurred. R is aborting now ...
/var/log/slurm/spool_slurmd/job31990981/slurm_script: line 34: 138379 Segmentation fault      Rscript leaf-area-index-lapply.R
Jean-Romain commented 2 years ago

Yes it looks like an issue in R_CSF. Actually it may even be a issue in CSF.