phetsims / color-vision

"Color Vision" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/color-vision
GNU General Public License v3.0
1 stars 7 forks source link

Assertion failure during launch #86

Closed jonathanolson closed 9 years ago

jonathanolson commented 9 years ago
Error: Assertion failed: Not handling arcs with start/end angles that show differences in-between browser handling
    at window.assertions.assertFunction (http://localhost/phet/git/assert/js/assert.js:22:13)
    at new Arc (http://localhost/phet/git/kite/js/segments/Arc.js?bust=1423090628387:44:130)
    at LineStyles.leftJoin (http://localhost/phet/git/kite/js/util/LineStyles.js?bust=1423090628387:76:22)
    at Object.Subpath.stroked (http://localhost/phet/git/kite/js/util/Subpath.js?bust=1423090628387:272:42)
    at Shape.getStrokedShape (http://localhost/phet/git/kite/js/Shape.js?bust=1423090628387:577:38)
    at FlashlightWireNode.inherit.getStrokedShape (http://localhost/phet/git/scenery/js/nodes/Path.js?bust=1423090628387:82:46)
    at FlashlightWireNode.inherit.computeShapeBounds (http://localhost/phet/git/scenery/js/nodes/Path.js?bust=1423090628387:97:34)
    at FlashlightWireNode.inherit.invalidateShape (http://localhost/phet/git/scenery/js/nodes/Path.js?bust=1423090628387:91:35)
    at FlashlightWireNode.inherit.invalidateStroke (http://localhost/phet/git/scenery/js/nodes/Path.js?bust=1423090628387:107:12)
    at FlashlightWireNode.proto.invalidateStroke (http://localhost/phet/git/scenery/js/nodes/Paintable.js?bust=1423090628387:631:31)

Looks like it's specifying a type of circular arc that will render differently on different browsers (and is thus blacklisted by Kite). See scenery/tests/browsers/arcs.html (browser comparison for arcs) for an example.

It should be possible to put the parameters in a compatible state by adding/subtracting 2pi to one/both until they satisfy the constraint.

aaronsamuel137 commented 9 years ago

Fixed this by changing -pi/2 to 3pi/2. Closing