phetsims / sugar-and-salt-solutions

"Sugar And Salt Solutions" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
1 stars 1 forks source link

Assertion failed: x not finite #16

Closed jonathanolson closed 2 years ago

jonathanolson commented 9 years ago
Uncaught Error: Assertion failed: x not finite
Error: Assertion failed: x not finite
    at window.assertions.assertFunction (http://192.168.0.2:8080/assert/js/assert.js:22:13)
    at SphericalParticleNode.extend.prependTranslation (http://192.168.0.2:8080/scenery/js/nodes/Node.js?bust=1433968108614:1373:25)
    at SphericalParticleNode.extend.translate (http://192.168.0.2:8080/scenery/js/nodes/Node.js?bust=1433968108614:1207:16)
    at SphericalParticleNode.extend.setX (http://192.168.0.2:8080/scenery/js/nodes/Node.js?bust=1433968108614:1270:12)
    at SphericalParticleNode.x (http://192.168.0.2:8080/scenery/js/nodes/Node.js?bust=1433968108614:1273:27)
    at new Bar (http://192.168.0.2:8080/sugar-and-salt-solutions/js/common/view/barchart/Bar.js?bust=1433968108614:77:14)
    at http://192.168.0.2:8080/sugar-and-salt-solutions/js/micro/view/MicroConcentrationBarChart.js?bust=1433968108614:52:55
    at Function.St (http://192.168.0.2:8080/sherpa/lib/lodash-2.4.1.min.js?bust=1433968108614:23:149)
    at MicroConcentrationBarChart.inherit.setBars (http://192.168.0.2:8080/sugar-and-salt-solutions/js/micro/view/MicroConcentrationBarChart.js?bust=1433968108614:50:9)
    at ExpandableConcentrationBarChartNode.inherit.setBars (http://192.168.0.2:8080/sugar-and-salt-solutions/js/micro/view/ExpandableConcentrationBarChartNode.js?bust=1433968108614:59:41)
samreid commented 9 years ago

I suspect this is from the asychronous callback in SphericalParticleNode.js

samreid commented 9 years ago

I added some text about the problem in the above commit. The above commit is just a band-aid. The layout will be wrong until we get a better long-term solution. But at least the sim is launching now.

KatieWoe commented 2 years ago

Closing for https://github.com/phetsims/qa/issues/832 as this sim is not monitored by CT anymore. Please reopen if this is in error.