phetsims / atomic-interactions

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

fuzz testing errors - uncaught assertion and undefined property #49

Closed jbphet closed 8 years ago

jbphet commented 9 years ago

I just ran the test-server, and Atomic Interactions is failing the fuzz test. Looks like there are two separate errors:

Uncaught Error: Assertion failed: Segment start is infinite
Error: Assertion failed: Segment start is infinite
    at window.assertions.assertFunction (http://localhost/git-dev/assert/js/assert.js:22:13)
    at Subpath.inherit.addSegmentDirectly (http://localhost/git-dev/kite/js/util/Subpath.js?bust=1440178647924:103:39)
    at http://localhost/git-dev/kite/js/util/Subpath.js?bust=1440178647924:120:17
    at Function.St (http://localhost/git-dev/sherpa/lib/lodash-2.4.1.min.js?bust=1440178647924:23:149)
    at Subpath.inherit.addSegment (http://localhost/git-dev/kite/js/util/Subpath.js?bust=1440178647924:119:9)
    at ArrowShape.inherit.addSegmentAndBounds (http://localhost/git-dev/kite/js/Shape.js?bust=1440178647924:784:29)
    at ArrowShape.inherit.lineToPoint (http://localhost/git-dev/kite/js/Shape.js?bust=1440178647924:146:14)
    at ArrowShape.inherit.lineTo (http://localhost/git-dev/kite/js/Shape.js?bust=1440178647924:136:44)
    at http://localhost/git-dev/scenery-phet/js/ArrowShape.js?bust=1440178647924:82:19
    at Function.St (http://localhost/git-dev/sherpa/lib/lodash-2.4.1.min.js?bust=1440178647924:23:149)

and:

Uncaught TypeError: Cannot read property 'getPositionReference' of undefined
TypeError: Cannot read property 'getPositionReference' of undefined
    at DualAtomModel.inherit.updateForces (http://localhost/git-dev/states-of-matter/js/atomic-interactions/model/DualAtomModel.js?bust=1440178647924:533:46)
    at DualAtomModel.inherit.positionChanged (http://localhost/git-dev/states-of-matter/js/atomic-interactions/model/DualAtomModel.js?bust=1440178647924:501:16)
    at Array. (http://localhost/git-dev/states-of-matter/js/atomic-interactions/view/GrabbableParticleNode.js?bust=1440178647924:88:23)
    at Property.inherit._notifyObservers (http://localhost/git-dev/axon/js/Property.js?bust=1440178647924:112:29)
    at NeonAtom.inherit.setPosition (http://localhost/git-dev/states-of-matter/js/common/model/particle/StatesOfMatterAtom.js?bust=1440178647924:44:29)
    at Object.GrabbableParticleNode.addInputListener.SimpleDragHandler.drag (http://localhost/git-dev/states-of-matter/js/atomic-interactions/view/GrabbableParticleNode.js?bust=1440178647924:74:40)
    at Object.SimpleDragHandler.dragListener.move (http://localhost/git-dev/scenery/js/input/SimpleDragHandler.js?bust=1440178647924:123:27)
    at Input.inherit.dispatchToPointer (http://localhost/git-dev/scenery/js/input/Input.js?bust=1440178647924:798:29)
    at Input.inherit.dispatchEvent (http://localhost/git-dev/scenery/js/input/Input.js?bust=1440178647924:766:14)
    at Input.inherit.branchChangeEvents (http://localhost/git-dev/scenery/js/input/Input.js?bust=1440178647924:692:16)
jbphet commented 9 years ago

I just set this up for fuzz testing for a while, and so far (about an hour), I'm unable to duplicate. I also ran the test-server a few times, and the automated testing of this sim passed each time. I know ArrowShape was undergoing some changes, so maybe at least one of these was caused by a temporary situation.

aadish commented 8 years ago

cannot replicate it closing