ERROR: Failed malloc for buffer 9 of 4,194,304 TINtriangles.

1,182 views
Skip to first unread message

Mehdi Ravanbakhsh

unread,
May 17, 2014, 4:35:57 AM5/17/14
to last...@googlegroups.com
Hi,

I tried lasground on a *.laz file of 363 MB size but I have got an memory error (see the attached file and the subject of this post). My PC is new with 16G RAM but I don't know why I cannot run this command successfully. To solve the problem, I ran lastile and divided my file into two separate smaller files, each at around 190 MB, but again the same error. From error, it seems that there is a memory problem although it should not be given my existing RAM. I am using a *.las file generated using UAV imagery by PIX4D software, which means my data isn't lidar. I appreciate any comment on that. 

Mehdi


Capture.JPG

Martin Isenburg

unread,
May 17, 2014, 11:19:33 AM5/17/14
to LAStools - efficient command line tools for LIDAR processing
Hello Mehdi,

your approach with lastile is the correct one but apparently you
should be using a smaller tile size. 37 million points are too many
for lasground in a single tile. There are several scripts in the
'example_scripts_folder' and there is a tool in the LAStools Pipelines
ArcGIS toolbox called "huge_file_ground_classify" that can do this in
an automated way. The corresponding LAStools Pipelines script for QGIS
will be added soon. Here is the workflow you need that is more or less
copied from the batch file "huge_las_file_classify_ground.bat":

set PATH=%PATH%;C:\lastools\bin;

:: create temporary tile directory

rmdir temp_tiles /s /q
mkdir temp_tiles

:: create a temporary and reversible tiling with tile size 250 and buffer 25

lastile -i huge.laz ^
-reversible -tile_size 250 -buffer 25 ^
-o temp_tiles\tile.laz -olaz

:: create another temporary tile directory

rmdir temp_tiles_ground /s /q
mkdir temp_tiles_ground

:: run lasground on all temporary tiles on 4 cores

lasground -i temp_tiles\tile*.laz ^
-city -ultra_fine ^
-odir temp_tiles_ground -olaz ^
-cores 4

:: delete temporary tile directory

rmdir temp_tiles /s /q

:: recreate ground classified huge LAS / LAZ file

lastile -i temp_tiles_ground\tile*.laz ^
-reverse_tiling ^
-o huge_ground.laz

:: delete other temporary tile directory

rmdir temp_tiles_ground /s /q

--
http://rapidlasso.com - fast tools to classify dense-matching LiDARs
> --
> Download LAStools at
> http://lastools.org
> http://rapidlasso.com
> Be social with LAStools at
> http://facebook.com/LAStools
> http://twitter.com/LAStools
> http://linkedin.com/groups/LAStools-4408378
> Manage your settings at
> http://groups.google.com/group/lastools/subscribe
Reply all
Reply to author
Forward
0 new messages