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

Cannot register two different instances to the same id #229

Closed zepumph closed 7 years ago

zepumph commented 7 years ago

Looks like flag node isn't being disposed correctly.


SimIFrameAPI Invocation Error: Error: Assertion failed: Cannot register two different instances to the same id: forcesAndMotionBasics.netForceScreen.view.flagNode
    at window.assertions.assertFunction (assert.js:21)
    at Object.addInstance (phetio.js?bust=1498414858945:417)
    at Object.addInstance (phetio.js?bust=1498414858945:57)
    at Tandem.addInstance (Tandem.js?bust=1498414858945:127)
    at FlagNode.setTandem (Node.js?bust=1498414858945:3481)
    at FlagNode.set tandem [as tandem] (Node.js?bust=1498414858945:3486)
    at Node.js?bust=1498414858945:4777
    at u (lodash-4.17.4.min.js?bust=1498414858945:5)
    at Function.ru (lodash-4.17.4.min.js?bust=1498414858945:67)
    at FlagNode.mutate (Node.js?bust=1498414858945:4764)
zepumph commented 7 years ago

Duplicate, see https://github.com/phetsims/forces-and-motion-basics/issues/221