lauerfab / MLweb

Machine learning and scientific computing (linear algebra, statistics, optimization) javascript libraries, with an online lab.
http://mlweb.loria.fr
GNU General Public License v2.0
85 stars 22 forks source link

browser freezes after a few SVD #10

Open shi-yan opened 5 years ago

shi-yan commented 5 years ago

ik.zip

The attached html file is an experiment of inverse kinematics. After a few iterations (by clicking the update button),

the web browser will freeze in SVD calculation.

Chrome says it is in GolubKahanSVDstep, firefox also freezes with no callstack.

shi-yan commented 5 years ago

I tried a different SVD lib, https://github.com/danilosalvati/svd-js

it works.

lauerfab commented 5 years ago

It seems that you are using the lalolib.js version from mlweb.loria.fr. Can you try with the latest version from GitHub? It seems that I cannot reproduce the bug with this version. (I cannot update the version at mlweb.loria.fr before a few days)

chriskiefer commented 4 years ago

I am getting this bug on Chrome 81 in Ubuntu, using the latest library from github, with the command

let svdR = svd(R, "thinU");

I've attached an example of data that caused it to crash.

matrix.json.txt