rlas icon indicating copy to clipboard operation
rlas copied to clipboard

lidR::readLAS for most las files even lesser 50KB is crashing R

Open nidhi23ug opened this issue 2 years ago • 8 comments

Newest version of lidR:: readLas is crashing R, even for the las files that are smaller than 50Kb (files aren't corrupt). I can read them in CloudCompare, python but not in lidR? The error message I got was An irrecoverable exception occurred. R is aborting now *** caught segfault *** address (nil), cause 'memory not mapped'`

I can send one such file for your testing.

nidhi23ug avatar Jan 20 '23 22:01 nidhi23ug

I indeed need the file. Have you ever been able to read the file in R?

Jean-Romain avatar Jan 20 '23 23:01 Jean-Romain

Thanks for your quick response. The attached is one of the las file that is crashing R .

nidhi23ug avatar Jan 21 '23 00:01 nidhi23ug

rlas::read.las("~/Téléchargements/08nd0862.dams__clipped_polygon_2.las")

Confirmed

Jean-Romain avatar Jan 22 '23 15:01 Jean-Romain

Seems to be related to extrabytes

# works
rlas::read.las("~/Téléchargements/08nd0862.dams__clipped_polygon_2.las", select = "")
rlas::read.las("~/Téléchargements/08nd0862.dams__clipped_polygon_2.las", select = "* -0")

# crashes
rlas::read.las("~/Téléchargements/08nd0862.dams__clipped_polygon_2.las", select = "1")

Jean-Romain avatar Jan 22 '23 15:01 Jean-Romain

great this works. Thank you

nidhi23ug avatar Jan 22 '23 18:01 nidhi23ug

I don't know where I put your file. Did you send it to me by email? What is your name so I can find your email.

Jean-Romain avatar Dec 07 '23 18:12 Jean-Romain

nidhi23ug commented on Jan 21, 2023 via email

Yup, the mail should have the file 08nd0862.dams__clipped_polygon_2.las attached.

dimfalk avatar Jun 13 '24 14:06 dimfalk

That makes sense... I found it!

Jean-Romain avatar Jun 13 '24 14:06 Jean-Romain