magmaOffenburg / RoboViz

Monitor and visualization tool for the RoboCup 3D Soccer Simulation League
Apache License 2.0
50 stars 17 forks source link

Exception thrown when space bar is pressed before ball shows up in logfile #92

Closed pmacalpine closed 8 years ago

pmacalpine commented 8 years ago

Quickly pressing the space bar after loading a log, and before the ball shows up in the log, causes the following exception:

Exception in thread "Timer-0" javax.media.opengl.GLException: java.lang.NullPointerException
    at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:98)
    at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:197)
    at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:164)
    at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:767)
    at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:388)
    at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
    at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:140)
    at com.jogamp.opengl.util.FPSAnimator$1.run(FPSAnimator.java:125)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
    at rv.ui.view.TargetTrackerCamera.offsetTargetPosition(TargetTrackerCamera.java:66)
    at rv.ui.view.TargetTrackerCamera.update(TargetTrackerCamera.java:52)
    at rv.ui.UserInterface.update(UserInterface.java:139)
    at rv.Viewer.update(Viewer.java:398)
    at js.jogl.prog.GLProgram.display(GLProgram.java:72)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:191)
    at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:873)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:363)
    at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:890)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)