Open samFarrellDay opened 2 years ago
Hi @samFarrellDay, thanks for the report. On macOS I cannot reproduce. I would say you could be hitting the recursion limit (0xC00000FD stands for "stack overflow").
Did you try with other parameters on the KDTree
or could you try to change the recursion limit of Python (with import sys;sys.setrecursionlimit(1500)
, don't put something too high. Check the current value with print(sys.getrecursionlimit())
)? Or you can play on the stack size, see here.
I did try different recursion limits to no avail. Changing leaf size also does not help. However, setting balanced_tree=False
fixes the issue.
Describe your issue.
KDTree hits this error when it encounters too many duplicates. Without rounding, the reproduceable example works fine. I am running on Windows 10, 16GB memory, Python version 3.9.6.
Reproducing Code Example
Error message
SciPy/NumPy/Python version information
1.7.0 1.21.1 sys.version_info(major=3, minor=9, micro=6, releaselevel='final', serial=0)