[Bf-committers] Blender crash
Kester Maddock
bf-committers@blender.org
Wed, 24 Dec 2003 12:32:57 +1300
I've seen this - it happens when the IK target is the same as the
armature's position. The attached patch checks for this.
Kester
Index: intern/iksolver/intern/IK_QJacobianSolver.cpp
===================================================================
RCS file:
/cvsroot/bf-blender/blender/intern/iksolver/intern/IK_QJacobianSolver.cpp,v
retrieving revision 1.4
diff -u -3 -r1.4 IK_QJacobianSolver.cpp
--- intern/iksolver/intern/IK_QJacobianSolver.cpp 1 May 2003
19:52:20 -0000 1.4
+++ intern/iksolver/intern/IK_QJacobianSolver.cpp 23 Dec 2003
23:30:57 -0000
@@ -65,6 +65,7 @@
MT_Vector3 goal_dir = g_position - segs[0].GlobalSegmentStart();
+ if (goal_dir.length() < tolerance) return false;
const MT_Scalar chain_max_extension = chain.MaxExtension();
Mats Holmberg wrote:
> Hello
>
> Here's a message I posted on the blender.org forum some time ago:
>
> -Blender (CVS from today) crashes on my machine when adding an IK
> solver constraint to a bone. More specifically, it crashes when
> -entering the armature name in the "OB:" field and pressing <enter>.
> Here's the output:
> -
> -blender: ../../../../blender/intern/moto/include/MT_Vector3.inl:19:
> MT_Vector3& MT_Vector3::operator/=(double): Assertion
> -`!MT_fuzzyZero(s)' failed.
> -Aborted
> -
> -Has anyone experienced this? 2.30 pre seems to work fine, as I said
> it's the cvs version I'm having trouble with - has been this way for
> at -least a couple of weeks now. The big question is: could anyone
> post all needed libs, tools etc. for compiling Blender? Or is the
> -"building-blender.html" in blender/doc/ up to date? Or am I
> experiencing a bug here?
> -
> -I'm working on an Athlon XP running Linux Mandrake 9.2. Haven't had
> the opportunity to test this on windows yet.
>
> Nothing different yet - 2.31a works ok, but the CVS version always
> gives me the above.
>
> Thanks,
> Mats
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://www.blender.org/mailman/listinfo/bf-committers
>
>