Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when using clustersDbscan #2817

Open
Felankia opened this issue Jan 16, 2025 · 3 comments
Open

Segmentation fault when using clustersDbscan #2817

Felankia opened this issue Jan 16, 2025 · 3 comments

Comments

@Felankia
Copy link

Version: 7.2.0

Code:

let points = [] // A huge point set. About one million GPS points.
points.splice(72026); //  The threshold is 72026
let clustered = turf.clustersDbscan(turf.featureCollection(points), 0.1);

Stacktrace:

Segmentation fault (core dumped)

And I can't find any dumpfile in jsfile folder

@Felankia
Copy link
Author

I ran more test. The threshold is not a deterministic value. It somewhere between 72026 to 75000.
If less than 72026, it works every time.
If more than 75000, it crash every time.

@stevage
Copy link
Collaborator

stevage commented Jan 17, 2025

I think you'll need to include a lot of information about your running environment.

@Felankia
Copy link
Author

I think you'll need to include a lot of information about your running environment.

CPU: i7-1165g7
Mem: 16G
OS: Ubuntu 20.04.5 LTS
nodejs: 14.21.2
npm: 6.14.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants