Open stephengold opened 1 year ago
TODO:
Actually, N
= 4914.
Then newLeafNodes.size()
= 2597, then 1398, then 773, then 455, then 290, then 203, then 156, ...
It eventually gets to 1, but then buildTreeBottomUp()
gets invoked again (on the same simulation step), and that's when the hang occurs.
Note that buildTreeBottomUp()
is invoked from initializeFaceTree()
the 1st time and then from rebuildNodeTree()
the 2nd time, both times on the same soft body.
The 2nd time, N
seems to be stuck at 2459.
The 2nd time, adj
is based on the soft body's links, but the body has zero links!
Adding links to the body resolves this issue. I'll add an option to the SoftBodyControl
constructor.
Added at b2cd3339fd0990f334ce63c2896f861fe1cc708e
This issue was reported by Tharg, using the
HelloSoftBody
tutorial app withVF_SS
set.Here is a native stack (from GDB):