Stephcraft / Project-16x16

2D Platformer game made with processing
GNU General Public License v3.0
97 stars 77 forks source link

Animation Bug #58

Closed PetTurtle closed 4 years ago

PetTurtle commented 5 years ago

If you spam wasd, space shift and mouse 1 while shooting a projectile you can crash, looks like an animation bug.

java.lang.IndexOutOfBoundsException: Index 3 out of bounds for length 3 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:458) at components.AnimationComponent.animate(AnimationComponent.java:69) at entities.Player.update(Player.java:353) at scene.SceneMapEditor.draw(SceneMapEditor.java:219) at sidescroller.SideScroller.draw(SideScroller.java:215) at processing.core.PApplet.handleDraw(PApplet.java:2483) at processing.javafx.PSurfaceFX$1.handle(PSurfaceFX.java:90) at processing.javafx.PSurfaceFX$1.handle(PSurfaceFX.java:1) at com.sun.scenario.animation.shared.TimelineClipCore.visitKeyFrame(TimelineClipCore.java:239) at com.sun.scenario.animation.shared.TimelineClipCore.playTo(TimelineClipCore.java:197) at javafx.animation.Timeline.doPlayTo(Timeline.java:175) at javafx.animation.AnimationAccessorImpl.playTo(AnimationAccessorImpl.java:39) at com.sun.scenario.animation.shared.InfiniteClipEnvelope.timePulse(InfiniteClipEnvelope.java:126) at javafx.animation.Animation.doTimePulse(Animation.java:1101) at javafx.animation.Animation$1.lambda$timePulse$0(Animation.java:186) at java.base/java.security.AccessController.doPrivileged(AccessController.java:389) at javafx.animation.Animation$1.timePulse(Animation.java:185) at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(AbstractMasterTimer.java:344) at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(AbstractMasterTimer.java:267) at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:558) at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:542) at com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:535) at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:341) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174) at java.base/java.lang.Thread.run(Thread.java:835)

micycle1 commented 4 years ago

Couldn't reproduce now -- assuming fixed.