Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

voronoi.polygons crashes (runs out of memory) #28

Closed
yagebu opened this issue Apr 7, 2018 · 2 comments
Closed

voronoi.polygons crashes (runs out of memory) #28

yagebu opened this issue Apr 7, 2018 · 2 comments

Comments

@yagebu
Copy link

yagebu commented Apr 7, 2018

Hey, thanks for d3 and all its various great packages!

We (see beancount/fava#731) recently in an out of memory issue with one of the charts of Fava - a line chart (looking like this) using a voronoi diagram to provide tooltips. A call to voronoi.polygons() seemed to be the culprit and the following snippet on runkit seems to reproduce the error (it crashes with error code 137, which denotes 'out of memory' afaict): https://runkit.com/yagebu/5ac88e13ef4e310012a3c15f

@Fil
Copy link
Member

Fil commented Jun 29, 2018

I have reproduced the problem in an observable and the browser intercepted the error beofre the crash, and threw me in the debugger, which in turns gave a nice view of the state:
capture d ecran 2018-06-29 a 13 34 33

@Fil
Copy link
Member

Fil commented May 25, 2019

The solution is to reimplement with d3-delaunay, as you did in beancount/fava#779

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

No branches or pull requests

2 participants