Skip to content

Crashing since v2.23 with large CSV file #342

Description

@jwoodwardtfx

Processing a large CSV file (containing tens of millions of lat/lon points) causes the following crash:

For layer 0, using name "data"
pread(index): Success24%

Up to and including v2.22 works fine.

Here is some noddy Python3 code to generate a test file with 100 million entries (the file will be a couple of gigs in size):

import os

if os.path.exists("data.csv"):
	os.remove("data.csv")

file1 = open("data.csv", "a")

file1.write("lat,lon\r");

currentLat = 0;
currentLon = 0;

for x in range(1000):
	currentLat += 0.0000001;
	if currentLat >= 90:
		currentLat -= 180;
	for y in range (100000):
		currentLon += 0.0000001;
		if currentLon >= 180:
			currentLon -= 360;
		file1.write("{:.8f}".format(currentLat));
		file1.write(',');
		file1.write("{:.8f}".format(currentLon));
		file1.write('\n');

file1.close();

And here is the command used:

tippecanoe --output "output.sqlite" "data.csv" --simplification=1 --full-detail=16 --minimum-zoom=6 --maximum-zoom=16 --no-tile-size-limit --cluster-distance=1 -r1

I'm running in an 24.04.2 LTS Ubuntu VM (from a Windows 10 host), but have plenty of RAM (20GBytes) available (it never seems to top out due to memory if I watch it using "top" while tippecanoe is running).

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions