favreau / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

pointersToIndices does not update btSoftBody.m_clusters.m_nodes #531

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a btSoftBody and let it initialize. Run it to see that it behaves 
well.
2. Trigger a loop that runs from btSoftBody.m_nodes.size() to 
btSoftBody.m_nodes.capacity()+1 and calls btSoftBody.cutLink at each iteration.
3. Wait for crash when clusters update since converting from pointers to 
indices, resize, and then convert from indices to pointers may invalidate the 
m_x member of a node (or maybe other problems)

What is the expected output? What do you see instead?
No crash.
It crashes.

What version of the product are you using? On what operating system?
revision 2411 of public trunk (http://bullet.googlecode.com/svn/trunk)

Please provide any additional information below.
I supplied a patch to fix this issue.

Original issue reported on code.google.com by israelss...@gmail.com on 19 Aug 2011 at 8:24

Attachments:

GoogleCodeExporter commented 9 years ago
see https://github.com/bulletphysics/bullet3/issues/138

Original comment by erwin.coumans on 30 Mar 2014 at 7:42