phetsims / unit-rates

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

CT: assertion failure in Easing.polynomialEaseInOutValue #210

Closed pixelzoom closed 5 years ago

pixelzoom commented 5 years ago

This popped up once in CT yesterday. Haven't seen it previously or since, and there have been no changes to unit-rates or twixt. Over in https://github.com/phetsims/twixt/issues/22, I've added a message to the failed assertion in TWIXT/Easing, so we'll get more info if it happens again.

Stack trace:

unit-rates : fuzz : require.js : run
Query: brand=phet&ea&fuzz&memoryLimit=1000
Uncaught Error: Assertion failed
Error: Assertion failed
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/assert/js/assert.js:22:13)
    at Easing.polynomialEaseInOutValue (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/twixt/js/Easing.js?bust=1553869710329:104:15)
    at AnimationTarget.update (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/twixt/js/AnimationTarget.js?bust=1553869710329:216:84)
    at Animation.step (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/twixt/js/Animation.js?bust=1553869710329:313:27)
    at Animation.start (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/twixt/js/Animation.js?bust=1553869710329:239:12)
    at markerEditorObserver (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/unit-rates/js/common/view/DoubleNumberLineAccordionBox.js?bust=1553869710329:281:33)
    at Emitter.emit (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/axon/js/Emitter.js?bust=1553869710329:280:55)
    at Property._notifyListeners (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/axon/js/Property.js?bust=1553869710329:247:27)
    at Property.set (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/axon/js/Property.js?bust=1553869710329:160:14)
    at Property.reset (https://bayes.colorado.edu/continuous-testing/snapshot-1553867757344/axon/js/Property.js?bust=1553869710329:309:12)
id: Bayes Chrome
Approximately 3/29/2019, 7:55:57 AM

The failing assertion in Easing was:

Easing.polynomialEaseInOutValue = function( n, t ) {
  assert && assert( typeof t === 'number' && isFinite( t ) && t >= 0 && t <= 1 );
pixelzoom commented 5 years ago

@KatieWoe if you happen to see this error again in CT and I miss it, please paste the stack trace here. The new-and-improved assertion message will provide more info.

pixelzoom commented 5 years ago

This hasn't recurred in almost 3 months, so closing.