-
Notifications
You must be signed in to change notification settings - Fork 35
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
Segmentation fault (core dumped) when using filters.python #73
Comments
Can you please try 2.2.0 which was recently released. No promises it was fixed there, but there were a number of fixes that might be relevant. |
A traceback would also be invaluable. |
Same error with the 2.2.0:
|
I can't reproduce this. You'll have to provide data if you want this addressed. Also note that the provided pipeline input doesn't correspond to the provided python file (python filename is wrong). |
@abellgithub Thank you for your time. Yeah for the name I know, in my local it's not called the same, it was just to show you how I use it. Here is the link to reproduce this error https://gofile.io/d/fHyIBB |
This is caused by an invalid string in the source metadata data not being properly handled by the library. |
To be more explicit, there are bytes in description of the a VLR in the source file aren't valid unicode. There is no requirement in the LAS spec that they're valid unicode, but python expects unicode strings. |
Thank you @abellgithub |
It has already been released as part of the python module: https://github.com/PDAL/python/releases/tag/2.3.5 |
Thank you @abellgithub I have installed it through conda, so doing "conda update pdal" of my environment will I have the bug fixed for the python filter ? |
Hi,
I just found a bug using filters.python.
I have been working lately on scaling the intensity to color if a file does not have a color. Recently I found out that it does not work all the time and I kept receiving the error Segmentation fault (core dumped), at first I thought that my python script is not working correctly but that wasn't the case. Some of the files work fine and some not.
To make it easy and to prove that the error is not coming from my script so you wont have to verify it, I changed the fonction just to print something on the console :
rep_col.py
pipeline.json
Link to download the files : https://gofile.io/d/0Wnhmv
Exemple of the first file, that it throws the error :
pdal pipeline -i /home/ubuntu/Desktop/pipeline.json
Exemple of the second file, that it works:
pdal pipeline -i /home/ubuntu/Desktop/pipeline.json
I've installed pdal through conda
pdal --version
I can provide other files if needed :)
Best Regards,
Albion
The text was updated successfully, but these errors were encountered: