phetsims / blackbody-spectrum

"Blackbody Spectrum" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
1 stars 3 forks source link

Error: Cannot normalize a zero-magnitude vector #22

Closed phet-steele closed 6 years ago

phet-steele commented 6 years ago
  1. Increase horizontal (x-axis) to max
  2. Drag temperature to its minimum
Error: Cannot normalize a zero-magnitude vector
    at Vector2.normalized (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/dot/js/Vector2.js?bust=1520440570656:258:15)
    at Line.getStartTangent (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/kite/js/segments/Line.js?bust=1520440570656:218:56)
    at Line.get startTangent [as startTangent] (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/kite/js/segments/Line.js?bust=1520440570656:222:38)
    at Subpath.addSegmentDirectly (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/kite/js/util/Subpath.js?bust=1520440570656:176:33)
    at Subpath.addSegment (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/kite/js/util/Subpath.js?bust=1520440570656:199:14)
    at Shape.addSegmentAndBounds (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/kite/js/Shape.js?bust=1520440570656:1620:29)
    at Shape.lineToPoint (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/kite/js/Shape.js?bust=1520440570656:262:14)
    at Shape.lineTo (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/kite/js/Shape.js?bust=1520440570656:222:19)
    at updateGraph (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/blackbody-spectrum/js/blackbody-spectrum/view/GraphDrawingNode.js?bust=1520440570656:125:45)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1520438731930/blackbody-spectrum/js/blackbody-spectrum/view/GraphDrawingNode.js?bust=1520440570656:231:7)
arnabp commented 6 years ago

Continuous testing is stable, zero-magnitude vectors are now checked for.