phetsims / forces-and-motion-basics

"Forces and Motion: Basics" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/forces-and-motion-basics
GNU General Public License v3.0
7 stars 10 forks source link

Continuous testing error #249

Closed jessegreenberg closed 7 years ago

jessegreenberg commented 7 years ago
forces-and-motion-basics : phet-io-fuzz : require.js : load
Uncaught Error: Assertion failed: Cannot add the same listener twice
Error: Assertion failed: Cannot add the same listener twice
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1504115983160/assert/js/assert.js:22:13)
    at Emitter.addListener (https://bayes.colorado.edu/continuous-testing/snapshot-1504115983160/axon/js/Emitter.js?bust=1504117904988:92:17)
    at new ItemNode (https://bayes.colorado.edu/continuous-testing/snapshot-1504115983160/forces-and-motion-basics/js/motion/view/ItemNode.js?bust=1504117904988:94:93)
    at new MotionScreenView (https://bayes.colorado.edu/continuous-testing/snapshot-1504115983160/forces-and-motion-basics/js/motion/view/MotionScreenView.js?bust=1504117904988:471:22)
    at MotionScreen.createView (https://bayes.colorado.edu/continuous-testing/snapshot-1504115983160/forces-and-motion-basics/js/motion/MotionScreen.js?bust=1504117904988:35:16)
    at MotionScreen.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1504115983160/joist/js/Screen.js?bust=1504117904988:220:25)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1504115983160/joist/js/Sim.js?bust=1504117904988:671:18)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1504115983160/joist/js/Sim.js?bust=1504117904988:679:27
Approximately 8/30/2017, 11:59:43 AM
jessegreenberg commented 7 years ago

Sim failing to load so needs to be addressed.

jessegreenberg commented 7 years ago
    // Make sure the arms are updated (even if nothing else changed)
    phet.phetIo && phet.phetIo.phetio.setStateEmitter && phet.phetIo.phetio.setStateEmitter.addListener( updateImage );

Looks like this line for #240 was accidentally added twice?

jessegreenberg commented 7 years ago

Fixed.