Infinite recursion
Created by: tuxmain
I observed an infinite recursion of the function add_particles_to_specific_node
in barnes_hut_2d.rs
, leading to a segfault (at the ~24930th recursion).
I have ~2800 particles of mass between 1 and a few dozens. It seems to happen only when the position vectors are very big. The theta value has no influence on this.
Now I can't give the code to reproduce but I'll try.