MLweb icon indicating copy to clipboard operation
MLweb copied to clipboard

browser freezes after a few SVD

Open shi-yan opened this issue 6 years ago • 3 comments

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 avatar Oct 11 '19 16:10 shi-yan

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

it works.

shi-yan avatar Oct 11 '19 17:10 shi-yan

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)

lauerfab avatar Oct 14 '19 11:10 lauerfab

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

chriskiefer avatar May 04 '20 16:05 chriskiefer