[pdal] SegFault with p2g pipeline

pete.gadomski at gmail.com pete.gadomski at gmail.com
Mon Feb 9 08:52:35 PST 2015


Could be. I'd be happy to take a look locally to verify and track down the segfault if you're able to provide the input file.




-Pete


-- 
Pete GadomskiPhysical Scientist

Cold Regions Research & Engineering Lab

pete.gadomski at gmail.com

530.440.4630

On Mon, Feb 9, 2015 at 10:51 AM, Matthew Hanson
<mhanson at appliedgeosolutions.com> wrote:

> I'm working off the PDAL master branch, and a fresh clone of p2g.
> #define P2G_VERSION_STRING 1.3.0
> pdal (PDAL 1.0.0.b1 (1634fc) with GeoTIFF 1.4.0 GDAL 1.11.0 LASzip 2.2.0)
> Perhaps it's a problem with my input file?
> Matthew Hanson
> Applied GeoSolutions
> (603) 659-3363 x91
> http://appliedgeosolutions.com
> mhanson at appliedgeosolutions.com
> On Fri, Feb 6, 2015 at 8:08 PM, <pete.gadomski at gmail.com> wrote:
>> Hello Matthew,
>>
>> I can't reproduce your results from the information provided. A
>> PDAL+points2grid run works a-ok on my local system.
>>
>> Can you provide PDAL and points2grid versions? If you're on a Unix-style
>> and have points2grid installed to /usr/local you can do:
>>
>>     cat /usr/local/include/points2grid/config.h | grep P2G_VERSION_STRING
>>
>> For PDAL:
>>
>>     pdal --version
>>
>> That might help track things down.
>>
>> Cheers,
>> Pete
>>
>> --
>> Pete Gadomski
>> Physical Scientist
>> Cold Regions Research & Engineering Lab
>> pete.gadomski at gmail.com
>> 530.440.4630
>>
>>
>> On Fri, Feb 6, 2015 at 3:25 PM, Matthew Hanson <
>> mhanson at appliedgeosolutions.com> wrote:
>>
>>> Hello,
>>>
>>> I'm currently trying to generate a tif file from a simple test las file.
>>>   For now I'm just trying to spit out a tif of point density:
>>> #####################################
>>>  <?xml version="1.0" encoding="utf-8"?>
>>> <Pipeline version="1.0">
>>>   <Writer type="writers.p2g">
>>>     <Option name="grid_dist_x">
>>>       1.0
>>>     </Option>
>>>     <Option name="grid_dist_y">
>>>       1.0
>>>     </Option>
>>>     <Option name="radius">
>>>       3.0
>>>     </Option>
>>>     <Option name="filename">
>>>       p2g-test
>>>     </Options>
>>>     <Option name="output_type">
>>>       den
>>>     </Option>
>>>     <Option name="output_format">
>>>       tif
>>>     </Option>
>>>         <Reader type="readers.las">
>>>           <Option name="filename">
>>>             input.las
>>>           </Option>
>>>         </Reader>
>>>   </Writer>
>>> </Pipeline>
>>>  #####################################
>>>
>>> Unfortunately I get a segfault in the output:
>>> #####################################
>>>  (writers.p2g Debug: 3): X grid size: 522
>>> (writers.p2g Debug: 3): Y grid size: 495
>>> (writers.p2g Debug: 3): X grid distance: 1.000000
>>> (writers.p2g Debug: 3): Y grid distance: 1.000000
>>> numFiles 1
>>> [0,494]
>>> [0,494]
>>> 0. file size: 18604080
>>> 0: from 0 to 258390
>>> 0: from 0 to 495
>>> Merging 0: from 0 to 495
>>>         0: from 0 to 0
>>> Merging 0: from 0 to 495
>>>         0: from 0 to 0
>>> Output Execution time: 0.014058
>>> Segmentation fault (core dumped)
>>>
>>> real 0m8.603s
>>> user 0m7.747s
>>> sys 0m0.619s
>>>  #####################################
>>>
>>> Any clues on what could be going wrong?
>>>
>>> Thanks in advance!
>>>
>>>
>>>  Matthew Hanson
>>> Applied GeoSolutions
>>> (603) 659-3363 x91
>>> http://appliedgeosolutions.com
>>> mhanson at appliedgeosolutions.com
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20150209/447fae94/attachment.html>


More information about the pdal mailing list