NetLogo / NetLogo

turtles, patches, and links for kids, teachers, and scientists
http://ccl.northwestern.edu/netlogo/
1.02k stars 246 forks source link

is this a java problem? #1522

Open raulemm opened 6 years ago

raulemm commented 6 years ago

java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(EventQueue.java:1321) at java.awt.EventQueue.invokeAndWait(EventQueue.java:1296) at org.nlogo.awt.EventQueue$.invokeAndWait(EventQueue.scala:19) at org.nlogo.awt.EventQueue.invokeAndWait(EventQueue.scala) at org.nlogo.window.ViewManager.incrementalUpdateFromJobThread(ViewManager.java:62) at org.nlogo.window.GUIWorkspace.updateDisplay(GUIWorkspace.java:624) at org.nlogo.window.GUIWorkspace.ownerFinished(GUIWorkspace.java:826) at org.nlogo.job.JobThread.runPrimaryJobs(JobThread.scala:119) at org.nlogo.job.JobThread.$anonfun$run$1(JobThread.scala:68) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at scala.util.control.Exception$Catch.apply(Exception.scala:224) at org.nlogo.api.Exceptions$.handling(Exceptions.scala:41) at org.nlogo.job.JobThread.run(JobThread.scala:66) Caused by: com.jogamp.opengl.GLException: Caught ClassCastException: java.lang.String cannot be cast to java.lang.Boolean on thread AWT-EventQueue-0 at com.jogamp.opengl.GLException.newGLException(GLException.java:76) at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1327) at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147) at com.jogamp.opengl.awt.GLCanvas$12.run(GLCanvas.java:1438) at com.jogamp.opengl.Threading.invoke(Threading.java:223) at com.jogamp.opengl.awt.GLCanvas.display(GLCanvas.java:505) at org.nlogo.gl.view.View.display(View.scala:80) at org.nlogo.gl.view.ViewManager.incrementalUpdateFromEventThread(ViewManager.scala:147) at org.nlogo.window.ViewManager.incrementalUpdateFromEventThread(ViewManager.java:48) at org.nlogo.window.ViewManager$1.run(ViewManager.java:56) 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:80) 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) Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean at org.nlogo.agent.Turtle.hidden(Turtle.java:1186) at org.nlogo.gl.render.TurtleRenderer.$anonfun$renderTurtles$2(TurtleRenderer.scala:30) at org.nlogo.gl.render.TurtleRenderer.$anonfun$renderTurtles$2$adapted(TurtleRenderer.scala:28) at scala.collection.immutable.List.foreach(List.scala:378) at org.nlogo.gl.render.TurtleRenderer.renderTurtles(TurtleRenderer.scala:28) at org.nlogo.gl.render.Renderer.render(Renderer.java:452) at org.nlogo.gl.render.Renderer.display(Renderer.java:260) at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692) at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674) at com.jogamp.opengl.awt.GLCanvas$11.run(GLCanvas.java:1424) at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293) ... 22 more

NetLogo 3D 6.0 main: org.nlogo.app.AppFrame thread: AWT-EventQueue-0 Java HotSpot(TM) 64-Bit Server VM 1.8.0_112 (Oracle Corporation; 1.8.0_112-b16) operating system: Mac OS X 10.10.5 (x86_64 processor) Scala version 2.12.1 JOGL: 2.3.2 OpenGL graphics: NVIDIA GeForce GT 650M OpenGL Engine OpenGL version: 2.1 NVIDIA-10.4.3 310.41.35f01 OpenGL vendor: NVIDIA Corporation model: PepeLoz_v3

07:43:23.950 SwitchedTabsEvent (org.nlogo.app.Tabs) AWT-EventQueue-0 07:43:23.940 RuntimeErrorEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0 07:43:23.940 JobRemovedEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) JobThread 07:43:23.829 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0 07:43:23.829 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0 07:43:23.829 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0 07:43:23.829 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0 07:43:23.829 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0 07:43:23.829 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0 07:43:23.829 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0

mrerrormessage commented 6 years ago

Thanks for reporting. I've been unable to reproduce this bug in my testing. Does this model use an extension by any chance?

If the bug is happening consistently, it would be great to have a copy of the model to test on. You can post a link to it here on GitHub or (if you prefer to keep the model private) email it to bugs@ccl.northwestern.edu (please reference this issue in your email).

SethTisue commented 6 years ago

also does upgrading from NetLogo 6.0 to 6.0.2 help...?

raulemm commented 6 years ago

Hello, I finally migrated the model to 5.3 and everything is working now. Why? How knows, but it is working!!

Thanks anyway.

2017-12-02 20:44 GMT+01:00 Seth Tisue notifications@github.com:

also does upgrading from NetLogo 6.0 to 6.0.2 help...?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NetLogo/NetLogo/issues/1522#issuecomment-348715205, or mute the thread https://github.com/notifications/unsubscribe-auth/ASUHA0lhXpOVYXWqlZv57wIyGM16Pe1eks5s8aitgaJpZM4QxBUa .

-- Raúl

mrerrormessage commented 6 years ago

Glad to hear it is working for you. I would still love a copy of the model (if possible) or information about which extensions you were using (if any) to try to fix the underlying bug in 6.0.2.