loaders.gl icon indicating copy to clipboard operation
loaders.gl copied to clipboard

Error loading large laz files

Open sireeshdevaraj opened this issue 6 months ago • 3 comments

Hi, I have an LAZ file of 400 MB, and I am trying to load it, but I am getting an error. Error: OOM Failed to open file: undefined

const response = await fetch('/cloud_merged.laz');
const arrayBuffer = await response.arrayBuffer();
const data = await parse(arrayBuffer, LASLoader, { las : {skip : 10}, worker: true, reuseWorkers: false }); 

Also tried using the LoadInBatches. Kept getting the same error. I'm on version 4.3.3 If you have any idea on how to proceed working with large files, I would also appreciate you pointing me in the right direction.

Note: I tried using a small file; it worked with no issues.

sireeshdevaraj avatar Jun 03 '25 20:06 sireeshdevaraj

A 400mb LAZ file fully uncompressed is likely to take more than 2gb of memory.

hobu avatar Jun 06 '25 14:06 hobu

Yeah, loading the file at once caused the issue. Any other way to stream the file? I've started using Cesium Loader with their server itself, and it works, but it costs a lot of money in the long run.

sireeshdevaraj avatar Jun 06 '25 14:06 sireeshdevaraj

copc.io

hobu avatar Jun 06 '25 15:06 hobu