GSL Nonlinear Least-Squares Fitting crashes when system not converges

Brian Gough bjg@network-theory.co.uk
Thu Sep 18 13:27:00 GMT 2003


Christian.Winter writes:
 > I have some problems with GSL Nonlinear Least-Squares Fitting.
 >  
 > It crashes everytime when freeing the solver with
 > gsl_multifit_fdfsolver_free() when the system to fit does not
 > converge, if it converges everything is fine.
 >  
 > I use it for some kind of Augmented Reality Application to fit a
 > system of functions to find the Transformation of 3D Modelpoints
 > which are projected to 2D Device Coordinates. When the initial
 > guess of the Transformation is not good enough the system will not
 > converge but when this happens GSL crashes in the following

I would recommend compiling your program using a memory checking tool
such as 'checkergcc' on GNU/Linux, to look for any out of bounds
memory accesses.

regards

-- 
Brian Gough



More information about the Gsl-discuss mailing list