phetsims / neuron

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

fuzz test error #84

Closed jbphet closed 9 years ago

jbphet commented 9 years ago

An error was encountered in AxonMembrane.js, currently line 229, when doing an extended fuzz test with assertions enabled. Screenshot below. This is the function that evaluates the curve that is used to depict the traveling action potential, and it is being called with a negative time (t) value. The error is occurring when the sim is paused and the "step back" button is pressed.

neuron-fuzz-error

jbphet commented 9 years ago

Just messed with this for a bit, and here is how to duplicate:

jbphet commented 9 years ago

Fixed by adding code to prevent the traveling action potential from being stepped backward into negative existence time, closing.