Open esdalmaijer opened 8 years ago
Two time stamps are subtracted from each other, and then a distance is divided by the time difference. If the time difference is zero, the result is a crash.
See: https://github.com/esdalmaijer/PyGaze/blob/master/pygaze/_eyetracker/libeyetribe.py#L967 (and in a few lines around there).
Solution: check whether time has passed, and only proceed if t1-t0 > 0.
t1-t0 > 0
Two time stamps are subtracted from each other, and then a distance is divided by the time difference. If the time difference is zero, the result is a crash.
See: https://github.com/esdalmaijer/PyGaze/blob/master/pygaze/_eyetracker/libeyetribe.py#L967 (and in a few lines around there).
Solution: check whether time has passed, and only proceed if
t1-t0 > 0
.