Need help in understanding Memory Error

Machine Specs:
AWS EC2 t3a.2xlarge - RAM 32GB, Storage: 640GB

For these task options:

I’m getting this error:

[INFO]    Starting smoothing...
Traceback (most recent call last):
File "/code/", line 69, in <module>
File "/code/stages/", line 83, in execute
File "/code/opendm/", line 361, in run
File "/code/opendm/", line 361, in run
File "/code/opendm/", line 361, in run
[Previous line repeated 3 more times]
File "/code/opendm/", line 342, in run
self.process(self.args, outputs)
File "/code/stages/", line 66, in process
mesh.create_25dmesh(tree.filtered_point_cloud, tree.odm_25dmesh,
File "/code/opendm/", line 25, in create_25dmesh
File "/code/opendm/dem/", line 257, in create_dem
median_smoothing(geotiff_path, output_path)
File "/code/opendm/dem/", line 310, in median_smoothing
arr =[0]
File "rasterio/_io.pyx", line 337, in
MemoryError: Unable to allocate 70.4 GiB for an array with shape (1, 188488, 100330) and data type float32

Does this mean I need to increase the RAM?

Yes, and/or possibly more swap. How much swap do you have?

1 Like

Seems ClusterODM was set to add a swap equal to RAM which makes it 64 GB in total. Let me increase it and try again.


Increasing RAM and decreasing ortho resolution solved the problem!