phetsims / energy-skate-park-basics

"Energy Skate Park: Basics" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/energy-skate-park-basics
GNU General Public License v3.0
2 stars 9 forks source link

CT phet-io api error #468

Closed KatieWoe closed 4 years ago

KatieWoe commented 4 years ago
energy-skate-park-basics : phet-io-state-fuzz : require.js : run
Assertion failed: PhET-iO API error:
energySkateParkBasics.introScreen.model.doubleWellTrack.physicalProperty:  6. Any static, registered PhetioObject can never be deregistered.
Error: Assertion failed: PhET-iO API error:
energySkateParkBasics.introScreen.model.doubleWellTrack.physicalProperty:  6. Any static, registered PhetioObject can never be deregistered.
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/assert/js/assert.js?bust=1581948722704:22:13)
    at PhetioAPIValidation.assertAPIError (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/phetioAPIValidation.js?bust=1581948722986:280:17)
    at PhetioAPIValidation.onPhetioObjectRemoved (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/phetioAPIValidation.js?bust=1581948722986:163:14)
    at PhetioEngine.phetioObjectRemoved (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioEngine.js?bust=1581948722986:490:27)
    at Object.removePhetioObject (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioEngine.js?bust=1581948722986:535:54)
    at Tandem.removePhetioObject (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/Tandem.js?bust=1581948722986:171:40)
    at BooleanProperty.dispose (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/PhetioObject.js?bust=1581948722986:557:21)
    at BooleanProperty.dispose (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/axon/js/Property.js?bust=1581948722986:454:13)
    at BooleanProperty.PhetioObject.dispose (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/PhetioObject.js?bust=1581948722986:199:22)
    at Track.disposeTrack (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/energy-skate-park/js/energy-skate-park/common/model/Track.js?bust=1581948722986:191:31)
id: Bayes Chrome
Approximately 2/17/2020, 6:54:04 AM
energy-skate-park-basics : phet-io-state-fuzz : require.js : run
Uncaught Error: Assertion failed: PhET-iO API error:
energySkateParkBasics.introScreen.model.doubleWellTrack.physicalProperty:  6. Any static, registered PhetioObject can never be deregistered.
Error: Assertion failed: PhET-iO API error:
energySkateParkBasics.introScreen.model.doubleWellTrack.physicalProperty:  6. Any static, registered PhetioObject can never be deregistered.
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/assert/js/assert.js?bust=1581948722704:22:13)
    at PhetioAPIValidation.assertAPIError (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/phetioAPIValidation.js?bust=1581948722986:280:17)
    at PhetioAPIValidation.onPhetioObjectRemoved (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/phetioAPIValidation.js?bust=1581948722986:163:14)
    at PhetioEngine.phetioObjectRemoved (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioEngine.js?bust=1581948722986:490:27)
    at Object.removePhetioObject (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioEngine.js?bust=1581948722986:535:54)
    at Tandem.removePhetioObject (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/Tandem.js?bust=1581948722986:171:40)
    at BooleanProperty.dispose (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/PhetioObject.js?bust=1581948722986:557:21)
    at BooleanProperty.dispose (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/axon/js/Property.js?bust=1581948722986:454:13)
    at BooleanProperty.PhetioObject.dispose (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/PhetioObject.js?bust=1581948722986:199:22)
    at Track.disposeTrack (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/energy-skate-park/js/energy-skate-park/common/model/Track.js?bust=1581948722986:191:31)
id: Bayes Chrome
Approximately 2/17/2020, 6:54:04 AM
energy-skate-park-basics : phet-io-state-fuzz : require.js : run
Uncaught Error: Assertion failed: mismatched index, possible start/end mismatch
Error: Assertion failed: mismatched index, possible start/end mismatch
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/assert/js/assert.js?bust=1581948722704:22:13)
    at DataStream.end (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/dataStream.js?bust=1581948722986:270:17)
    at PhetioCommandProcessor.phetioEndEvent (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/PhetioObject.js?bust=1581948722986:421:32)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581948722986:96:20
id: Bayes Chrome
Approximately 2/17/2020, 6:54:04 AM
energy-skate-park-basics : phet-io-state-fuzz : require.js : run
Uncaught Error: Uncaught Error: Assertion failed: mismatched index, possible start/end mismatch
Error: Assertion failed: mismatched index, possible start/end mismatch
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/assert/js/assert.js?bust=1581948722704:22:13)
    at DataStream.end (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/dataStream.js?bust=1581948722986:270:17)
    at PhetioCommandProcessor.phetioEndEvent (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/tandem/js/PhetioObject.js?bust=1581948722986:421:32)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581948722986:96:20
id: Bayes Chrome
Approximately 2/17/2020, 6:54:04 AM
energy-skate-park-basics : phet-io-studio-fuzz : require.js : run
phetioID not found: energySkateParkBasics.playgroundScreen.view.graphsScreenView.trackNode.track~4.controlPointNode1.controlPointUI.visibleProperty
Error: phetioID not found: energySkateParkBasics.playgroundScreen.view.graphsScreenView.trackNode.track~4.controlPointNode1.controlPointUI.visibleProperty
    at PhetioEngine.errorIfUndefined (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioEngine.js?bust=1581950014784:305:15)
    at PhetioCommandProcessor.processCommand (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:177:32)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:147:38
    at Array.map (<anonymous>)
    at PhetioCommandProcessor.processCommands (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:145:32)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:88:18
id: Bayes Chrome
Approximately 2/17/2020, 6:54:04 AM
energy-skate-park-basics : phet-io-studio-fuzz : require.js : run
phetioID not found: energySkateParkBasics.playgroundScreen.view.graphsScreenView.trackNode.track~4.controlPointNode1.controlPointUI.pickableProperty
Error: phetioID not found: energySkateParkBasics.playgroundScreen.view.graphsScreenView.trackNode.track~4.controlPointNode1.controlPointUI.pickableProperty
    at PhetioEngine.errorIfUndefined (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioEngine.js?bust=1581950014784:305:15)
    at PhetioCommandProcessor.processCommand (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:177:32)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:147:38
    at Array.map (<anonymous>)
    at PhetioCommandProcessor.processCommands (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:145:32)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:88:18
id: Bayes Chrome
Approximately 2/17/2020, 6:54:04 AM
energy-skate-park-basics : phet-io-studio-fuzz : require.js : run
phetioID not found: energySkateParkBasics.playgroundScreen.view.graphsScreenView.trackNode.track~4.controlPointNode1.controlPointUI.opacityProperty
Error: phetioID not found: energySkateParkBasics.playgroundScreen.view.graphsScreenView.trackNode.track~4.controlPointNode1.controlPointUI.opacityProperty
    at PhetioEngine.errorIfUndefined (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioEngine.js?bust=1581950014784:305:15)
    at PhetioCommandProcessor.processCommand (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:177:32)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:147:38
    at Array.map (<anonymous>)
    at PhetioCommandProcessor.processCommands (https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:145:32)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581947644084/phet-io/js/phetioCommandProcessor.js?bust=1581950014784:88:18
id: Bayes Chrome
Approximately 2/17/2020, 6:54:04 AM
energy-skate-park-basics : phet-io-tests : no-assert
7 out of 7 tests passed. 0 failed.

Approximately 2/17/2020, 6:54:04 AM
jessegreenberg commented 4 years ago

I tried looking into this, but I am afraid I don't know enough about PhET-iO to fix. The error appears without ?fuzz on startup of the state wrapper, and I am not sure why Track.dispose is being called on startup. @samreid @zepumph @chrisklus what should be done for this assertion?

jessegreenberg commented 4 years ago

This is actually the same as https://github.com/phetsims/energy-skate-park/issues/197, moving over there since issue is likely in energy-skate-park.