Fluid.kdtree~ throwing up errors all the time

@tremblap @weefuzzy @a.harker

Here is a patch that isolates this problem (which I believe to be related to the other problems).


----------begin_max5_patcher----------
4654.3oc2cs0aiibk94t+UPnmsoq6W1W1MSxlI.6LYajtCFrXRfAsDsMmlhT
fjps8Fj92dNUUTTjRTRTxEY6NMvXygjUcNmu5bqNUwx+i2+tY2k+bb4rf+if
eM3cu6e7928N6sL23c0++ua1xnmmmFUZesYyyWtLNqZ1UtmUE+bk897vf6hx
dHn5wjxf7r4wAKixVGkl9RPd0iwEOkTFGjTE7H7Rk+maZdZRV7770Y19fVey
r0KSxRiqrDDWey6yypxhVFaI1eJN8KwUIyi1zOqhpl+XR1C2VDOuxINXLAEx
uJ.iTgnqBHHl4WBQHJ3uukP4qq1PITKJcez731TOYgkt428aWiIyZ8hkI++1
WDnExb2+46eu4GW8JQSYXPzhEAKhuOtHnJO39jm6ExHdExTHoEwHZCTgwTyu
XuZDixm.DSDFTVEUTY0BAwJHJaQvSFYLXddVYdZ7D.fRovBY7VZbd.+XS.9Q
CAkrpphnrx6yKVB1wQUAkOlTMAvFFwIVDiZMUwLsm.N5D.brvf4OFO+yAuju
tHXQTUTIvkAQEwAOjmuXBfOF0otYwPrF4IvaJ7yQBCRyiVDD+bzxUowAqxSx
lBMNlz4hSHcJbR+fYD0DfY3ZLqVUalmMEcPApEtPd83hzi3xcqqpxyNpX2qf
owsBtQXa94AjrMck6VUurJ10OyLwWl0zn1IFn1hqE.lWEWbabVzco1VdIRZV
7SPGumBvpHvaSimZqICHdX0sUKWEb80WaeTBn5DBQDyVDUr..7E8BXziDKiU
6OAa9E0ELiPNe.qWvhhlMgC8H6PuTxFogdhdpF5MIyTACskmKHvbAUIXaHVg
eGMI3NtThKpkrZQCL6SRi+RbQYBL5ss2e2rnUqZc620pIF732xscj5plakj4
tEt4VEweIYS64M2Mp.j+JP3WW3788rXSRTltIeQbQ15DaO4tILxTyR1w.iOy
xU0NzrCUad7VD05hD4PSWLWEZKdBCvOjlO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Q38hlxuU+Gq.Dp9bBvGcE47021VR98tvekY6HUAF8cll1tKUxcowP7M2
xZ9C44ed1AWEigBC6keN2apbIYe9RzPtpyO8P8Wa5ZXXAoZB1SEHvN63qmv3
4uxyqkvtEbcXKsWuqZ1IQodz01Vre6qSae0ole7PH3Y9964kc.so+.4Gqgdw
L4yt4j8Kls1y25jkRMoRb5Tn2s1HHMqdeHn0Tkr9JoZ.qrjnIYCdiqoMFc9S
tVF8rn4OLlCPl1AfsIrcXCFU2IEIqs6uvEZvaBbq+pfMfzcYDJmn6Fiv3Bw6
iCc9lZ889nn0NhXyJ9u+UGw6sTY1iYW06USXN.Czmumzp5ZcLrQw1+8TanEc
q0d5y6k.v8oI+CoqiuFely9mhk0qn9VmQZu6BplAKxeJ6r4vowIoiC+8uDc9
LHhn4tcEfTRoDm0FACIE3eF7GKhiu.NzhdM0TCKLIH4el6mAOaYUQmM6oXHg
vUsOABXNKTJzXM2+73eIdwYyexlrewMyk.UGwv272+WbZZ9SmODR3tM0hTgU
1T1QbPqjep8SEWiPpwP.HeOJ.1ku3GySu.UjlxdvgLg3t8WT6ffdgAWstXUZ
7YkbJC4xqgvQBsUGln3BhZfYnIa10gLLGbaX8sY7d3USyh34wIe43qbWe5LM
StaKygZuEG8Cy4lhhQs3LP9SpPz6b6XfePcc7CY8NwFLBzdMRRYb1hx2ZQP1
Bx921q2MsJRhQR2ZMwDHc8ldWh8ptSUzpSsStaUeqeJpJO3mLyBcl2neYU78
qSSqN4Brr6NsTw4XWEwETI0so2Ef00wVvKy25hz9phlIEXpfPyNkzqB0YKSD
kT4xyf1nISIZpV4gop+MDOL+E58sz2KvSlp47x4W7SrVibY+A5Yr5kzVfPTb
2MX8NlM+gjhpWB9ueHe1IplExLZXmUKsdP.bdTuxECJZ3.2R8cAVyIg6k.rt
OcN6J3YD1xU0Cg1iop2+Oe++BfVGOwA
-----------end_max5_patcher-----------

You’ll need to load this dataset:
transient_dataset.zip (9.5 KB)

And follow the instructions.

While building this I did find a tangential hang, which I added an extra step to avoid. Try skipping step5 to see if you also get the hang.

Anyways, here is a hang report that I got for that (unrelated?) problem.

hang.zip (127.0 KB)