Skip to content
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

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

Open
nidhi23ug opened this issue Jan 20, 2023 · 8 comments
Open

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

nidhi23ug opened this issue Jan 20, 2023 · 8 comments
Assignees
Labels
Segfault Session crashed

Comments

@nidhi23ug
Copy link

nidhi23ug commented Jan 20, 2023

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.

@Jean-Romain
Copy link
Collaborator

Jean-Romain commented Jan 20, 2023

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

@nidhi23ug
Copy link
Author

nidhi23ug commented Jan 21, 2023 via email

@Jean-Romain Jean-Romain transferred this issue from r-lidar/lidR Jan 22, 2023
@Jean-Romain
Copy link
Collaborator

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

Confirmed

@Jean-Romain Jean-Romain self-assigned this Jan 22, 2023
@Jean-Romain Jean-Romain added the Segfault Session crashed label Jan 22, 2023
@Jean-Romain Jean-Romain reopened this Jan 22, 2023
@Jean-Romain
Copy link
Collaborator

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")

@nidhi23ug
Copy link
Author

great this works. Thank you

@Jean-Romain
Copy link
Collaborator

Jean-Romain commented Dec 7, 2023

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.

@dimfalk
Copy link

dimfalk commented Jun 13, 2024

nidhi23ug commented on Jan 21, 2023 via email

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

@Jean-Romain
Copy link
Collaborator

That makes sense... I found it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Segfault Session crashed
Projects
None yet
Development

No branches or pull requests

3 participants